Skip to content

HTTP Evolution: from 1.1 to HTTP/3

HTTP Evolution: from 1.1 to HTTP/3

Hypertext Transfer Protocol (HTTP) is the foundation of data exchange on the Web. Understanding its evolution is key to optimizing web performance.


πŸ—οΈ HTTP/1.1 (The Standard)

Released in 1997, it introduced persistent connections (Keep-Alive) but suffered from a major flaw: Head-of-Line Blocking (HOLB).

  • The Problem: Only one request can be processed at a time over a single TCP connection. If the first request is slow, all subsequent requests are stuck.
  • Hack Workaround: Browsers opened 6-8 parallel connections per domain to speed up loading.

πŸš€ HTTP/2 (The Efficiency Jump)

Released in 2015, based on Google’s SPDY protocol. It focused on making communication more efficient over a single connection.

Key Features:

  1. Binary Framing: Messages are broken into small binary frames, which are easier to parse.
  2. Multiplexing: Multiple requests and responses can be sent simultaneously over a single TCP connection, solving HOLB at the HTTP level.
  3. Header Compression (HPACK): Reduces the size of redundant headers (like User-Agent).
  4. Server Push: The server can send resources (like CSS/JS) before the client even asks for them.

⚑ HTTP/3 (The Speed of Light)

Released in 2022, HTTP/3 replaces TCP with QUIC (Quick UDP Internet Connections).

Why the change?

While HTTP/2 solved HOLB at the application layer, it still suffered from it at the transport (TCP) layer. If one TCP packet is lost, the entire connection waits for a retransmission.

Key Features:

  1. UDP-Based: Uses QUIC to provide reliable delivery over UDP.
  2. Zero RTT Handshake: Combines connection setup and security (TLS 1.3) into one step, significantly reducing latency.
  3. Connection Migration: Your connection doesn’t drop when switching from Wi-Fi to 5G (IP addresses change, but QUIC connection IDs remain).

πŸ“Š Summary Comparison

FeatureHTTP/1.1HTTP/2HTTP/3
TransportTCPTCPUDP (QUIC)
FormatTextualBinaryBinary
MultiplexingNoYesYes
SecurityOptional (HTTPS)Required (de facto)Built-in (TLS 1.3)
HOLBApplication LevelTransport LevelSolved

πŸ’‘ Engineering Takeaway

For modern high-performance systems, ensure your servers and CDNs support HTTP/3. It dramatically improves performance on unstable networks (mobile) and reduces the β€œTime to First Byte” (TTFB).