Skip to main content
InterviewHubPRO
Section Overview
Q17

Question 17 of 50

Part 2: Core Architecture & Implementation (Mid-Level)

34%
Redis & Caching (50 Qs)•Part 2: Core Architecture & Implementation (Mid-Level)

What is Pub/Sub in Redis and what is its main limitation?

senior LevelSystem Design

In Simple Words: Redis Pub/Sub provides simple message broadcasting (PUBLISH, SUBSCRIBE, PSUBSCRIBE):

  • Limitation (At-Most-Once / Fire-and-Forget): Redis does not buffer or store messages. If a subscriber is disconnected or crashes for 2 seconds, all messages published during that window are permanently lost!
  • Use Redis Streams if message persistence, acknowledgments, and consumer groups are required.