Improving the serialization process using externalizers

If something is clear at this point of the book, it is that when you put some object in the cache, the object will be serialized into a stream of bytes to be sent across the network into the target node, and then replicated between peers of the grid. And when you get an object from the grid, the cache entry needs to be deserialized back into a live object.

The process of serializing and deserializing an object can be time consuming; in normal configurations, this process can take around 20 percent of the time (it's important to note that Infinispan doesn't use the standard serialization mechanism due to performance reasons). Throughout the default Java serialization process, several reflection ...

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.