System design · interactive
Scaling up vs scaling out
Traffic grows. You can buy a bigger machine (vertical) or add more machines behind a load balancer (horizontal). Each vCPU handles about 250 requests a second. Prices are illustrative.
1,000 requests / second
Vertical
4 vCPU
$100/mo · capacity 1,000
One machine fails: 100% down
Horizontal
2 × 4 vCPU + LB · $220/mo
One machine fails: 50% of capacity lost
At low traffic, one bigger box is cheaper and far simpler. Just keep a standby for failures.
Step 1 of 4 · read left to right
In production
Tools and technologies
Clouds make both kinds of scaling a configuration change.
Not tied to one language — use these names when you search docs or design a system.