In this lesson · topic 7 of 7
Topic 7
Sizing, waiting and dropping: three checks
4 min read
Predict first
Predict first
Predict first
Take away
- A queue absorbs bursts. It does not absorb a rate that stays above what the consumers can do.
- Under sustained overload a bigger buffer buys delay, not throughput. The full-queue policy only decides who pays.
- Little’s law, L = λ W, ties depth, rate and wait together. Use it to turn the numbers you can see into the one you cannot.
- Waiting rises steeply as load nears capacity, so leave slack.
Sources
- John D. C. Little, A Proof for the Queuing Formula: L = λ W, Operations Research, 1961.
- Mor Harchol-Balter, Performance Modeling and Design of Computer Systems, Cambridge University Press, 2013.
- Martin Kleppmann, Designing Data-Intensive Applications, O’Reilly, 2017. The chapter on stream processing covers messaging systems and what to do when producers outrun consumers.