In the previous post I tried to draw a comparison between HTTP/1.1 and HTTP/2, and based on that we set the premise that we should move to HTTP/2 for good.
With that settled, let's see how we can make express.js server run on HTTP/2.
Just by simply looking at the title, an obvious question might come up in your mind, life is so beautiful with REST over HTTP/1.1, why are we even talking about changing it? In order to address this question, let's take a step back to see how things have changed over the years in the software world.
The original design goal of HTTP was to be a protocol which can facilitate a document retrieval system for the web. The widely deployed and most prevalent HTTP version (i.e. HTTP/1.1), came to life in 1997, that was 20 years back. So much has changed on the web since then and it's very far from what it used to be at that time. Average page size has quadrupled in these year and we have started building all sorts of crazy things using web, REST and HTTP.