Try
↑ ↓ move↵ openesc close
In this lesson · topic 7 of 7
  1. 1. Why put a buffer in the middle
  2. 2. Capacity, full-queue policy and Little's law
  3. 3. Bursts against a 200-message buffer
  4. 4. Why a bigger buffer only adds delay
  5. 5. Watch the age of the oldest message
  6. 6. One slow message holds up the line
  7. 7. Sizing, waiting and dropping: three checks

Topic 7

Sizing, waiting and dropping: three checks

4 min read

Predict first

A queue is full and messages wait 20 seconds. Producers send 20 percent more than the consumers can handle, and the team doubles the queue capacity. What happens?

Predict first

Dashboards show a queue holding 30 messages on average, with 10 messages entering it each second. About how long does a message wait?

Predict first

A stream carries the current position of delivery vans. Only the latest position of each van is useful, and the consumer is sometimes slow. Which full-queue policy fits best?

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

Your progress is saved in this browser. Sign in to keep it on every device. Privacy · Terms