Infrastructure Primitives
Design a Message Queue (Kafka clone)
A durable, partitioned append-only log system decoupling producers from consumers with configurable retention and consumer-group semantics.
Open and Simulate this Architecture in InfraDraftCore Architectural Components
Partitioned Append-Only Log
Per-topic, per-partition sequential storage — the fundamental durability primitive.
Broker Cluster
Hosts partition leaders and followers, spreading load and replicas across machines.
Producer Client
Batches and routes messages to the correct partition via a key or round-robin.
Consumer Group Coordinator
Manages offset tracking and partition rebalancing across a consumer group.
Replication Protocol (ISR)
In-sync-replica tracking that guarantees no acknowledged write is lost on leader failure.
Metadata Controller (KRaft/ZooKeeper)
Tracks cluster topology, partition leadership, and broker liveness.
Retention & Compaction Policy Engine
Time/size-based retention or key-based log compaction per topic.