2015/4/25~ deep understanding of the Web request process

Source: Internet
Author: User

1, from the C/s architecture to B/s architecture two points of benefit:

1, the client unified use of the browser, the browser's interactive features make it very easy for users to use it, and shielding the different service providers to provide users with the difference of service.

2, the service side based on a unified HTTP protocol, using a unified HTTP protocol, so that service providers simplify, standardize the development model, greatly reducing the development costs, the server and framework can be used directly, without their own development, to promote the emergence of more services.

2, with the traditional C/s architecture using long-link interaction data, HTTP uses a non-state short-link communication mode, each request to complete a data interaction, usually also corresponds to a business logic.

3, a request process:

1, the user enters a URL in the browser, requests DNS to resolve the domain name to the corresponding IP address

2, through the IP address to the Internet to find the corresponding server

3, the server may have more than one, the load Balancer device distributes the request to different servers

4, get the return data, the data may be stored in the distributed cache, the static file, or the database

5, the returned data if it is static resources, such as CSS files, JS files, pictures, etc., will also initiate additional HTTP requests. These files may be on the CDN server, and the CND server will process these requests.

(Fill in the map to wait)

Summary: No matter how the architecture changes, some immutable principles need to be adhered to. 1, so resources have to be represented by a URL, url is a Uniform Resource Locator, 2, must be based on HTTP and server interaction; 3. The data must be displayed in the browser.

4.









2015/4/25~ deep understanding of the Web request process

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.