We are happy to announce a big improvement regarding performance - now HTTP/2 is the default protocol for all applications hosted on WeDeploy. This is a big step ahead, carrying multiple benefits.
If you are not aware of HTTP/2, this is the latest version of HTTP and is now available in almost every browser. It came to solve some problems with its predecessor, HTTP 1.1. As you probably know, HTTP 1.1 had a big limitation - allowing only one outstanding request per TCP connection. Since that was unacceptable in today's Web applications, browsers didn't have any other choice except to use multiple TCP connections to process multiple requests simultaneously. However, this leads to TCP congestion and to unfair monopolization of network resources.
In contrary to HTTP 1.1, HTTP/2 is a binary protocol, fully multiplexed, uses one connection for parallelism, uses header compression to reduce overhead and allows servers to "push" resources like CSS and images proactively into client caches. If you need more information please read here or watch this.
With fewer connections because of HTTP/2, the number of necessary network round-trips will be reduced. This will save on your application costs and allow you to handle more demanding traffic loads with fewer resources.
A real example
Let's see how wedeploy.com, our main site behaves after adding support for HTTP/2 on WeDeploy. To check that, we will use the excellent WebPagetest service. You may see the full results when HTTP/2 is disabled here and when it is enabled here.
Waterfall when Chrome loads wedeploy.com using HTTP 1.1 (see original results here):
Waterfall when HTTP/2 is enabled (see original results here):
See the difference? Notice how flat the waterfall is when HTTP/2 is enabled? Chrome still does an outstanding job loading wedeploy.com as smooth as possible when HTTP/2 is disabled, but even with all 6 connections, the results are worse in comparison to loading the site using HTTP/2. Now let's take a closer look at the connections.
Connections when Chrome loads wedeploy.com using HTTP 1.1 (see original results here):
Connections when using HTTP/2 (see original results here):
Here is where HTTP/2 stands out - there is only one connection to wedeploy.com. In comparison, there are 6 connections when HTTP/2 is disabled. Please also note that for each connection, time is spent on initialization and SSL negotiation. This is a waste of network resources.
What about the overall performance? HTTP/2 clearly brings benefits, as you can see below (lower is better).
Performance results when Chrome loads wedeploy.com using HTTP 1.1 (see original results here):
Performance results when using HTTP/2 (see original results here):
That's cool, but what about my site?
Glad you asked! There is no need to do anything, all services you deploy will come with HTTP/2 out of the box. You know the deal - forget about infrastructure, that's our job. Your job is to create outstanding applications.