Pros
- It is binary, not textual
- It enables more efficient use of network resources and a reduced perception of latency by introducing header field compression.
- It is fully multiplexed, what this means is that multiple parallel requests can be made to improve performance within a single TCP connection leading to better utilisation of available network capacity.
- It decreases the load time of applications drastically.
There is no alternative available today that’s superior to HTTP/2.
- Encryption is not required.
- There is still an issue with Cookie security
- It is not super modern and not very fast
HTTP/2 brings a number of new features to the table, including:
- A binary protocol, making it more compact to ship over the wire
- Multiplexed and parallel connections allow for faster, more efficient data transfer
- Server push functionality, which enables web developers to build sites that proactively send assets that are needed by a web page and can minimize network overhead.
- Header compression decreases the bandwidth overhead imposed by HTTP/2.
- Prioritization and stream dependency helps developers and website owners optimize their site’s network usage.