Q16 · What are the signals that a system needs vertical scaling vs horizontal scaling?

Back to 24 Architecture Questions.

The question is not “cloud says scale out”. The axis it turns on: which resource is saturated, and whether the workload can be split at all. Scaling is a direction chosen against a measured constraint; the wrong direction buys hardware and changes nothing.

The saturated resource decides CPU-bound workloads can be split across instances. Memory-bound workloads hit a vertical ceiling or need the leak fixed. State-bound workloads cannot scale out until the state is split or removed. FIGURE 16 THE SATURATED RESOURCE DECIDES CPU-bound compute saturates Scale Out more instances splittable: each instance takes a share Memory-bound heap, buffers, cache Scale Up bigger box / fix leak vertical hits a ceiling; a leak never heals State-bound one writer, one disk Split the State partition by key unsplittable state caps the whole fleet the saturated resource picks the direction; measure before buying either

What the answer should contain

Diagnose the constraint before choosing a direction. CPU, memory, I/O, connections, locks: which one saturates first under load? Scaling out a memory-bound system multiplies the leak; scaling up a CPU-bound system wastes the money a second instance would have spent better. The saturation measurement is the entire basis of the decision.

Splittability is the real question for scale-out. The workload splits if requests are independent, state is shareable or partitionable by key, and no single-writer invariant demands one owner. Stateless services split trivially; stateful ones split only after the state is partitioned or moved out of the request path (session store, cache, database).

Vertical is a legitimate, temporary answer. No code change, minutes of work, and the right move for a state-bound single node or a small load. Its costs are the ceiling (the biggest box exists), the single failure domain, and price growth that stays linear while the box grows quadratically. Buy it knowingly, with a plan for what comes next.

Check the cheaper fixes first. The hot path is usually the problem, not the fleet size: an N+1 query, a missing index, an answer that could be cached, a call that could be async. Scaling is the most expensive fix and it should be last, not first, because it converts a code problem into a permanent bill.

Horizontal needs the ops story to match. A balancer, health checks, deployment automation, and a partitioning plan for whatever state remains. Half of scale-out is code; the other half is the operational machinery that makes N instances cheaper than one big box rather than more fragile than it.

Ideas worth mentioning out loud

Follow-ups to expect

Red flags in an answer

Sources