system design courseScaling
What to do when one machine stops being enough, and what breaks the moment there are two.
4 chapters16 lessonsabout 1 hour
Scale up (bigger machine) vs scale out (more machines).
- Scaling Up: The Bigger Box2 min
- Scaling Out: More Boxes2 min
- What Breaks When You Go Horizontal2 min
- Choosing in an Interview2 min
Distribute traffic across servers so no single machine is overwhelmed.
- What a Load Balancer Does2 min
- Picking an Algorithm6 min
- L4 vs L73 min
- Health Checks and Failure Handling2 min
Copy data across multiple DB nodes for reads and high availability.
- Leader-Follower Basics2 min
- Sync vs Async Replication2 min
- Replication Lag in Practice3 min
- Failover and Multi-Leader3 min
Horizontally partition data across multiple DB instances by shard key.
- Why Shard, and Why Wait2 min
- Picking a Shard Key3 min
- Resharding Pain3 min
- Living with Cross-Shard Queries3 min