We don't support compression since, from the tests we performed, the performance drop wasn't worthwhile, but there are two ways to implement it:
- via a compressing marshaller on the client which could pass the output/input through a GzipOutput/InputStream
- via an interceptor on the server
The second is trickier and requires deeper knowledge of how Infinispan works, so I'd recommend going for the first one.
Could you give me a link to sample exmpale for this? It would be very helpful. I have searched, but not getting straightforward links.
You can check out the custom marshaller docs, it's got some pretty useful examples:
Depending on what data structure you have you may be able to achieve significant compression.