Little's Law
On This Lesson 4 topics
This lesson is planned. The outline below lists the topics it will cover. The full lesson has not been published yet.
In this lesson
relate concurrency, throughput, and latency.
Planned topics
- L = lambda x W: items in the system equals arrival rate times time in the system.
- Applies to threads, connections, consumers, queue contents.
- Example: 500 requests/s at 0.2 s latency needs about 100 concurrent in flight.
- Use it to size pools and to predict what happens when latency rises.
Draft outline details
Demonstration
pool sizing: 300 DB calls/s at 15 ms each gives 4.5 busy connections on average; a pool of 10 is fine until latency grows ten times.
Check your understanding
200 requests/s at 0.5 s each: how many in flight?
Show answer
About 100.
Practice
Apply this lesson with the module's lab, exercises and quiz.
Marking a lesson complete is optional and you can undo it any time. Your progress stays in this browser.