-
1. Re: Can we compress cache entries, while putting them into the cluster?
nadirx Feb 5, 2016 2:09 AM (in response to udit-mishra-5113a21a)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.
-
2. Re: Can we compress cache entries, while putting them into the cluster?
udit-mishra-5113a21a Feb 5, 2016 2:47 AM (in response to nadirx)Could you give me a link to sample exmpale for this? It would be very helpful. I have searched, but not getting straightforward links.
-
3. Re: Can we compress cache entries, while putting them into the cluster?
vdzhuvinov Feb 5, 2016 3:45 AM (in response to udit-mishra-5113a21a)You can check out the custom marshaller docs, it's got some pretty useful examples:
http://infinispan.org/docs/8.1.x/user_guide/user_guide.html#_advanced_externalizers
Depending on what data structure you have you may be able to achieve significant compression.
-
4. Re: Can we compress cache entries, while putting them into the cluster?
sameer.kaikini Dec 9, 2019 5:06 AM (in response to nadirx)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.