Skip to content
StackDecode
System Design
8. Load Balancing and ScalabilityAnimated

Elastic Scaling

Capacity that stretches and shrinks quickly with demand.

The idea

Elasticity is automatic scaling in both directions, paying only for what is used.

Watch it work

Press play, pause, or step through. Some animations have settings you can change.

Load balancerApp 1App 2App 3App 4Shared state
  • client
  • gateway / proxy
  • service
  • cache
  • data store
  • queue / stream

Scale the app tier by adding identical instances.

step:
1/4
at:
Load balancer
1/8

The green dot is a request moving through the system.

Step by step

  1. 1Demand rises
  2. 2Capacity grows
  3. 3Demand falls
  4. 4Capacity shrinks

Where it is used

Spiky traffic.

Watch out for

Cold starts and warm-up delays.

Related