Pattern 26 / SCALE

Horizontal Scaling

Use this when handling more stateless request volume by adding machines.

Pressure
Handling more stateless request volume by adding machines
Mechanism
Run multiple identical instances behind routing so any instance can handle any request
Toll
Needs load balancing and externalized session/state storage
Architecture plate26
Diagram for Horizontal Scaling
Executive brief

Horizontal Scaling fits when handling more stateless request volume by adding machines. Mechanism: run multiple identical instances behind routing so any instance can handle any request. Use it for web servers, API workers, background consumers, and stateless compute. The toll: needs load balancing and externalized session/state storage.

Use when

Web servers, api workers, background consumers, and stateless compute.

Example

Api tier grows from 4 to 40 containers during peak traffic.

Review framing

Describe the pressure first, then the mechanism, then the cost. That keeps the design grounded.

Same pressure family

Scaling Patterns

27Vertical Scaling28Load Balancing29Auto-Scaling30Database Connection Pooling
โ† 2527 โ†’