The difference between http1.0, http1.1 and http2.0

Source: Internet
Author: User

The difference between http1.1 and http1.0

    • http1.1 default persistent connection, that is, it supports long connections by default, and http1.0 needs to use the keep-alive parameter to tell the server to establish a long connection. HTTP is based on the TCP/IP protocol, which requires three handshakes per build, which can affect performance if each communication requires a new connection. So you can send multiple requests with a long connection.
    • Pipelining, the client can send multiple HTTP requests at the same time without waiting for a response.
    • Also supports the transfer of part of the content, when the client already has a portion of resources, only need to follow the server side to request another part of the resources. This is the basis for supporting file breakpoint continuation.
    • Also 1.1 has the host domain this parameter and 1.0 does not. It is common for Web servers such as Tomat to set up virtual sites, which means that multiple virtual sites on a Web server can share the same IP and port.

The main differences between http2.0 and http1.1

    • Multiplexing: Http2.0 uses multiplexing technology to enable a single connection to process multiple requests concurrently, and the number of concurrent requests is several orders of magnitude larger than 1.1.
    • Data compression: HTTP1.1 does not support header data compression, using the Hpack algorithm to compress the header data, so that the data volume is small, transmission on the network will be faster.
    • Server push: When we request data for a Web server that supports http2.0, the server pushes the other resources needed by the client along with the client, avoiding the need to create a connection send request again, which is a good way to load static resources. (server-side push of these resources actually exist somewhere in the client, the client directly from the local load these resources can be, do not go network, speed is naturally much faster)

The difference between http1.0, http1.1 and http2.0

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.