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
| Chapter | Focus |
|---|---|
| Primary-Secondary Replication | Leader-based replication, sync vs async |
| Multi-Leader Replication | Active-active, write conflicts |
| Leaderless Replication | Dynamo-style quorums, sloppy quorums |
| Conflict Resolution | LWW, version vectors, application-level merge |
| Conflict-Free Replicated Data Types | Eventually consistent data structures |
Learning Path
- Primary-Secondary — the default mental model for databases.
- Leaderless and Quorum Systems (in Consistency) — Dynamo/Cassandra intuition.
- Multi-Leader — multi-region active-active tradeoffs.
- Conflict Resolution and CRDTs — when replicas diverge by design.
Interview Prep
| Resource | Topic |
|---|---|
| Amazon DynamoDB Consistency | Quorums, session guarantees |
| Dropbox Sync Conflicts | Conflict copies |
| Lab | Eventual 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 here | What you practice |
|---|---|
| Chapter §22A / §22B | Ship-ready LLD + drill catalog |
| Chapter §23 PRACTICE | Full interview script |
| Curriculum Overview — Phase 7 | Rollout status |
Next Domain
Continue to Storage Engines and Distributed Databases.
Return to the Curriculum Overview for the full learning path.