How Apache Kafka's Append-Only Log and Partitioning Architecture Works
Unlike traditional message queues such as RabbitMQ, which delete records once acknowledged, Apache Kafka operates as an append-only distributed commit log that keeps ordered, immutable messages on disk for a configurable retention period. This design lets multiple independent consumer groups read and replay data at their own pace. The architecture separates storage, handled by brokers and Kafka Connect, from client-side components such as producers, consumers, and Kafka Streams, which communicate over a binary TCP protocol. Topics are split into partitions spread across brokers, each with a leader handling writes and followers replicating data, with consumers limited to reading up to the High Watermark to avoid dirty reads during failovers. Kafka also achieves high throughput through OS page cache usage and zero-copy transfers, while partition routing decisions are made by clients rather than brokers.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in