When demand for a service grows, a single server sooner or later runs out of capacity. Beyond that there are two paths: add more identical servers and spread requests between them (scale out), or replace the server with a more powerful one — one with more cores and memory (scale up). The choice shapes the application’s architecture.
Two approaches
| Criterion | Horizontal (scale out) | Vertical (scale up) |
|---|---|---|
| What you do | add more nodes of the same type | upgrade a single node: CPU, memory, disk |
| Limit | practically unlimited, bounded by budget and network | the limit of the largest machine |
| What it takes | a load balancer, shared state storage | usually nothing: the code stays unchanged |
| Node failure | the rest keep working | the node is a single point of failure |
Where the limit lies
The limit of vertical scaling is the most powerful server available: the number of processors, the amount of memory and disk cannot grow forever. Once that limit is reached, the horizontal path is all that remains.
Horizontal scaling runs into a different limit — application state. So that any node can serve any request, the service is made stateless: data is kept in external storage — a database, a cache or object storage — and sessions in shared storage or in tokens on the client. The more nodes, the higher the overhead of keeping them in sync.
Example
A web application on a single server with 64 GB of memory handles 2,000 requests per second. Growth to 8,000 requests can be met vertically — with a 256 GB server — or horizontally, with four servers behind a load balancer. The second path costs more to set up, but it does not run into the ceiling of a single machine and survives the failure of any node.
kubectl scale deployment web --replicas=8Sources
the term is written from these pages- IBM Cloud — When should you scale-up vs. scale-out?ibm.com/think/topics/scale-up-vs-scale-out(opens in a new tab)
- Google Cloud — Scalable and resilient appscloud.google.com/architecture/scalable-and-resilient-apps(opens in a new tab)
- AWS — Auto Scaling benefits for application architecturedocs.aws.amazon.com/autoscaling/ec2/userguide/auto-scaling-benefits.html(opens in a new tab)
Verified 9 Nov