Skip to content

13.1. Messaging Platform: Apache Kafka

Kafka is a case study in how a single abstraction — the distributed, replicated commit log — becomes the backbone of an entire data ecosystem. Its performance comes from working with the hardware rather than against it: sequential disk writes, zero-copy reads, and the page cache instead of a JVM heap. This chapter dissects the design decisions behind that performance, the KRaft mode that removed its ZooKeeper dependency, consumer-group rebalancing failure modes, and how exactly-once semantics are actually achieved.