Skip to content
Kafka Is Fun

Lesson 5 of 6

Replication Factor & Durability

1 min read

Overview

The replication factor (RF) is how many servers replicate each message: with RF=3 every partition is stored on three brokers. The in-sync replica set (ISR) holds the replicas that are keeping up with the leader; a follower is removed if it has not sent fetch requests, or has not consumed up to the leader's log end offset, within replica.lag.time.max.ms. min.insync.replicas is the minimum number of in-sync replicas, including the leader, required for a write to succeed when the producer uses acks=all.

Analogy

Key configuration

Settingsproperties
--replication-factor 3 — argument of kafka-topics.sh --create (there is no topic config named replication.factor)
min.insync.replicas=2 — topic or broker level, default 1
default.replication.factor — broker default for automatically created topics, default 1

Production tip

Check yourself

With replication factor 3, min.insync.replicas=2 and acks=all, how many broker failures can you survive while still accepting writes?

Sources

Checked against Kafka 4.2 documentation on Oct 2026. Draft: not yet reviewed by a Kafka specialist. Releases move on, so confirm against the current documentation before you act on a number.

Try it in the simulator

Guided scenarios for this module — the simulator opens with the exercise already running.

Prefer a picture? Open the live cluster in 3D and watch records move between producer, brokers and consumers.