Replicating a Partitioned cache in different Data Centers
819072Nov 27 2010 — edited Feb 16 2011Hi all, we are planning on placing some product information in a partitioned cache. Our Java clients will use a near cache to locally cache the data in the front cache and use the partitioned cache as the back cache. However, we want this product data to be available from any of our 3 data centers. The source for the data would come from a single data center (so all updates will come from a single data center). Logically speaking, we would like to replicate our partitioned cache from dedicated cache servers in our primary data center to dedicated cache servers in our other data centers. Here are a few ideas we had:
- Does Coherence support something like this out of the box?
- The system that updates the partition cache in the primary data center could update all other caches.
- Have a listener in each of the data centers that listens for changes in the partitioned cache of the primary data center and updates the partition cache in that data center.
- We could not physically replicate the 3 partitioned caches but make the time to live of the objects short enough that the data will never be too out of sync. Each cache would have the same CacheStore/CacheLoader to get the data from the DB in the primary data center.
Is there a best practice for this?
Thanks,
Josh