SteelReed

Search

Search posts, questions…

System DesignQuestion 13 / 26

Junior

What is the difference between scaling up and scaling out? When do you choose each?

Short answer

Scale up (vertical) means a bigger machine; scale out (horizontal) means more machines sharing the load. Scaling up is simple, no code changes, but has a ceiling and stays a single point of failure; scaling out is nearly unlimited but needs stateless services, a load balancer and distributed data handling.

scale out earlyStateless app tierAdd instances behind LBDatabaseTune queries, indexesScale upRead replicas, cacheShard last

3 points to say:

  1. Scale up: simple, nonlinear cost, a hardware ceiling, still a single point of failure.
  2. Scale out: survives losing nodes, needs stateless services (session in Redis or JWT) and accepts distributed complexity.
  3. Apps scale out from day one; the DB scales up as long as possible, sharding last. Scalability means keeping performance as load grows.

Keep reading the deep dive

Create a free account to read the full explanation and follow-up questions, mark questions as studied and review them on a schedule.