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.
This thread is 3 years old. Is compression supported on hotrod now?
It may help to allow enabling compression if the message sizes are above a certain threshold like web servers do.
This does help in reducing network latency on web servers when we enable gzip compression if the response size is greater than 1KB.
We have instances where the object sizes are several MB and may have benefitted from compression.