All Questions
Redis medium

A client subscribes to a channel but briefly loses its network connection. What happens to the messages published during the outage?

  1. A Redis automatically replays all missed messages from the internal 'AOF' log once the client reconnects.
  2. B The messages are lost forever because standard Pub/Sub is a stateless 'Fire and Forget' broadcast.
  3. C Redis stores the missed messages in a Dead Letter Queue (DLQ) until the client manually pulls them.
  4. D The publisher's write command fails with a 'Consensus Timeout' because the subscriber was unreachable.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions