head-of-line blocking
A delay where one slow or lost item at the front of a queue holds up everything behind it.
In more detail
HTTP/2 removes it between requests on one connection, but a lost TCP packet still stalls every stream until it is resent; HTTP/3 over QUIC avoids that too. In HTTP/1.1 each connection can serve only one request at a time, so one slow response delays the requests queued behind it.
Related terms
- multiplexing — Carrying many independent conversations over one connection at the same time by interleaving their pieces.
- HTTP/2 — A version of HTTP that sends the same methods, statuses and headers in a binary format and runs many requests at once over one connection.
- HTTP/1.1 — The text-based version of HTTP in which one connection carries one request and response at a time.
Taught in
- Native HTTP/2 Protocols: Multiplexed Streams & Push — Node.js Internals & Backend Services