Database Replication
7 chapters on database replication for system design interviews.
Introduction to Database Replication
IntermediateWhy databases replicate data, and the reliability and latency trade-offs of copying writes across nodes.
6 min read
Leader-Follower Replication
IntermediateSingle-leader replication: how followers catch up, failover, and read-after-write issues.
8 min read
Multi-Leader Replication
AdvancedMulti-leader setups for multi-datacenter writes, and the conflict patterns they introduce.
8 min read
Leaderless Replication
AdvancedLeaderless replication with quorums, hinted handoff, and read repair.
8 min read
Sync, Async, and Semi-Sync Commits
IntermediateSynchronous, asynchronous, and semi-synchronous commit — durability versus write latency.
7 min read
Leader Election in Replication
AdvancedHow replica sets elect a new leader after failure, and what happens to in-flight writes.
8 min read
Conflict Resolution in Multi-Leader Replication
AdvancedDetecting and resolving write conflicts in multi-leader replication, including last-write-wins and merge strategies.
8 min read