【Kafka】Advance

Posted by 西维蜀黍 on 2021-10-09, Last Modified on 2023-02-17

HA and Scalability

  • Partitions can have copies to increase durability and availability and enable Kafka to failover to a broker with a replica of the partition if the broker with the leader partition fails. This is called the Replication Factor and can be 1 or more.

The following diagrams (from the insidebigdata series we published last year on Apache Kafka architecture) illustrate how Kafka partitions and leaders/followers work for a simple example (1 topic and 4 partitions), enable Kafka write scalability (including replication), and read scalability:

Figure 1: Kafka write scalability – showing concurrent replication to followers

Reference