Reverse proxy for web front end performance optimization

Source: Internet
Author: User

Before we discussed how to optimize Web front-end performance by reducing HTTP requests and CDNs, let's briefly introduce the reverse proxy to optimize web front-end performance.

First, let's look at what a reverse proxy is.

1, forward proxy and reverse proxy?

The forward proxy is the server between the client and the original server, in order to be able to obtain the requested content from the original server, the client needs to send the request to the proxy server, which is then forwarded to the original server by the proxy server, and the original server accepts the request to the proxy server and processes it. The processed data is then forwarded to the proxy server and then forwarded to the client by the proxy server, completing the entire request process.

A typical use of a forward proxy is to provide access to the Internet for local area network clients inside the firewall (such as the local area network of the school, the local LAN access to external resources, etc.). Of course we know FQ is also the use of the principle of forward proxy.

Above we say that the forward proxy is located on the client and the original server side of the server, next we come to a detailed look at the reverse proxy.

The reverse proxy method is to proxy the original server to accept a link request from the Internet, then forward the request to the original server on the internal network, and to the results from the original server to the client requesting data on the Internet. As the name implies, the reverse proxy is located between the Internet and the original server between the server, for the client as a server, the client sends the request is sent directly to the reverse proxy server, and then by the reverse proxy Server uniform provisioning.

  

Well... So is it true that LAN accesses systems that use reverse proxy technology?

2, performance optimization of the reverse proxy

As with the traditional proxy server, the reverse proxy server also has the function of protecting the website security, the request from the Internet must go through the reverse proxy server, which is equivalent to adding a barrier between the original server.

In addition to the security features, the reverse proxy server can also be configured to speed up the Web request through the configuration cache function, when the user first access static content, the static content is cached on the reverse proxy server, the next time a user requests a static resource, directly from the reverse proxy server to return static content, speed up Web request access, Reduce the pressure on the original server.

In addition, the reverse proxy server can also achieve load balancing functions, and load balancing to build an application cluster can improve the total processing capacity of the system, and thus improve the performance of the site in high concurrency situations.

Reverse proxy for web front end performance optimization

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.