🏗️Horizontal Scaling
Also known as Scaling Out, Scale Out
Handling more work by adding more machines that share the load.
Think of it like
Think of it like opening more checkout lanes at a busy shop. Each lane takes some of the line.
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.
Definition
Common mistake
Key takeaways
- 1More machines. Each runs a copy.
- 2Spread the load. With a load balancer.
- 3No state on one box. Any machine can answer.