liveBook · Manning

Replica

As explained in Kafka for Architects

A replica is a copy of a Kafka partition's records maintained on a broker for redundancy and availability.

A replica is a copy of a Kafka partition maintained on a broker. Each partition has one leader and one or more followers, allowing copies to be distributed across machines for redundancy and availability. section 2.3.1

Replication introduces both resilience and operational trade-offs:

  • Producers write to the partition leader; followers asynchronously pull new records, so replicas can temporarily lag. section 2.3.1
  • An in-sync replica (ISR) has caught up with the leader sufficiently to participate in reliable writes. section 2.3.1
  • The replication factor sets the number of copies, while min.insync.replicas sets how many caught-up replicas must be available for a successful write. section 2.3.2
  • A single replica does not provide high availability; a commonly recommended resilience profile uses replication factor 3 and min.insync.replicas 2. section 2.3.2
Figure 2.10 Each partition has one replica designated as the leader, while the others serve as followers.
A screenshot of a black background

Description automatically generated

Use the leader–follower diagram to compare replica roles and their placement across brokers. section 2.3.1

How Kafka for Architects covers it

How deep it goes
Defines placement, asynchronous lag, ISR status, and write thresholds, while deferring detailed client reliability strategies.
Examples
Uses leader–follower placement, asynchronous follower catch-up, and a resilience profile of replication factor 3 with min.insync.replicas 2.
What it assumes
Assumes Kafka partitions and brokers, while defining leader, follower, and in-sync replica relationships.
What you can do after
Configure replication factor and min.insync.replicas to balance availability, durability, and write acceptance.
How it connects
Connects replicas to Kafka partitions, brokers, leaders, followers, in-sync replicas, replication factor, and min.insync.replicas.

Also explained in

Compare how 12 books explain replica →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Kafka for Architects. The section links point to the parts of the book it draws on.