Skip to content
TeachTrails
System DesignInterviews

Design a Message Queue (Kafka): Topics, Partitions and Offsets

Design a distributed message queue like Kafka: an append-only log, topics and partitions, consumer groups and offsets, replication, ordering and delivery guarantees.

Sudipta Biswas, AI Engineer

13 min read

Beginner friendly
DESIGN A MESSAGE QUEUEAppend to a log, split it into partitions, let each consumer remember where it stopped.1Producerkey + value2Partitionhash(key)3Appendreplicated log4Consumer groupone per partition5Offsetcommit progressApache Kafka, Amazon Kinesis, Redpanda, Pulsar, RabbitMQ and SQS for simpler queues

Checking your access…