Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Implicit batching of operations to improve performance #159
In some cases, you do a lot of updates or reads over a short period of time.
If you know this in advance, you can explicitly batch it using putAll or getAll. But this requires this knowledge and it affects the code of the system, which should be adapted to use these two calls.
In many cases, you don't know in advance which concrete entries will be updated/read (e.g. these operations are done by different parts of the code based on some dynamic conditions). So, you use the usual puts and gets. As a result, a lot of put/get operations are issues over a short period of time. When processed one-by-one it is rather inefficient under load.
When it can be applied:
Remark: Something similar exists for Infinispan under the name Replication Queue: https://docs.jboss.org/author/display/ISPN/Asynchronous+Options#AsynchronousOptions-ReplicationQueue