Skip to content
StackDecode
System Design
1. System Design FundamentalsAnimated

Scalability

The ability to handle more load by adding resources.

The idea

A scalable system keeps working well as users, data or traffic grow. You can scale up (bigger machine) or out (more machines).

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 current load and growth
  2. 2Find the first bottleneck
  3. 3Remove it by caching, replicating or partitioning
  4. 4Measure again

Where it is used

Planning for growth without over-building.

Watch out for

Scaling the wrong thing. Measure before adding servers.

Related