Why it matters

Foundational replication pattern. Understanding shapes DB deployments.

Advertisement

The architecture

Leader accepts writes; streams to followers.

Followers accept reads.

Leader-followerLeader (writes)single writerFollowers (reads)N replicasReplication lagasync gapSync: strong consistency, slower writes. Async: eventual, faster
Replication pattern.
Advertisement

How it works end to end

Sync vs async replication: consistency vs latency trade-off.

Failover: promote follower to leader on failure.

Read-your-writes: sticky sessions or read from leader.