Skip to the guide

Vertical vs horizontal scaling

BeginnerConcept3 pages

When a server can't keep up, you have two moves. Give it a bigger machine (scale up, or vertical scaling), or add more machines and split the work between them (scale out, or horizontal scaling). Interviewers expect you to say which one each part of your design uses, and why the answer is usually different for the app servers and for the database.

A moving company with too many bookings

A small moving company has one van and more bookings than it can carry. The owner can trade it for a bigger van: same driver, nothing else changes. But vans only come so big, and when the one van is in the garage, nobody moves house that day. Or she can buy three more vans. A breakdown now slows the business instead of stopping it, and she can add vans as bookings grow. The catch is that someone has to hand out the jobs. Each job's paperwork also has to stay in the office, not in one van's glovebox, or no other driver can pick it up.