Skip to content
StackDecode
System Design
16. Performance EngineeringAnimated

Spike Testing

Sudden jumps in load.

The idea

Test how the system copes with abrupt traffic surges, such as a sale.

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. 1Run at normal load
  2. 2Spike suddenly
  3. 3Measure errors and latency
  4. 4Watch scaling reaction

Where it is used

Flash sales and events.

Watch out for

Auto scaling may react too slowly.

Related