Andrew Eisenberg
2018-10-20 22:13:31 UTC
Hi all,
Streams in redis 5.0 look fantastic. They seem to be solving many of the
problems that we are having. I've gone through Introduction to Streams
<https://getpocket.com/redirect?url=https%3A%2F%2Fredis.io%2Ftopics%2Fstreams-intro&formCheck=9373f720f6fbc17121f2fd829537f941>
and I still have a few questions:
1. It seems that streams are the only data type that is not removed when
it has no more elements (because of the state related to data groups). Is
there any way of forcing the deletion of a stream?
2. The way we are planning on using streams, we will have groups of
values that will need to be evicted at once. They won't necessarily be
sequential, but we will know which group each value belongs to when we
insert it and we are planning on storing the ids for these values in sets
so we can keep track of them. My question is: will this destroy the memory
footprint of the stream where we periodically delete groups of maybe 1000
keys spread throughout the stream? And is there something we can do to
mitigate the issue?
3. Most of our values are currently stored as JSON strings (even though
they are mostly key-value pairs). Since streams allow key-value pairs
natively, would we be better off avoiding JSON and using native key-value
pairs? Each of our values will have roughly 20 keys.
thanks for your help,
Andrew
Streams in redis 5.0 look fantastic. They seem to be solving many of the
problems that we are having. I've gone through Introduction to Streams
<https://getpocket.com/redirect?url=https%3A%2F%2Fredis.io%2Ftopics%2Fstreams-intro&formCheck=9373f720f6fbc17121f2fd829537f941>
and I still have a few questions:
1. It seems that streams are the only data type that is not removed when
it has no more elements (because of the state related to data groups). Is
there any way of forcing the deletion of a stream?
2. The way we are planning on using streams, we will have groups of
values that will need to be evicted at once. They won't necessarily be
sequential, but we will know which group each value belongs to when we
insert it and we are planning on storing the ids for these values in sets
so we can keep track of them. My question is: will this destroy the memory
footprint of the stream where we periodically delete groups of maybe 1000
keys spread throughout the stream? And is there something we can do to
mitigate the issue?
3. Most of our values are currently stored as JSON strings (even though
they are mostly key-value pairs). Since streams allow key-value pairs
natively, would we be better off avoiding JSON and using native key-value
pairs? Each of our values will have roughly 20 keys.
thanks for your help,
Andrew
--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+***@googlegroups.com.
To post to this group, send email to redis-***@googlegroups.com.
Visit this group at https://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+***@googlegroups.com.
To post to this group, send email to redis-***@googlegroups.com.
Visit this group at https://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.