Http/2

Nand MakadiaNand Makadia
1 min read

Key features of HTTP/2

  1. Binary Protocol

  2. Multiplexing

  3. Streams

  4. Header compression

  5. No head of line blocking

  6. Prioritization

  7. Server push

  8. Connection reuse

  9. Better performance

Working of HTTP/2

  • It uses multiplexing for data transmission

    • Multiplexing means mixing multiple things together to send them at the same time over one path, and then sorting them out at the end.
  • HTTP/2 sends requests and responses via byte-streams which is streams in binary format

  • It does not wait for the response to come like HTTP/1

  • It sends all the requests simultaneously vis streams and server starts responding as soon as it processes one of the request.

  • Uses HPACK to compress headers, reducing size and improving speed.

Visual representation of HTTP/2

1
Subscribe to my newsletter

Read articles from Nand Makadia directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Nand Makadia
Nand Makadia