# Horizontal Scaling

> Handling more work by adding more machines that share the load.

**Field:** Software Development  
**Category:** Architecture  
**Also known as:** Scaling Out, Scale Out

## Think of it like

Think of it like opening more checkout lanes at a busy shop. Each lane takes some of the line.

## Definition

Horizontal scaling means handling more work by adding more machines. Each machine runs a copy of the app, and a load balancer spreads the requests among them. There is no hard upper limit: you keep adding machines. If one machine dies, the others carry on. The app must be built for it, though, with no user data kept on a single machine.

## Example

Jack's API runs on 2 servers. Before a big sale he adds 8 more, and the load balancer sends each one a tenth of the traffic.

## Why it matters

It is how big websites serve millions of people. It also means one broken machine does not take the site down.

## Common mistake

Keeping user logins on one server. If the next request goes to another server, the user is logged out.

## Three principles

- **More machines.** Each runs a copy.
- **Spread the load.** With a load balancer.
- **No state on one box.** Any machine can answer.

## Related terms

- [Vertical Scaling](https://learn.benibix.com/term/development/vertical-scaling)
- [Scalability](https://learn.benibix.com/term/development/scalability)
- [Distributed System](https://learn.benibix.com/term/development/distributed-system)
- [Session (Web)](https://learn.benibix.com/term/development/session)
- [Container Orchestration](https://learn.benibix.com/term/infrastructure/container-orchestration)
- [Stateless Service](https://learn.benibix.com/term/development/stateless-service)

## Told apart from

- [Horizontal vs Vertical Scaling](https://learn.benibix.com/compare/horizontal-vs-vertical-scaling): Horizontal and vertical scaling are both ways to handle more work, but they grow in two different ways. Vertical scaling makes one machine bigger, with more cores and memory. Horizontal scaling adds more machines that share the load. Going up is easy but has a ceiling. Going out has no ceiling, but the app must be built for it.

---

Source: https://learn.benibix.com/term/development/horizontal-scaling
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
