FusionCache icon indicating copy to clipboard operation
FusionCache copied to clipboard

[FEATURE] Add optional Brotli compression to FusionCacheSystemTextJsonSerializer

Open slang25 opened this issue 4 months ago • 2 comments

First off - we've switched to using FusionCache and it's fantastic, we just dropped it in as a HyrbridCache implementation, changing no code, and we got proper distributed tag invalidation (with redis backplane) and OTEL traces, it's so good 😎

We are using the STJ serialization, because the types we are caching are typically API response objects that we serialize into JSON, however they can be quite large.

We are using our own serializer which you can see here: https://gist.github.com/slang25/dfad935d1af43dbba02564906264c713

I wonder how you would feel about the Brotli option being added to the out-of-the-box STJ serializer? It seems like something people would benefit from, but may not take the time to implement themselves (even though it's quite simple).

slang25 avatar Aug 22 '25 12:08 slang25

Doing a bit more research, I'm happy to wait for this issue #371, and then build this on top of IBufferWriter<byte> for optimal perf.

slang25 avatar Aug 25 '25 18:08 slang25

Hi @slang25 , sorry for the delay. Yes, that was (and still is) on my backlog, it's just that I haven't had enoungh time to do it already: I'm on a big new project that I'll reveal... soon, so that took me all of my time. But yeah, I'll work on that!

jodydonetti avatar Sep 05 '25 17:09 jodydonetti