Java Caching on distributed environment
Posted
by Naren
on Stack Overflow
See other posts from Stack Overflow
or by Naren
Published on 2010-04-27T18:16:09Z
Indexed on
2010/04/30
6:47 UTC
Read the original article
Hit count: 279
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
© Stack Overflow or respective owner