Try
↑ ↓ move↵ openesc close

Interview prep / Queues as buffers

Junior · Queues as buffers · System design interview question

What is the difference between a burst and sustained overload, and which one can a queue absorb?

Sketch your own answer first, then compare it with the one below.

A strong answer

A burst is a short stretch where messages arrive faster than the consumers can handle them, but the long-run average is below capacity. The queue grows during the burst and drains afterwards.

Sustained overload means the average arrival rate is above what the consumers can do. There is no quiet time to catch up, so the queue fills and stays full whatever its size.

A queue absorbs bursts. Sustained overload needs more consumers, less work, or load shedding. A bigger buffer only delays the moment the queue fills.

Sources

Learn it by running it

The queues as buffers lesson explains the mechanism behind this question, and its lab lets you change the parameters and watch the effect.

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