redka icon indicating copy to clipboard operation
redka copied to clipboard

Redis Streams support

Open zahariash opened this issue 1 year ago • 6 comments

Are there a plans to implement streams?

Redka Streams would be perfect replacement for Redis Streams in many Kafka use cases where disk storage is required and/or memory is restricted.

zahariash avatar Sep 09 '24 15:09 zahariash

No current plans. Would you personally use Redka in this use case?

nalgeon avatar Sep 09 '24 15:09 nalgeon

Yes, definitely.

Support for full streams API would allow me to switch from Kafka to Redka Streams for dev/ci/testing environments. Using Redis Streams currently doesn't have much sense to me, because of high requirements for a memory which is way more expensive than disk in a cloud. My use cases usually require long data retention but are fine with reduced performance.

zahariash avatar Sep 11 '24 11:09 zahariash

If you only use Kafka in production (and Redis/Redka in dev/test), doesn't that mean that Kafka-related features don't get tested at all? Is that wise?

nalgeon avatar Sep 12 '24 12:09 nalgeon

I'm using te same protocol on all environments. Currently it's Kafka. I could switch to Redis/Redka streams everywhere, if Redka supports streams. Then I could use Redka for dev/testing and some managed Redis solution for production.

zahariash avatar Sep 12 '24 21:09 zahariash

I see, thanks for the explanation! I will look into streams after the 1.0 release.

I'll leave the issue open to see if anyone else is interested in this feature.

nalgeon avatar Sep 13 '24 06:09 nalgeon

Streaming can be done relatively easily with NATS Jetstream. It's the classic Kafka replacement.

NATS Jetstream is open source apache and part of CNCF, so reliable long term.

https://github.com/nats-io/nats-server

NATS server can run embedded, not embedded and embedded in process. So it matches redka in that sense too. The streams can be durable or not durable.

Hope this is useful.

joeblew999 avatar May 20 '25 04:05 joeblew999