Vertical vs horizontal scaling
Vertical scaling (scale-up): add CPU, RAM, or faster disks to one machine. Simple — no code changes, no coordination overhead. The ceiling is real: a 192-core AWS u-24tb1 costs ~$220/hr and still breaks at ~500k QPS on a single database. Horizontal scaling (scale-out): add more identical nodes. Theoretically unlimited, but requires your application to tolerate the new topology.
Real numbers to anchor intuition: a single c6g.4xlarge EC2 instance handles ~30k HTTP requests/sec. Add 10 of them behind a load balancer and you get ~300k req/sec at ~15% of the cost of one monster box. Scale-out wins on price-performance beyond ~4x vertical growth — which is why every large system eventually horizontalizes.
The hard prerequisite: your nodes must be stateless, or scaling adds more problems than it solves.
