DATABASE
advanced
Database Scaling: Sharding vs Replication
Software Engineer path · lesson 56 of 99Visualize how databases scale horizontally. Compare Master-Slave replication for read-heavy workloads against Data Sharding/Partitioning for horizontal write scaling.
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 hereSharding
Drop items here6 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
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