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.
3 points to say:
- Use it to size connection pools, instance counts, consumers, and backlog drain time (W = L / λ).
- Target 60–70% utilization, use p99 when it matters, and add headroom for peaks and losing a node.
- 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.