Skip to content
Theory · Kafka reliability · lesson 1 of 7

Replication: leader and followers

Three lecterns 1 2 3 with copies of one ledger: the third is paused, the leader's star moved to the first (Leader: 1), a bracket Isr: 1,2 under the first two

A server holding a partition can fail at any moment: the power goes off, a disk breaks. For records to survive this, Kafka keeps every partition on several brokers at once. The copies must be kept identical, and when a server goes down, Kafka must quickly decide which one is now in charge.

In this lesson

  • Leader and followers
  • Where the replicas live
  • A broker goes down
  • Who can become the leader
  • Common mistake
  • Key points