A leader coordinates one partition’s replicas: producers send records to it, while followers fetch the log and report their offsets. Followers stay current so an in-sync replica can take over when the leader fails. section 5.3
A Kafka replication flow makes the operational trade-offs visible:
- Distribute partition leadership across brokers to balance coordination and write load. section 5.3
- Let followers fetch records and expose their offsets so acknowledgments can reflect replica progress. section 5.3
Three-broker product-price topic
A topic with three partitions and replication factor three places every partition on all three brokers while spreading leaders across them. Stopping Broker 3 moves Partition 1’s leadership to Broker 1; restarting Broker 3 restores synchronization, and preferred leader election can return leadership to Broker 3.
