7

When we say a topic is created with a Replication factors = 3. Does this mean each partition will have total of 3 replicas - out of which 1 will be leader and 2 will be replicas?

Or does this mean that there will be 3 replicas on top of 1 leader replica and therefore totally 4 replicas?

Gupta
10.8k5 gold badges58 silver badges73 bronze badges
asked Dec 28, 2022 at 17:13

1 Answer 1

6

The replication factor of 3 includes the leader itself and 2 followers. Think of that factor in a more mathematical way: 1 times 3 still results in 3.

Let me give an example. A topic created with 3 partitions, replication factor of 3 results in 9 replicas. Three of those nine are leaders, the other six will be followers.

Unfortunately I didn't find something about that in the official documentation of Apache Kafka. But you can find some more details here https://www.javatpoint.com/kafka-topic-replication

answered Dec 28, 2022 at 23:32
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.