Curriculum · Module 03, Queues and Streams
Queues as buffers
A queue absorbs bursts, but only until it fills. What a full queue does, what waiting costs, and how Little's law ties depth to delay.
What each topic covers
- Traffic arrives in bursts and consumers work at a steady pace. A queue turns the gap between them into waiting instead of failure.
- What a bounded queue does when it fills, who pays for the overload, and the one law that ties queue length to waiting time.
- Feed bursty traffic to a bounded queue, then shrink the buffer to 10 and push the load past capacity.
- Waiting rises steeply near full load, sustained overload fills any buffer, and a buffer ten times larger gives ten times the wait.
- Depth hides how stale the work is. Queue age, message deadlines and a drain-time calculation tell you whether a backlog still matters.
- Why a single queue lets a slow or low-value message delay urgent ones, and how separate queues and priorities trade fairness for speed.
- Three quick checks on queue capacity, Little's law and full-queue policy, plus the sources behind the lesson.
Topics
Practise this lesson
13 interview questions on queues as buffers, with worked answers and sources.
Your progress is saved in this browser. Sign in to keep it on every device. Privacy · Terms