apache-kafkakafka-partition

Does kafka's partitions replicas should be stored with the same partition name?


Saw the picture describing kafka's partition replicas:

enter image description here

I guess there should be the same partition (e.g. Partition 0) name for all replicas and leader, am I right?


Solution

  • Where did you get this picture? It's wrong as you noticed. Each partition can have one or more replicas for HA with one leader and one or more followers as backup for it. If this example would explain it, then you are right it should be Partition 0 for each of them.