Venkat Teki
Venkat Teki

Reputation: 2793

Do we need terracotta on top of ehcache for clustering?

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

Upvotes: 18

Views: 14777

Answers (3)

Alex Snaps
Alex Snaps

Reputation: 1250

If you don't require clustering, but replication would suffice, ehcache comes with RMI replication bundled and has jgroups as well as JMS replication available:

see http://www.ehcache.org/documentation/2.7/get-started/cache-topologies.html#replicated-caching

Upvotes: 4

moodywoody
moodywoody

Reputation: 2159

If you want the cache (or the caches) to be available from different JVMs you will need Terracotta; ehCache alone cannot do that.

http://www.ehcache.org/documentation/2.7/get-started/about-distributed-cache.html

Of course you could also look at other solutions like Hazelcast.

http://www.hazelcast.com/

Upvotes: 4

Alexis Dufrenoy
Alexis Dufrenoy

Reputation: 11946

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

Upvotes: 4

Related Questions