DATABASE
    advanced

    Database Scaling: Sharding vs Replication

    Software Engineer path · lesson 56 of 99

    Master-Slave Replication

    Scales read performance through replica distribution while maintaining write consistency via single master

    API / Application
    Master DatabaseAll WritesWrites only
    Read Replica ARead-Only1000 reads/sec
    Read Replica BRead-Only1000 reads/sec

    Replication or sharding?

    Sort

    Sort each trait into the scaling technique it describes.

    Tap a piece, then tap where it goes — or drag it. Tap the tray to take one back.

    Replication

    Drop items here

    Sharding

    Drop items here
    6 pieces left to place

    Test your knowledge

    20 questions
    Question 1 of 20
    Score: 0

    Which technique is best for scaling a system with 100x more Reads than Writes?

    Interview Questions

    Meta
    Twitter
    LinkedIn
    Amazon
    Google
    Shopify
    Stripe
    PayPal
    Uber

    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