DIFFERENCE BETWEEN HTTP/1.1 & HTTP/2 PROTOCOL

Hypertext Transfer Protocol (HTTP) is a set of standards allowing internet users to exchange website information.

HTTP/2 provides speedier content delivery and improved user experience than HTTP/1.1.

HTTP/2 uses binary protocols that consumes less bandwidth,are more efficiently parsed and are less error-prone, whereas HTTP/1.1 uses textual protocols.

HTTP/2 uses header compression(HPACK specification) to reduce the overhead caused by TCP’s slow-start mechanism.

HTTP/2 performs Request Multiplexing. i.e It can send multiple requests for data in parallel over a single TCP connection. For example:Downloading web files asynchronously from one server.

HTTP/2 reduces Round trip time which enhances to load the website faster without optimization.

HTTP/2 uses servers push mechanism. which means these servers push likely-to-be-used resources into a browser’s cache, even before they’re requested. Allowing browsers to display content without additional request cycles.Major Advantage: The server can prioritize pushed resources. Also, Client can save, decline, reuse & limit the pushed resources or streams multiplexed concurrently.

Web browsers only support HTTP/2 via encrypted connections, increasing user and application security. Thus, Improved Security.

COMPLICATIONS OF HTTP/2:

A site must first be HTTPS compatible to use HTTP/2 due to the new extension to Transport Layer Security (TLS).

HTTP/2 can create issues with the new standard. It may need the developers and designers to come up with new solutions to overcome HTTP/1.1 bugs.

Server upgrades requiring all servers to upgrade from HTTP/1.1 to HTTP/2 which is an error prone process & is complex.