Skip to content
StackDecode
System Design
2. Networking FundamentalsAnimated

HTTP/1.1

Text-based HTTP with persistent connections.

The idea

HTTP/1.1 reuses a connection for several requests but handles them one at a time, so a slow response blocks the ones behind it.

Watch it work

Press play, pause, or step through. Some animations have settings you can change.

BrowserServerGET /a.js
  • current message
  • earlier
  • failure or attack

HTTP/1.1 keeps the connection open but handles one request at a time.

step:
1/4
from:
Browser
to:
Server
1/4

Time runs downward. Solid arrows are requests, dashed arrows are replies.

Step by step

  1. 1Open one connection
  2. 2Send request 1
  3. 3Wait for its response
  4. 4Send request 2 on the same connection

Where it is used

Legacy and simple clients.

Watch out for

Head-of-line blocking leads browsers to open several connections.

Related