does redis pub sub persist historical messages in a channel?
publish-subscribe, redis
Solution
The pub/sub messages are not queued, and even less persisted.
They are only buffered in the socket buffers, and immediately sent to the subscribers in the same event loop iteration as the publication.
If a subscriber fails to read a message, this message is lost for the subscriber.
Problem
I haven't been able to find in the documentation on how the messages in a channel get stored in redis publish/subscribe. When you publish to a redis channel, is that message stored or persisted? If so, how long is it stored and how do you get historical messages? Otherwise, I'm assuming that it just broadcasts that message and drops/deletes that message after doing so?