DATABASE
    advanced

    Database Replication Strategies

    Software Engineer path · lesson 58 of 99

    All writes go to the single Leader. Followers replicate asynchronously and serve reads — but may briefly lag behind.

    LeaderWrites + Reads
    Follower ARead-only
    Follower BRead-only

    Which replication strategy?

    Sort

    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 here

    Multi-leader

    Drop items here

    Leaderless (quorum)

    Drop items here
    6 pieces left to place

    Test your knowledge

    20 questions
    Question 1 of 20
    Score: 0

    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

    Meta
    Twitter
    LinkedIn
    Google
    Amazon
    CockroachDB
    Amazon
    Shopify
    eBay

    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