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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access