HTTP/1.1, HTTP/2 and HTTP/3

web fundamentals http

The characteristics, advantages, problems, real world and evolution.

The beginning HTTP/1.1

The HTTP/1.1 was introduced at 1997, Text-based protocol w/ headers + body in plain text and keep-alive. It uses one TCP connection per request/response.

There are some "problems" with this version:

Real world

Evolution to HTTP/2

The HTTP/2 was lauched at 2015, this means messages are encoded in a compact, machine-readable binary format rather than plain text.

Uses multiplexing, multiple request over single TCP connection.

The advantages of HTTP/2 on HTTP/1.1 are:

The common problem continues yet. If the packet lost all the other streams stall until retransmission.

Real world

The final so far. HTTP/3

Launched at 2022 RFC 9114, runs over UDP + TLS 1.3 and keeps benefits of HTTP/2 (multiplexing, compression) but avoids TCP issues.

HTTP/3 has some great advantages:

Possible "problems"

Real world