Head-of-Line Blocking
PronunciationHED-of-LYN BLOK-ing
Definition
Head-of-line blocking happens when the first item in a queue is delayed and everything behind it has to wait, even if it is ready, such as a lost TCP packet stalling every request on the connection.
Where you hear it
In HTTP/1.1, HTTP/2 and HTTP/3 comparisons, message queue ordering and network performance talks.
Examples
In HTTP/1.1 a slow response blocks the requests queued behind it.
HTTP/3 avoids head-of-line blocking between streams.
One slow query at the front of the queue delayed every request behind it.
Common mistake
Thinking multiplexing alone removes it. TCP still delivers bytes in order, so a loss blocks every stream.
Don't confuse with
A deadlock, where tasks wait on each other forever. Here the wait ends once the first item arrives.
Say it at work
- In a meeting or chat
That's head-of-line blocking at the TCP layer.
- In an email or ticket
Process messages per partition to limit it.