是否可以使用没有Terracotta Enterprise Suite的Ehcache实现分布式缓存?

Gad*_*get 8 java ehcache distributed-caching

我试图找到如何为应用程序实现分布式缓存.

Ehcache已经在我的项目中用于缓存,这就是我搜索如何使用它来解决这个问题的原因.但是,不幸的是,似乎需要Terracotta Enterprise Suite才能实现商业化.不是吗?是否有另一种解决方案如何使用Ehcache进行分布式缓存(RMI或其他任何东西)?

小智 4

您不需要 terracotta enterprise suite 来集群您的 Ehcache 实例。因此,您现在可以使用 Ehcache 和 Terracotta 以及纯 OSS 进行集群:

http://www.ehcache.org/documentation/configuration/distributed-cache-configuration

编辑:此链接已过期。以下是与集群缓存相关的新链接 http://www.ehcache.org/documentation/3.4/clustered-cache.html

现在,如果您需要复制,您确实可以使用其他机制,例如 RMI:

http://www.ehcache.org/documentation/replication/index

不过,只有 Terracotta 集群才能为您带来 HA 和一致性保证等功能......