Curriculum · Module 09, Edge and Networking
Connections and head-of-line blocking
Handshakes cost round trips, so connections are pooled. HTTP/2 shares one connection among streams, a lost packet on TCP stalls all of them, and QUIC keeps the streams apart.
What each topic covers
- A new connection needs round trips before it can carry a request, and a pool of connections has a size that matters.
- Pay the handshake once and reuse the connection. A pool bounds how many connections a client holds.
- Send requests over a pool and change the protocol, the pool size, the loss rate and whether connections are reused.
- With one request per connection, the pool must cover the requests in flight, or a queue builds without bound.
- HTTP/2 puts many streams on one connection, so the queue for a free connection disappears.
- TCP delivers bytes in order, so one lost packet holds back every stream on the connection. QUIC delivers each stream on its own.
- Three quick checks on handshakes, pool sizing and head-of-line blocking, with the standards behind the lesson.
Topics
Practise this lesson
8 interview questions on connections and head-of-line blocking, with worked answers and sources.
Your progress is saved in this browser. Sign in to keep it on every device. Privacy · Terms