pub/sub channel TTL

804 views
Skip to first unread message

mikeee

unread,
May 16, 2012, 11:31:53 AM5/16/12
to Redis DB
Hi -

I've got a system where I need to publish an event (just a short
string message) using dynamic keys so only specific processes will
subscribe to them (basically very short lived private channels).
This works very well for our purposes in testing but I can't find any
documentation as to how long the channel stays alive in Redis. I
just want to make sure that the server won't get overloaded by adding
tens or hundreds of thousands of publish messages a day if they're not
ever getting removed from Redis. So my question is does Redis clear
out old channels after a certain amount of time or do they live
forever.. Or is there a way to send a TTL... My TTL requirements would
be no the order of 15-20 seconds at most.

Thanks for any information on this.

Mike

Josiah Carlson

unread,
May 16, 2012, 11:50:16 AM5/16/12
to redi...@googlegroups.com
Since messages are only delivered to clients that are subscribed to
channels when the messages are sent, channels exist in Redis only as
long as there is someone listening on them.

You should be able to safely use and stop using millions of channels a
day without significant issue.

Regards,
- Josiah
> --
> You received this message because you are subscribed to the Google Groups "Redis DB" group.
> To post to this group, send email to redi...@googlegroups.com.
> To unsubscribe from this group, send email to redis-db+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/redis-db?hl=en.
>
Reply all
Reply to author
Forward
0 new messages