7.4.3. Replicated caches with only one node having a store

7.4.3. Replicated caches with only one node having a store

2 nodes but only one accesses the backend store

Figure 7.2. 2 nodes but only one accesses the backend store


This is a similar case as the previous one, but here only one node in the cluster interacts with a backend store via its CacheLoader. All other nodes perform in-memory replication. A use case for this is HTTP session replication, where all nodes replicate sessions in-memory, and - in addition - one node saves the sessions to a persistent backend store. Note that here it may make sense for the CacheLoader to store changes asynchronously, that is not on the caller's thread, in order not to slow down the cluster by accessing (for example) a database. This is a non-issue when using asynchronous replication.