Kafka Architecture Explained: Brokers, Partitions and KRaft
A Kafka cluster is a group of brokers that store topics, with each topic divided into partitions that are replicated across several brokers. A controller quorum holds cluster metadata, tracking which brokers are alive and which replica leads each partition. Producers write to partition leaders, typically choosing a partition by hashing the record key, while consumers in groups read partitions in order using offsets. The article walks through this design using output from a three-node Kafka 4.4 test cluster, including a demonstration of failover after stopping one broker. It also explains that ordering is guaranteed only within a partition, and that partitions set the limit on parallel consumption within a group.
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