From sgcWebSockets 4.4.3, HTTP/2 is initially supported and new features will be added on next versions. In a prior entry blog we compared the performance between HTTP 1.1 and HTTP/2 protocols, to do this, I use sgcWebSockets HTTP/2 client which downloaded 100 images from imagekit.io servers.
sgcWebSockets HTTP/2 client has been modified to allow the url where you will connect to download jpeg images. Now there are 2 urls:
The second is which I select to do the tests, this is a local HTTP/2 server built with sgcWebSockets library.
A new HTTP/2 server sample has been built with sgcWebSockets library, this will be the server I will use to compare performance between both protocols. In order to test, just open the executable and will start to listening on port 5450 and localhost.
If I Start the test on client component, you will see the big difference between HTTP 1.1 and HTTP/2. The HTTP/2 protocol takes almost nothing downloading the 100 images, will HTTP 1.1 protocol takes much more because every time must open a new connection download, wait and close and start again, while HTTP/2 uses the same connection to handle all requests and those are processed asynchronously.
When you subscribe to the blog, we will send you an e-mail when there are new updates on the site so you wouldn't miss them.