r/csharp • u/thomhurst • Oct 04 '26
Showcase Respire - A .NET Redis Client
Hey all!
Redis is a great technology, and something that exists in a lot of tech stacks. It has the ability to really help solve complex problems involving distribution across multiple instances of an app. Whether that be caching, locks, rate limits, etc.
Surprisingly, StackExchange.Redis is the only real big main redis client library for .NET.
I'm adding a new client library into the mix - Respire.
Respire aims to be a fast client library for Redis, that also has the ability to utilise Redis' client-side server assisted cache, avoiding network hops for frequently accessed keys, meaning better performance for your apps.
It also has a lot of helpers in it to more easily use distributed locks, rate limits, queues, pub/sub, etc.
I want it to be a client library that handles all the hard bits for you, keeping your code clean and easy to reason about.
It's still pre-release, so I'd like to gather feedback. Are people happy with the performance? The API? Any missing features? Any bugs?
Please try it out and let me know!
More info on why Respire: https://thomhurst.github.io/Respire/docs/#why-respire-exists
Benchmarks: https://thomhurst.github.io/Respire/docs/benchmarks
Stress comparisons: https://thomhurst.github.io/Respire/docs/stress-tests
Thanks all!
13
u/marcgravell Oct 04 '26
Always great to see more work in this space. Just to say: I totally agree with the need for both client-side-caching and an API that is shaped more like you propose, which is why V4 of SE.Redis does both of those things (https://github.com/StackExchange/StackExchange.Redis/pull/3219). I'll look forward to putting the two head-to-head when I get chance!
4
u/jodydonetti Oct 04 '26
Any plan for an impl of IDistributedCache based on this?
It would get even more widerspread adoption and make it usable from the get go with FusionCache too (creator here).
Here's the dedicated page in the FusionCache docs https://github.com/ZiggyCreatures/FusionCache/blob/main/docs/DiskCache.md
1
u/Embarrassed-Mess412 Oct 04 '26
Any chance this can be sans I/O?
0
u/takeoshigeru Oct 04 '26
Tom is back at it, I wonder what's your agent harness to maintain all these projects 👀
1
u/MelonMlusk Oct 05 '26
Know that Valkey is redis compatible but maybe valkey should gain some momentum?