18

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

4

3 回答 3

4

EhCache 不是分布式解决方案。所以你需要将它与 Terracotta 一起使用才能获得你想要的结果。就像 moodywoody 说的,你可以使用 Hazelcast,也可以使用 Infinispan 来获得这个结果:

http://www.jboss.org/infinispan

于 2012-03-12T09:40:41.520 回答
4

如果您不需要集群,但复制就足够了,ehcache 捆绑了 RMI 复制,并提供了 jgroups 和 JMS 复制:

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

于 2012-03-13T12:50:37.763 回答
3

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/

于 2012-03-12T09:25:58.467 回答