From the course: Building Java Microservices with gRPC

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

HTTP/1 problems

HTTP/1 problems

From the course: Building Java Microservices with gRPC

Start my 1-month free trial

HTTP/1 problems

- [Instructor] In order to understand the working mechanism of the HTTP/2 protocol. Let us first do a quick recap of HTTP/1. We all know that it is a text-based protocol. The messages that get transmitted between the client and server are in human readable format. A sample of the request and response as shown on the slide, the request contains method, version of the protocol, URL, headers and a separate body in case it is a post request. The response in turn will contain the state discord, message, version of protocol, headers, and then the body of data. HTTP/1 has no pipelining. What this means is every time you want to make a request from the client to the server you spawn a new TCP connection. If you want to make multiple requests then you end up spawning multiple TCP connections and this is highly inefficient. An incremental version of HTTP that is 1.1 was introduced, web pipelining came into existence.…

Contents