Skip to interview prep
Apexed

18. What is the difference between vertical and horizontal scaling?

MediumSystem design

Technical
Show model answer

Vertical scaling adds CPU or memory to one machine: simple, but it has a ceiling and a single point of failure.

Horizontal scaling adds more machines behind a load balancer: it scales further and improves availability, but needs stateless services or shared state, and brings distributed-systems problems such as consistency and partial failure.

What is the difference between vertical and horizontal scaling — Software engineering interview question — Apexed