Hi @Redis Team! Suppose A redis stream with "stream_key1" is published in one services "A" and there is another service "B" which is the consumer, but service B have three instances, and same message will be consumed by all three instance, how to avoid the processing duplicacy in this scenario, If i go with using consumer Id then it will leads to creating 'n' consumer Ids and we can't track on it.
Hello! XDEL is great for removing specific entries by ID. It's also O(1), so it's very fast. XTRIM is good for removing entries that are older than a specified entry, so it's good for removing an amount of entries where you might know all of the specific ids. It's also O(N) with N being the number of entries to evict. Basically, if you have specific IDs to remove, use XDEL. If you have a large group of entries to remove based on entry age, use XTRIM.
This seems very useful, but i am a little confused doesn't blpush/blpop achieve same thing to some extent, blpop keeps blocking until new data arrives, but this seems to have buffer too like kafka*
Hey there! We actually talked about this question on our show This Week on Discord (and now RUclips!) - you can find that discussion here - ruclips.net/video/Vn9LDdyjMsQ/видео.html - but tldr; different use cases! Streams allow processing by multiple resources simultaneously without popping / removing any data so it can be processed by multiple different consumers.
Hi Redis team! Can you cover some more examples in real life which data structure to use for which situation like if 2 data structures accomodate 2 scenarios
I wonder what is the best way to mix stream with pubsub. my use case: consume published expired event into stream? or what would be the best way to use ttl of entreis to triger job with the expired entrey value/key
Redis is awesome...
Cache
In-memory DB with persistence
Message broker
Plain awesome.
Hi @Redis Team!
Suppose A redis stream with "stream_key1" is published in one services "A" and there is another service "B" which is the consumer, but service B have three instances, and same message will be consumed by all three instance, how to avoid the processing duplicacy in this scenario, If i go with using consumer Id then it will leads to creating 'n' consumer Ids and we can't track on it.
Hi,
Is it better to use XTrim ou XDel for removing "processed" streams?
Hello! XDEL is great for removing specific entries by ID. It's also O(1), so it's very fast. XTRIM is good for removing entries that are older than a specified entry, so it's good for removing an amount of entries where you might know all of the specific ids. It's also O(N) with N being the number of entries to evict. Basically, if you have specific IDs to remove, use XDEL. If you have a large group of entries to remove based on entry age, use XTRIM.
is XTRIM free up memory?
on XDEL when all messages are marked deleted then will it free memory?
Wow, streams very interesting 👍💪
This seems very useful, but i am a little confused doesn't blpush/blpop achieve same thing to some extent, blpop keeps blocking until new data arrives, but this seems to have buffer too like kafka*
Hey there! We actually talked about this question on our show This Week on Discord (and now RUclips!) - you can find that discussion here - ruclips.net/video/Vn9LDdyjMsQ/видео.html - but tldr; different use cases! Streams allow processing by multiple resources simultaneously without popping / removing any data so it can be processed by multiple different consumers.
@@Redisinc thanks
simply superb... how to use redis as message broker
Hi Redis team!
Can you cover some more examples in real life which data structure to use for which situation like if 2 data structures accomodate 2 scenarios
Great idea! We'll look into creating some examples in the future! - Justin
compared to redis timeseries??
I wonder what is the best way to mix stream with pubsub. my use case: consume published expired event into stream? or what would be the best way to use ttl of entreis to triger job with the expired entrey value/key
This is a great question! I would recommend visiting our Discord server to chat with the experts: discord.gg/redis
I don't understand, is Redis trying to replace Kafka?
Redis has had Streams for quite a few versions.
As usual fantastic..!!
Thank you so much 😀
sweet, cant wait to try this tomorrow
Awesome explanation !
Thanks, Allison! Let us know if you ever want us to cover something specific! - Justin
Based
Braun strawman left wwe 😀
LMAO I'll take that with the highest of praise! Thanks! - Justin