Skip to content

Horizontal and Vertical scaling

system-architecturescalinghorizontal-scalingvertical-scaling

Scaling is about making a system handle more load, and there are two main ways: horizontal and vertical.

How it works

Vertical scaling means adding more power to one machine - like upgrading its CPU, memory, or storage. It makes that single server stronger. Horizontal scaling means adding more machines and spreading the work among them, often with a load balancer. It's about having more servers instead of just a bigger one.

Analogy

Horizontal and Vertical scaling Vertical scaling is like hiring a stronger worker who can lift heavier boxes by himself. Horizontal scaling is like hiring more workers, each carrying some boxes, so the job is shared.

Horizontal and Vertical scaling