Do we need terracotta on top of ehcache for clustering?

Venkat Teki picture Venkat Teki · Mar 12, 2012 · Viewed 12.9k times · Source

I am doing to a proof of concept using ehcache as the cache provider.

Read somewhere saying we need terracotta server running, ALONG WITH ehcache to provide clustering.

Does ehcache alone provide clustering service or we need terracotta also?

Thanks, Venkat

Answer

Alexis Dufrenoy picture Alexis Dufrenoy · Mar 12, 2012

EhCache is not a distributed solution. So you need to use it with Terracotta to obtain the result you want. Like moodywoody said, you can use Hazelcast, but also Infinispan to obtain this result:

http://www.jboss.org/infinispan