Skip to main content

Replication

Primary-secondary, multi-leader, leaderless replication, quorums, and conflict resolution.

Figure: Primary-secondary replication with read/write paths.

What You'll Learn​

Replication trades availability and latency against consistency. This domain covers replication topologies, read/write quorums, failover, conflict detection, and CRDTs as an alternative to last-write-wins.

Chapters​

ChapterFocus
Primary-Secondary ReplicationLeader-based replication, sync vs async
Multi-Leader ReplicationActive-active, write conflicts
Leaderless ReplicationDynamo-style quorums, sloppy quorums
Conflict ResolutionLWW, version vectors, application-level merge
Conflict-Free Replicated Data TypesEventually consistent data structures

Learning Path​

  1. Primary-Secondary — the default mental model for databases.
  2. Leaderless and Quorum Systems (in Consistency) — Dynamo/Cassandra intuition.
  3. Multi-Leader — multi-region active-active tradeoffs.
  4. Conflict Resolution and CRDTs — when replicas diverge by design.

Interview Prep​

ResourceTopic
Amazon DynamoDB ConsistencyQuorums, session guarantees
Dropbox Sync ConflictsConflict copies
LabEventual consistency on :8099 — engineer guide

Prerequisites​

Production readiness + Game Day​

Every substantive chapter in this domain targets the Production LLD and Game Day Standard: whiteboard Production LLD (APIs, data, failure paths) and run Game Day drills (inject → detect → mitigate → verify → learn).

Start hereWhat you practice
Chapter §22A / §22BShip-ready LLD + drill catalog
Chapter §23 PRACTICEFull interview script
Curriculum Overview — Phase 7Rollout status

Next Domain​

Continue to Storage Engines and Distributed Databases.

Return to the Curriculum Overview for the full learning path.