Ehcache集群随记

Distributed Caching with ehcache

Ehcache is one of the dependencies of Hibernate, and we use Hibernate-3.2.5GA now,
it depends on Ehcache-1.2.3 by default.
Ehcache's latest release is 1.7, some of the distribution mechanisms depend on the later version.

I recommend use RMI mechanism, and below is the list of ehcache distribution mechanisms:

* RMI
Since version 1.2
Simple configuration and match our default ehcache version requirements.
*** Recommended for our project ***

* JGroups
Since version 1.5
Simple confiugration, and it provides a very flexible protocol stack,
reliable unicast and multicast message transmission.
But we need to update ehcache to 1.5+, it seems Hibernate3.2.5GA can work with ehcache 1.5+.

* JMS
Since version 1.6
Use JMS topic to advice subscribers update their cache.
And also we need to update ehcache to 1.6+ and do some code work to implement the publisher and subscribers.

* Terracotta
From version 1.7 Ehcache has been seamlessly integrated with Terracotta 3.1.1
This need another application for support cluster.

* Cache Server
A RESTful Web Services cache server.
Doing all kinds of cache operation through web service, and cache it on the cache server.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值