What is HTTP/2?

HTTP/2 is a major upgrade to the HTTP standard, aimed at improving the speed and security of client-server interactions across the Internet. HTTP/2 adds several new features while maintaining backward compatibility, so browsers and servers without HTTP/2 support continue to work fine, while those that have it can take advantage of the performance enhancements.

Speed Improvements

The main focus of the HTTP/2 improvements is speed. A major limitation of HTTP/1 is that only one resource request is allowed at a time on a given connection. To minimize load times for web pages composed of dozens of images, scripts, and stylesheets (as most are), browsers generally open multiple HTTP/1 connections to a site at once so they can request resources in parallel, with significant overhead required for each connection. HTTP/2 uses multiplexed connections to transmit multiple resources over a single connection, significantly reducing the number of connections between clients and web servers.

HTTP/2 also makes extensive use of compression, which improves performance by saving bandwidth. In HTTP/2, headers are sent as compressed binary rather than as human‑readable plaintext. The considerable bandwidth savings offset the minor increase in CPU load (to compress and uncompress the headers) and the inconvenience to human users who can’t read the headers (for debugging purposes, for instance).

HTTP/2 also introduces resource prioritization to improve the user experience of page loading. Web browsers and other clients can now indicate the order in which they want to receive resources. Browsers with good HTTP/2 support can render pages significantly faster by prioritizing the resources the user needs to see first. Early testing of HTTP/2 performance has shown some pages load almost twice as fast.

Security Improvements

While HTTP/2 did not explicitly change the security requirements for HTTP, almost all browsers that use HTTP/2 require SSL/TLS to be enabled at the website, which makes it mandatory for all intents and purposes. Because HTTP/2 uses a single, multiplexed connection per client, the cost of securing websites has dropped considerably. Instead of having to do an SSL/TLS handshake (where clients and servers verify identities and exchange encryption keys) for each of the many connections opened by a browser, just one is performed to cover the entire duration of a client session.

How Can NGINX Plus Help?

NGINX Plus and NGINX are the best‑in‑class web server and application delivery solutions used by high‑traffic websites such as Dropbox, Netflix, and Zynga. More than 367 million websites worldwide, including the majority of the 100,000 busiest websites, rely on NGINX Plus and NGINX to deliver their content quickly, reliably, and securely.

As an early implementer of the HTTP/2 standard, NGINX provides a wide array of resources from experienced developers about how to maximize HTTP/2 performance, from webinars to conference talks to ebooks.

Speed improvements are just one part of providing a great user experience. NGINX Plus offers comprehensive monitoring so you can track how HTTP/2 support affects your users.

Flawless Application Delivery

The world’s most innovative companies and largest enterprises rely on NGINX.