Skip to content
StackDecode
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.

App serversPrimary (writes)Replica 1 (read…Replica 2 (read…
  • 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

  1. 1Measure the limit
  2. 2Move to a larger machine
  3. 3Restart with more resources
  4. 4Repeat until the ceiling

Where it is used

Databases and quick fixes.

Watch out for

Hardware limits and downtime during resize.

Related