Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ehcache performance on a large cluster

I would like to use Ehcache replicated cache, first as the backend to Hibernate second level cache, second as a cache for any data.

I know how a distributed cache like memcached is working, and I know it can scale to large clusters, but I cannot find how Ehcache replication behaves on large clusters.

  • Has someone a pointer to some information or some kind of benchmark?

I found that many replication strategies can be used, like RMI, JGroups, JMS or Terracotta, and RMI and Terracotta seem the most popular.

  • How do they compare on large clusters?

Will the replication kill my performances as I add many nodes (like several dozens)?

like image 920
Jazz Avatar asked Jul 29 '09 14:07

Jazz


1 Answers

Fully replicated cache will only work if your application is read-mostly. Replicated cache cannot scale; passing the updates to the other nodes will kill your performance. You need partitioned cache with backup replicas. Partitioned caches will linearly scale even for the write-intensive applications.

Try Hazelcast! it is open source (Apache license) transactional, partitioned caching solution for Java. It comes with hibernate second level cache plugin.

Several dozens? No problem. Hazelcast 100 node cluster demo can be found here.

like image 105
Talip Ozturk Avatar answered Oct 17 '22 04:10

Talip Ozturk