There's more...
For the life cycle of a channel, SUBSCRIBE will create the channel automatically if the given channel has not been subscribed before. And, once there is no active subscriber on the channel, the channel will be deleted at the same time.
Considerable attention must be paid so that there is nothing persisted in Redis PubSub. That means that no messages, channels, or the relationships for PubSub, will be saved on disk. If the server exits for some reason, all these objects will be gone.
Moreover, in the message delivery and processing scenarios, if there is no subscriber for a channel, the message pushed will be dropped. In other words, there is no mechanism to guarantee message delivery. In addition, each message pushed into ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access