In Redis Pub/Sub, if a message is published to a channel before a client subscribes, what happens to that message?
Think about whether Redis Pub/Sub stores messages for future subscribers.
Redis Pub/Sub does not store messages. If a subscriber is not connected when a message is published, it misses that message.
Which reason best explains why Redis Pub/Sub does not guarantee message delivery to subscribers?
Consider how Redis handles message storage and subscriber connection status.
Redis Pub/Sub sends messages only to subscribers connected at the time of publishing. It does not store or queue messages for later delivery.
Which of the following Redis commands is NOT valid for subscribing to a channel?
Check the exact spelling of Redis Pub/Sub commands.
The correct command to subscribe is SUBSCRIBE. 'SUBSCRIBER' is not a valid Redis command.
A subscriber disconnects and then reconnects to a Redis Pub/Sub channel. It notices it missed messages sent during the disconnection. Why?
Think about Redis Pub/Sub message persistence and client connection status.
Redis Pub/Sub does not store messages for clients that are disconnected. Messages sent during disconnection are lost to that client.
Given Redis Pub/Sub does not persist messages, which approach best ensures message persistence and delivery to clients that may disconnect?
Consider Redis features designed for message persistence and replay.
Redis Streams provide message persistence and allow clients to read messages even after disconnecting, unlike Pub/Sub.