SteelReed

Search

Search posts, questions…

Web & REST APIQuestion 5 / 25

Middle

What does HTTP/2 improve over HTTP/1.1, and what more does HTTP/3 solve?

Short answer

HTTP/1.1 runs one request at a time per connection, so it suffers head-of-line blocking. HTTP/2 multiplexes many streams over one TCP connection; HTTP/3 runs over QUIC (UDP) to remove the remaining HOL at the TCP layer.

multiplexing, HPACKone TCP packet lostreplace TCP with QUICHTTP/1.11 request at a timeHTTP/2many streams, 1 TCPall streams waitHTTP/3 over UDPHOL only per stream

3 points to say:

  1. HTTP/1.1: text, one request at a time per connection; browsers open 6 connections per host and still hit HOL at the HTTP layer.
  2. HTTP/2: binary frames, multiplexing, HPACK header compression; but a lost TCP packet stalls every stream.
  3. HTTP/3: QUIC over UDP, faster handshake, keeps the connection when the network changes; server push is gone, use 103 Early Hints.

Keep reading the deep dive

Create a free account to read the full explanation and follow-up questions, mark questions as studied and review them on a schedule.