Skip to content

Replication and quorums

Predict acknowledged-write loss after failover, calculate quorum overlap and failure tolerance, and reason about repair and stale replicas.

27 min8 steps

By the end you can
  • Estimate acknowledged writes at risk from a specified async replication gap
  • Calculate intersecting read and write sets and majority failure tolerance
  • Choose acknowledgement and read routing policies for a stated consistency requirement
  • Distinguish read repair, anti-entropy, hints and tombstone retention

Copies protect different promises

A leader orders writes; followers copy them and may lag. Sync waits for a stated replica condition; async does not. Say what "acknowledged" means: received, flushed, or applied. Replicas copy accidental deletes too.

writewait for ackship logClientLeaderFollower (sync)waitsFollower (async)may lag

An order acknowledgement must survive loss of the leader's machine. Which condition directly supports that requirement?

Answer this step to continue.

What this lesson simplifies

  • Quorum arithmetic uses a fixed replica set; sloppy quorums and membership transitions can invalidate the overlap guarantee.
  • Overlap alone does not prove linearizability or resolve concurrent versions.
  • Loss estimates use constant write rate and an exactly specified replication gap; no Merkle-tree implementation is taught.

Sources

  1. Giuseppe DeCandia et al.. Dynamo: Amazon's Highly Available Key-value Store, 2007.
  2. The PostgreSQL Global Development Group. Log-Shipping Standby Servers, PostgreSQL 18 Documentation, 2025.

Reviewed by K1 content review on . Revision 1.