Batch mode

Infinispan provides several methods of putting data in the cache, such as the standard map operations such as cache.put(...), cache.putAll(...), or cache.putIfAbsent(...) an overloaded form of ConcurrentMap.putIfAbsent(), which only stores the value if no value is stored under the same key.

However, these methods will result in a separate network call for each operation, which is not suitable for scenarios where large amounts of data must be loaded into the data store, especially for caches in replication mode. This is the case, for instance, building a mirror site or importing data to the cache when transaction control is not important.

For these cases, Infinispan provides the ability to batch multiple cache operations through the interface ...

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.