All labs
Lab 19
Application Scaling

Vertical vs Horizontal — Hitting the Ceiling

Scale up to a bigger box and watch cost climb to a hard ceiling; scale out with more instances and keep up — but only if the app is stateless. Two very different curves.

Same traffic, two strategies. Scale up = one machine you keep upgrading. Scale out = many small machines behind a load balancer. Crank the traffic and watch the curves diverge.
1500 req/s
quietcapacity now: 600 req/sviral
Capacity
600/s
Cost
$12/hr
Cost / 600 req/s
$12.0
lower is more efficient
One machine, upgraded in place
🖥️
2 CPU · 4 GB
tier 1 of 5
✗ Upgrade the box — or switch to scaling out.

Upgrade to the top tier, then push traffic past 9,600 — the ceiling is real. Flip to scale-out and add cheap instances instead.

What just happened