AdvancedAbout 20 min

    Database Scaling: Sharding vs Replication

    Read the full article on Substack

    5 min read.

    Visualize how databases scale horizontally. Compare Master-Slave replication for read-heavy workloads against Data Sharding/Partitioning for horizontal write scaling.

    ApplicationServer2,500 q/s

    One server. It can handle 4,000 queries a second. Right now: 2,500. Server handles 2,500 of 4,000 queries a second.

    1/4

    Check your understanding

    Answer from memory before you scroll back up. Pulling an idea out of your head is what makes it stay there.

    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

    Quiz

    20 questions
    Question 1 of 20
    Score: 0

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

    Done with this lesson?

    Sign in free to keep your progress, streak and quiz scores.

    Keep going