HTTP2 - SPLessons
SPLessons 5 Steps, 3 Clicks
5 Steps - 3 Clicks

HTTP2 Optimizations

HTTP/2 Optimizations

shape Description

This chapter demonstrates about the HTTP/2 Optimization i.e optimize the web application to reduce the low time and lower latency, Following are the concepts are covered in this chapter.
  • Optimizations.

Optimizations

shape Description

In the coding part some part of code contains the HTTP part but the TCP is not familiar with the HTTP. TCP is the cut off for the HTTP interchanges. In order to do the optimization user need to use the optimization techniques on surface of the application level and entire application the figure below demonstrates the Optimization of application is as shown below. In the process of optimizations HTTP/2 removes certain things like
  • In the HTTP/2 many of the work around can be avoided by moving forward and which address the protocol layers.
  • A process of de-optimization.

Multiple TCP Connections

shape Description

In order to improve the Load time of the HTTP 1.1 user need to connect the multiple connection to the server. For instance user have page request to open the connection index.html and user tried to open the another request image.png and also user need to install the Style.css to improve the load time which all requests are in parallel connection and only one limitation with the technique is browser restrict the number of simultaneous open connections the figure is as shown below. In order over come the problem to use technique Domain sharding which essentially means spread resources over multiple servers align for the more connections. For instance user can load the HTML and style sheets are into single server and the images are into another server which allows the to balance the load the figure below demonstrates the Domain Sharding is as shown below. Multiple servers are not required because HTTP/2 allows 6 connections per each host and the principle is the single server service more then six connection by using domain connections. For instance images.domain.image.com severs for the images and styles.domain.com/styles.css serves style sheets, The figure below demonstrates the Domain sharding on single server.

Concatenation

shape Description

One more technique is the concatenation which is defined as the if the client send the multiple requests for the Java Script or CSS files then these files can concatenate into single files and have the server make a single request which overhead the multiple TCP Hand shakes, Multiple Requests and Responses. The figure below demonstrates the concatenation.

Inlining Resource

shape Description

Inlining resources consisting of embedding search and resources in side web page those are the Java Script or CSS files as in plain text which is included in a required place which are in a binary format i.e JPEG or PNG and encode with Base 64 encoding, embedded as a resource the figure below demonstrates the Inlining Resources is as shown.

Summary

shape Key Points

  • Optimization reduce the lower latancy.
  • In optimization techinique which optimize the entire application.
  • Single server can host the six multiple connections.