System Design
8. Load Balancing and ScalabilityAnimated
Vertical Scaling
Making one machine bigger.
The idea
Add CPU, RAM or faster disks. Simple, but with a ceiling and a single failure point.
Watch it work
Press play, pause, or step through. Some animations have settings you can change.
- client
- gateway / proxy
- service
- cache
- data store
- queue / stream
Step one: add indexes and cache.
- step:
- 1/4
- at:
- App servers
1/7
The green dot is a request moving through the system.
Step by step
- 1Measure the limit
- 2Move to a larger machine
- 3Restart with more resources
- 4Repeat until the ceiling
Where it is used
Databases and quick fixes.
Watch out for
Hardware limits and downtime during resize.