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.
- 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
- 1One connection is opened
- 2Several requests are sent as streams
- 3Responses interleave
- 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.