It uses most of the same technologies as HTTP 1.1, but is more efficient and allows servers to respond with more content than was originally requested, removing the need for user’s computers to continually request for more information until a website is fully loaded.
At the moment, HTTP/2 is supported by the leading browsers such as Firefox, Chrome. Apple has announced future release of HTTP/2.
HTTP/2 offers many improvements in comparison to HTTP 1.1:
HTTP/2 uses binary protocols in comparison to HTTP 1.1 which used textual rules making HTTP/2 more efficient and less error prone. With the use of compression, server push and multiplex HTTP/ 2 can waste less time sending and waiting for large amounts of information to the server creating traffic of information.
HTTP/2 is fully multiplexed
Only one request can be outstanding on a connection at a time. HTTP 1.1 tried to fix this with pipelining. Multiplexing addresses these problems by allowing multiple request and response messages to be in flight at the same time; it is even possible to mix parts of one message with another on the wire.
HTTP 1.1 practically only allows one outstanding request per TCP (Transmission Control Protocol) connection. The old browsers have used multiple TCP connections to issue parallel requests. If there are too many connections used, it is counter-productive (TCP congestion control is negated).
A large number of demands means a lot duplicated “on the wire”. Making too many pull requests, hurts performance. Server push allows the server to avoid this round trip of delay by “pushing” the responses it thinks the client will need into its cache. Allows multiplexing addresses the problem of multiple requests. Using so many connections unfairly monopolizes network resources, “stealing” them from other, better-behaved applications (e.g. VoIP).
HTTP/2 uses server pushes
SPDY augments HTTP with several speed-related features that can dramatically reduce page load time. SPDY/2 is the basis for HTTP/2.
SPDY has shown evident improvement from HTTP, at a minimum, the transfer speed with SPDY can improve by about 10 percent and, in some cases, can reach numbers closer to 40 percent. Such has been the success of SPDY, in 2012 the group of Google engineers behind the project decided to create a new protocol based on the technology.
The new protocol will also speed up mobile browsing
Mobile browsing is a modern and rising vehicle for searches. Therefore, the increase of speed for mobiles is necessary to satisfy consumers browsing experiences.
Better security than previous versions through an improved version of transport layer security (TLS 1.2).
Transport Layer Security (TLS) is a protocol that ensures privacy between communicating applications and their users on the Internet. When a server and client communicate, TLS ensures that no third party may eavesdrop or tamper with any message. TLS is the successor to the Secure Sockets Layer (SSL).