SteelReed

Search

Search posts, questions…

System DesignQuestion 11 / 26

Middle

What is Little's Law and how do you use it to estimate capacity?

Short answer

Little's Law: L = λ × W: requests in flight equal throughput times average time in the system; 1,000 QPS × 200 ms ≈ 200 requests in flight. It holds for any stable system, with no assumption about distributions.

λ: 1,000 QPSL = λ × WW: 200 ms≈ 200 requests in flightSize pool, instances,consumers

3 points to say:

  1. Use it to size connection pools, instance counts, consumers, and backlog drain time (W = L / λ).
  2. Target 60–70% utilization, use p99 when it matters, and add headroom for peaks and losing a node.
  3. When W grows, L grows: a slow dependency drains the thread pool; timeouts and bulkheads keep L bounded.

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.