Back to All 30 System Design Questions
LLDHardQuestion 27 of 30
Design a Distributed In-Memory Pub/Sub Message Broker (Kafka Lite)
Design and implement an in-memory partitioned append-only message broker supporting topic partitioning, consumer group offset tracking, at-least-once delivery, and concurrent non-blocking publishes.
Asked by:ConfluentUberStripeAmazon
#Low Level Design#Message Broker#Concurrency#Ring Buffer#Offset Tracking
Object-Oriented Class Hierarchy
Compiling architecture diagram...
Distributed Pub/Sub Message Broker
Partitions message topics into independent append-only commit logs for high write concurrency, routes keys deterministically using hash modulo, and delegates reading offsets to independent consumer groups.