SaveMyCert
Cloud basics

Horizontal vs vertical scaling: what is the difference?

Horizontal scaling (scaling out) means adding more machines or instances to share the load, while vertical scaling (scaling up) means making one existing machine bigger — more CPU, more memory. Both are ways of growing capacity to handle more work, but they get there very differently, and the trade-offs between them shape how modern cloud systems are designed.

Two ways to grow capacity

When an application starts to strain under load, there are only two directions to grow: outward, by adding more machines that each handle a share of the work, or upward, by giving the existing machine more resources so it can handle more work alone. Horizontal scaling is the first: a fleet of instances behind a load balancer instead of one. Vertical scaling is the second: the same single server, just with a bigger CPU and more memory attached.

Vertical scaling: simple, but with a ceiling

Scaling up is conceptually simple — the application does not need to know anything about running on multiple machines, because there is still only one. That simplicity is real and valuable, particularly for workloads that are awkward to split across machines, such as certain databases. But it comes with two honest limits: there is a physical ceiling on how large a single machine can get, and a single machine, no matter how large, remains a single point of failure — if it goes down, the whole application goes down with it.

Horizontal scaling: resilient, but needs distributed design

Scaling out spreads the same total capacity across many smaller machines, which means no single failure takes the whole system down — if one instance fails, the others keep serving traffic. It also has no meaningful upper limit in the way vertical scaling does; you can, in principle, keep adding more machines. The cost is complexity: the application has to be designed to run correctly as multiple independent copies, requests need to be distributed across them (our what is a load balancer explainer covers exactly this job), and anything the application needs to share — session state, for instance — has to be handled deliberately rather than assumed to live in one place.

Why the cloud favours horizontal scaling

Cloud platforms are built around the assumption that you can request another instance in moments and dispose of it just as quickly, which suits horizontal scaling far better than vertical — resizing a running machine is possible but usually involves more disruption than simply adding another one alongside it. This is why cloud architectures lean heavily on auto-scaling: rather than manually adding or removing capacity, an auto-scaling group watches demand and adjusts the number of running instances automatically, giving you the resilience of horizontal scaling without constant manual intervention. Our what is auto-scaling explainer covers how that works in more depth.

When each still makes sense

Vertical scaling is not obsolete — it is often the right first move for a workload that is not yet distributed-friendly, or for components like certain relational databases where splitting the work across machines is genuinely hard. Horizontal scaling is the default assumption for stateless application tiers, web servers and anything expected to grow substantially, precisely because it avoids a hard ceiling and a single point of failure. Many real systems use both: a horizontally scaled fleet of application servers in front of a vertically scaled (and perhaps separately replicated) database.

  • How it grows — Horizontal: adds more machines. Vertical: makes one machine bigger.
  • Resilience — Horizontal: no single point of failure. Vertical: one machine, one point of failure.
  • Ceiling — Horizontal: effectively no fixed limit. Vertical: bounded by the largest available machine.
  • Complexity — Horizontal: needs distributed design and load balancing. Vertical: simpler, no distribution to manage.
  • Cloud fit — Horizontal: pairs naturally with auto-scaling. Vertical: usually a manual resize with some disruption.
Ready to start studying — free?

Original practice questions, timed mock exams and revision notes. No card, nothing to pay.

Jump straight into an exam
CLF-C02SAA-C03AZ-900

Questions, answered

Horizontal scaling (scaling out) adds more machines or instances to share the workload, while vertical scaling (scaling up) increases the resources — CPU, memory — of a single existing machine. They grow capacity in different directions with different trade-offs.

Sources

Exam details in this post come from the vendor's published exam guide, which is the authority on what is tested and how.

Keep reading

Cloud basics
Kinesis vs Kafka: which real-time streaming option?
Cloud basics
Redis vs Memcached: which in-memory cache should you pick?
Cloud basics
What is a data lakehouse?
Cloud basics
What is a DDoS attack?