Writing behind caching

Write-behind cache is a well know pattern, used in every CPU for code optimization. It's especially recommended for situations where it is expensive to save a cache object that is highly accessed.

A Write-behind cache, unlike a writeThroughCcache, performs all cache write operations on the cache to the backing store asynchronously. This means that all write operations in the given data store are not performed by the thread used by the client to interact with the cache, but by a different one.

The major advantage of this pattern is that performance and experience of using the cache are not affected by these asynchronous writes to the underlying store, which can substantially improve the performance in scenarios where values ...

Get Infinispan Data Grid Platform Definitive Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.