Skip to content
StackDecode
System Design
2. Networking FundamentalsAnimated

HTTP/2

Multiplexed HTTP over one connection.

The idea

HTTP/2 sends many requests in parallel as interleaved binary streams, compresses headers, and removes request-level blocking.

Watch it work

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

BrowserServerstream 1: GET /a.js
  • current message
  • earlier
  • failure or attack

HTTP/2 sends many requests at once over a single connection.

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

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

Step by step

  1. 1One connection is opened
  2. 2Several requests are sent as streams
  3. 3Responses interleave
  4. 4Headers are compressed

Where it is used

Fast page loads.

Watch out for

TCP-level head-of-line blocking still exists, so one lost packet slows all streams.

Related