Database Replication Strategies
Software Engineer path · lesson 58 of 99Explore how databases stay in sync across multiple nodes — comparing leader-follower, multi-leader, and leaderless quorum approaches with their write availability and consistency trade-offs.
All writes go to the single Leader. Followers replicate asynchronously and serve reads — but may briefly lag behind.
Which replication strategy?
Sort each trait into the replication strategy it describes.
Tap a piece, then tap where it goes — or drag it. Tap the tray to take one back.
Leader-follower
Drop items hereMulti-leader
Drop items hereLeaderless (quorum)
Drop items hereTest your knowledge
A client writes a new value to the leader, then immediately reads from a follower and gets the old value. What term best describes this situation?
The short version
Think of a company memo system: in leader-follower, head office issues all memos and branch offices receive copies with a short delay. In multi-leader, multiple regional HQs each issue memos, but if two HQs send conflicting policy memos on the same day, someone must decide which one wins. In leaderless/quorum, any branch can update the shared policy binder — but the update only "counts" once a majority of branches stamp it, so no single branch is a bottleneck.
Interview Questions
References & Further Reading
Love this visualization?
Sign up to track your progress, earn achievements, use the AI assistant, and access your personal learning dashboard.
100% free • No credit card required