Try
↑ ↓ move↵ openesc close

Curriculum · Module 09, Edge and Networking

Lesson 3 · 7 topics · 31 min · Intermediate · 0/7 done

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

  1. 1The cost before the first byte3 min
  2. 2Handshakes and connection pools4 min
  3. 3Pool size, protocol and packet loss8 min
  4. 4A pool that is too small4 min
  5. 5HTTP/1.1 against HTTP/24 min
  6. 6Head-of-line blocking and QUIC5 min
  7. 7Connections in review3 min

Practise this lesson

8 interview questions on connections and head-of-line blocking, with worked answers and sources.

Practise these

Your progress is saved in this browser. Sign in to keep it on every device. Privacy · Terms