Scaling & Load BalancingBeginner14 min read1 questions

Horizontal vs Vertical Scaling and Stateless Design

How a single server becomes a fleet. Why statelessness is the precondition for everything, and the ordered sequence of moves that takes a system from one box to millions of users.

Covers: Scale up vs scale out, statelessness, session storage, autoscaling, the scale ladder, cost curves

Scaling has exactly two shapes: buy a bigger machine, or buy more machines. Vertical scaling is simpler and has a hard ceiling. Horizontal scaling has effectively no ceiling and requires you to solve a new problem - where does the state live? Almost every technique in this course is a consequence of that second question.

Filter
0/1 mastered
BeginnerscalingarchitecturecostAsked at Amazon, Netflix

30-second answer

Scale vertically first because it requires no code changes and modern machines are enormous - hundreds of cores and terabytes of RAM. Switch to horizontal when you hit the ceiling of a single machine, when the cost curve turns superlinear (the biggest instances cost disproportionately more per unit of capacity), or when you need redundancy, because one machine is a single point of failure regardless of how big it is. In practice, redundancy forces horizontal scaling long before capacity does.

Showing 1 of 1 questions for horizontal-vs-vertical-scaling.

Check your understanding

3 questions · no sign-up, nothing stored

0/3 answered
Question 1

1.What is the precondition for horizontal scaling of an application tier?

Question 2

2.An I/O-bound API sits at 30% CPU while latency triples. Which autoscaling signal is most appropriate?

Question 3

3.Why should scale-in be slower than scale-out?