Codele / System design
Scaling up and scaling out
When a website gets busier than its machine can handle, you have two choices: buy a bigger machine, or buy more of them. Pick the load and the choice, and see who survives.
- Scaling up (vertical) means one bigger machine. It is simple, but the biggest machine has a ceiling.
- Scaling out (horizontal) means more machines sharing the work. There is no ceiling: add more machines.
- One machine is a single point of failure: if it breaks, everything stops.
- With many machines, the others carry on when one breaks. Teams keep a spare for this.
- Many machines need something to share requests between them. That is a load balancer, next lesson.
Loading the playable lesson…