open atlas
↑ Back to track
System Design Foundations SD · 01 · 05

Scalability: multiple-choice review

Multiple-choice synthesis across the scalability unit: Little's Law and the queueing curve, vertical vs horizontal tradeoffs and the USL, back-of-envelope arithmetic, and the latency numbers used to reject designs.

SD Senior ◷ 13 min
Level
FoundationsJuniorMiddleSenior

Six questions that cut across the whole unit. Each is a decision you make when you size a service, review a design doc, or estimate a system on a whiteboard — not a definition to recite, but the arithmetic of Little’s Law, the USL, and the latency numbers under real load.

Confirm you can apply Little’s Law to find a throughput ceiling, read the queueing curve, place a workload on the vertical/horizontal axis with the USL in mind, run a back-of-envelope estimate to one significant figure, and reject a design from the latency numbers alone.

Quiz

A service is capped at 150 concurrent in-flight requests by its connection pool, and each request averages 30 ms end to end. By Little's Law, what is its maximum sustainable throughput?

Quiz

At 90% utilization your p99 latency is ~10× the unloaded service time, and the team wants to push to 98% to 'use the hardware fully.' What does the queueing curve predict?

Quiz

A stateless API tier scales out linearly to ~30 nodes, then total throughput plateaus and finally dips slightly past ~45 nodes. By the Universal Scalability Law, what's happening?

Quiz

Estimating to one significant figure: 50M daily active users each make 20 requests/day. What is the average QPS, and what peak should you provision for?

Quiz

A design doc proposes serving 50,000 reads/second by random-seeking records from a spinning HDD. Using the latency numbers, what is the verdict, with the binding limit?

Quiz

Your single write-primary database is at 70% CPU on the second-largest instance type, and traffic grows 8%/month. Which plan reflects the vertical-scaling lesson?

Recall before you leave
  1. 01
    Why keep utilization at 60–70% instead of pushing to 98%?
  2. 02
    How do you reject a 50K-reads/sec spinning-disk design in one sentence?
Recap

The through-line is that scaling is arithmetic you do before you build. Little’s Law (λ = L/W) gives a throughput ceiling from concurrency and latency; the queueing curve (W = 1/(μ−λ)) makes the tail go vertical near the limit, so you keep 30–40% headroom instead of squeezing to 98%. Vertical scaling is simple but capped, superlinear in cost, and a SPOF — so you bump as a stopgap while starting scale-out before the ceiling; horizontal scaling is elastic but pays the USL coordination tax (α plateaus, β makes the curve retrograde). Back-of-envelope estimates (requests/day ÷ ~10^5, sized for a 3× peak, rounded to one significant figure) tell you which resource breaks first, and the latency numbers (~100 random seeks/sec on HDD, ~150 ms cross-region) let you reject a bad design in a sentence — no benchmark required.

Something unclear?

Ask a question about this lesson. Questions are anonymous and go straight to the author to make the lesson better.

shortcuts expand
search
K
prev piece
k
next piece
j
cycle tier
t
this menu
?
sources3
expand
  1. 01
  2. 02
  3. 03

Trademarks belong to their respective owners. Editorial reference only.