Lesson 2 · Unit 04
Latency and the tail
Percentiles, timeouts and what happens when requests queue
What you practise
- Percentiles and the tail, why the slowest call sets the page time, timeouts, throughput against latency
Try a question from this lesson
Pick one
Ten requests took 20, 22, 21, 23, 20, 25, 22, 21, 24 and 900 ms. The mean is 109.8 ms. How many of the ten were slower than the mean?
Correct answer
One
Why
Nine requests took about 22 ms and one took 900. The mean, 109.8 ms, describes neither group: no request was anywhere near it. One number cannot summarise a lopsided set of times.
The idea
Concept cards are short on purpose. In the app they appear between questions, after you have met the idea.
Concept
Percentiles
Sort the response times from fastest to slowest.
p50, the median, is the one in the middle: half the requests were faster. It is the typical request.
p99 is the one that 99 in 100 beat. One request in a hundred is slower than this.
The slow end is called the tail. A service is described by at least two numbers, the typical case and the tail, because users meet both.
11 more exercises in the app
- 3× type the answer
- 5× multiple choice
- 1× match the pairs
- 1× fill the blanks
- 1× true or false
Bitpath is an iOS app in development. Join the waitlist and you get one email when it is ready to try.