Horizontal vs vertical scaling
corebeginnerVertical scaling means moving to a bigger machine — more CPU, more RAM, on the same single instance. Horizontal scaling means adding more machines and spreading the work across them. They solve the same problem — not enough capacity — in structurally different ways.
Think of it as
Vertical scaling is replacing a small delivery van with a bigger truck — the same one vehicle now carries more, but there is still only one, and eventually no truck is big enough. Horizontal scaling is adding more delivery vans — each one stays the same size, but the fleet as a whole carries more, and adding another van has no upper limit the way "make the truck bigger" eventually does.
What we're doing: Show a database hitting the vertical-scaling ceiling and needing horizontal scaling instead.
- 5
- This is the ceiling itself: at some size, there is no bigger machine to buy.
- 8
- Both options that follow are horizontal — the only direction left once vertical is exhausted.
Why this works: Almost every system eventually hits vertical scaling's ceiling — a design that only ever plans to "get a bigger box" has no answer for what happens after the biggest box is already in use.
Treating vertical scaling as a permanent solution rather than a stopgap
Wrong
Better
What you see: A team repeatedly resizes to the next instance tier until, without warning, they are already on the provider's largest SKU and traffic keeps growing — with no horizontal plan in place and a design that assumed vertical scaling would always have room.
Why: Vertical scaling is the easy, no-code-change lever, which makes it tempting to lean on indefinitely — but it has a real ceiling, and a design should have a horizontal plan ready before that ceiling is reached, not after.
- Vertical (scale up)
- One instance, bigger CPU/RAM/disk
- Hard ceiling — the largest machine available
- Usually no code change needed
- Horizontal (scale out)
- More instances, load balanced
- No hard ceiling, in principle
- Needs a distributable workload, often statelessness
Vertical vs horizontal scaling
Together
Remember: Vertical scaling means a bigger machine and has a hard ceiling; horizontal scaling means more machines and has (in principle) none, at the cost of needing a distributable workload.
See also: stateless servers and scaling · scaling tradeoffs

