March 24
Queue
What a queue is, why FIFO order changes system behavior, and when a queue is more than an implementation detail.
What it is
A queue is a FIFO structure:
first in, first out.
The earliest item is the earliest one to leave.
Where it shows up
It appears in two worlds at once:
- algorithms, like BFS
- systems, like jobs and buffers
That is why it is a simple term that keeps coming back.
Common mistake
The classic mistake is treating a queue as “just a place to store work.”
In practice, the order affects latency, fairness, and throughput.
Better question
Before using it, ask:
- does arrival order need to be preserved?
- can there be priority or reordering?
- is the queue absorbing bursts or hiding a bottleneck?
Share this page
Copy the link manually from the field below.