Overview - Pub/sub limitations (no persistence)
What is it?
Pub/sub is a messaging pattern where publishers send messages to channels, and subscribers listen to those channels to receive messages instantly. In Redis, this system allows real-time communication but does not save messages. If a subscriber is not connected when a message is sent, it misses that message forever. This means messages are transient and only delivered live.
Why it matters
Without persistence, messages can be lost if subscribers are offline or disconnected. This limits reliability for critical data delivery. Imagine missing an important alert because you were not connected at that moment. Persistence solves this by storing messages until subscribers can receive them, ensuring no data loss.
Where it fits
Before learning this, you should understand basic Redis commands and the pub/sub messaging concept. After this, you can explore Redis Streams or other message queue systems that provide persistence and message durability.