- 17.9K All Categories
- 3.4K Industry Applications
- 3.3K Intelligent Advisor
- 63 Insurance
- 535.7K On-Premises Infrastructure
- 138.1K Analytics Software
- 38.6K Application Development Software
- 5.6K Cloud Platform
- 109.3K Database Software
- 17.5K Enterprise Manager
- 8.8K Hardware
- 71K Infrastructure Software
- 105.2K Integration
- 41.5K Security Software
Issue with synching up coherence cache across servers
I've a java web application(A) hosted on server X that subscribes to coherence cache exposed by another java application(B) hosted on server Y.
So ideally, at any point in time, cache in A and cache in B should be in sync.
In a situation, where A goes down for some reason(network error, server crash etc.), A will be restarted.
In the timespan when A is down, its possible that B cache could have some new updates.
So I want to make sure that A's cache is in sync with B's cache when its restarted.
What would be the best strategy to achieve this please?
Should A replicate its cache to a database(keys and values) on a continuous basis?
And when A goes down and is back up again, it can check for the number of keys in its database.
If this count does not match with the count in B's cache, then it can repopulate its using B's cache?
Does this approach make sense?