Skip to content
This repository has been archived by the owner on Jun 16, 2024. It is now read-only.

Latest commit

 

History

History
executable file
·
13 lines (8 loc) · 743 Bytes

index.adoc

File metadata and controls

executable file
·
13 lines (8 loc) · 743 Bytes

HW6 – HTTP/2 multiplexing & push

In this task, my objective was to create two servers serving a simple webpage with hundreds of images.

First server, http1.js serves the images over HTTP/1.1, which results in images being loaded one after another with max count of 6 simultaneous requests.

http1 1

Example of HTTP/1.1 communication, each image load has to wait because of the limitation (6 requests).

The second server, http2.js uses advantage of HTTP/2 with the HTTP/2 push and multiplexing, so all the images can be loaded "at once" in single TCP connection.

http2

Example of HTTP/2 communication, images are pushed, so the data are transferred at once and there is no green waiting.