Re: How (or should) I delete pubsub channels

29 views
Skip to first unread message
Message has been deleted

Marc Gravell

unread,
May 16, 2013, 10:39:18 AM5/16/13
to redi...@googlegroups.com

Either unsubscribe, or just close the connections that subscribed. Messages are not held on subscription channels - they are delivered to any connections that are interested then they are discarded. It is not a persistent queue etc.

Marc

On 16 May 2013 15:28, "Destan Sarpkaya" <des...@dorukdestan.com> wrote:
I have already posted on SO: http://stackoverflow.com/q/16585161/878361 and want to share here, too.

In my app I dynamically create new pubsub channels and there might be too many like 5k per day. According to my app's requirements any channel is used for at most 5minutes. (and subscribed clients may be closed without unsubscribing)

Considering this situation, thousands of unused channels will be present in the app in a week. So how can I delete unused channels or should I even delete them. What happens to the channel and messages published via them, do they stay on the memory?

thanks

--
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+u...@googlegroups.com.
To post to this group, send email to redi...@googlegroups.com.
Visit this group at http://groups.google.com/group/redis-db?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Jay A. Kreibich

unread,
May 16, 2013, 11:17:38 AM5/16/13
to redi...@googlegroups.com
On Thu, May 16, 2013 at 07:05:15AM -0700, Destan Sarpkaya scratched on the wall:
> I have already posted on SO: http://stackoverflow.com/q/16585161/878361 and
> want to share here, too.
>
> In my app I dynamically create new pubsub channels and there might be too
> many like 5k per day. According to my app's requirements any channel is
> used for at most 5minutes. (and subscribed clients may be closed without
> unsubscribing)
>
> Considering this situation, thousands of unused channels will be present in
> the app in a week. So how can I delete unused channels or should I even
> delete them. What happens to the channel and messages published via them,
> do they stay on the memory?

Messages never stay in memory. They are delivered and that's it. If
you're not connected, you don't get the message.

Channels are a lot like sets. If you have subscribers on a channel,
it exists. When the last subscriber leaves a channel, much like
removing the last element of a set, the channel no longer exists.

-j

--
Jay A. Kreibich < J A Y @ K R E I B I.C H >

"Intelligence is like underwear: it is important that you have it,
but showing it to the wrong people has the tendency to make them
feel uncomfortable." -- Angela Johnson
Reply all
Reply to author
Forward
0 new messages