Design a durable, partitioned pub/sub messaging system like Kafka or Pulsar. Support millions of messages/sec across thousands of topics, with append-only per-partition logs, consumer groups with rebalancing, ISR replication, exactly-once semantics via idempotent producers and transactional writes, and tiered storage from SSD to object storage.
Suggested time: 90 minutes
Loading the workspace...
We are designing a durable, partitioned pub/sub messaging system in the shape of Apache Kafka or Apache Pulsar. This is not a generic "message queue" — it is a distributed commit log that producers append to and consumers replay at their own pace.
Produce
Consume
Consumer groups
Topic administration
Retention
Durability
The building blocks this design relies on, each explained in its own lesson.