We all know that HTTP is based on Client/Server model.
This model is like two computers exchanging data between them.
We'll understand this in simple words by an example of restuarant guest and
writer. The guest(Client) ask (request)waiter(server) for food and the waiter
gets food from the chef(application logic)and brings the food to guest.
As time evolves, Internet also evloved by various version of HTTP's like 0.9,
1.0, 1.1, 2.0, 2.1.
Here we'll see the difference between the HTTP 1.1 and
HTTP 2.0:
·
HTTP 1.1 is request/response
protocol(client request and then server respnds). But HTTP 2.0 is binary
protocol (client can request and get data from without knowing to the server).
·
1.1 can allow clients only one
requests even with request pipelining but 2.0 can allow multiple request over
one TCP connection(multiplexed).
·
2.0 can be pushed means request
can be pre-sent (be ready before they've even been requested).Hence cache plays
a major role.There is no option for the word pushing in 1.1.
·
2.0 can be encrypted better with
SSL(Secure Sockets Layer) than 1.1.
Hence HTTP 2.0 is more efficient than 1.1 interms of low
latency speed, faster page loading,and offers better security than 1.1