tags:

views:

55

answers:

3

Hi,

I am supposed to create a simple replicated cache using java for internal purpose which will be used in a distributed environment. I have seen oracle has implemented Replicated Cache Service. http://wiki.tangosol.com/display/COH32UG/Replicated+Cache+Service

The problem I am facing is while doing an update or remove, I acquire lock on other cache's to the point the cache get's updated and notifies others of the change. This is eventually going into a dead lock situation, while removing. Is there any strategy I should follow while updating or removing from cache's.

Can I implement a replicated cache without having a primary cache??

Thanks, Naren

+1  A: 

Ehcache uses a different architecture with peers and synchronizing using multicasts. Check the documentation

stacker
A: 

You want NCache that will do what you are needing. NCache lets you create different cache topologies including replicated cache. Furthermore it has many important features like eviction, expiration and more. The best thing is that it is very easy to use and that it will give you scalable performance even at peak load times.

james
A: 

You want NCache that will do what you are needing. NCache lets you create different cache topologies including replicated cache. Furthermore it has many important features like eviction, expiration and more. The best thing is that it is very easy to use and that it will give you scalable performance even at peak load times.

james