0

We are trying to develop a system for distributed caching. Right now, we have 12 applications and they all load same cache. So each jvm loads cache in its in-memory. Problem with this system is redundant data. All 12 applications are loading same cache.

We want to develop a system where you add one or two(for failover) JVM's which load cache and the other 12 applications call these new Cache JVM's.

Can someone suggest me if there are any technologies/frameworks that has solution for my needs?

Thanks

Mahi G
  • 391
  • 1
  • 7
  • 16
  • 1
    [hazelcast](http://www.hazelcast.com/) is a distributed hashmap, which actually implements Java's `Map` interface. The data is distributed across nodes in different JVMs and if one JVM process stops, the data hold by this JVM is spread across the other active nodes. It furthermore provides an auto-lookup for nodes and locking mechanism to protect data from being accessed by other nodes. – Roman Vottner Jan 30 '14 at 22:08

2 Answers2

4

Have a look at Memcached. It may offer a solution to your distributed cache needs.

Also, as @Guy Bouallet mentioned, ehcache is also a viable solution.

cmd
  • 11,622
  • 7
  • 51
  • 61
2

Ehcache is a good alternative. It can be used to cache data loaded from database, Web pages or other key/value elements in a distributed environment. I personally used it in several professional applications and it had shown to be an efficent solution.

Guy Bouallet
  • 2,099
  • 11
  • 16