Nginx as the frontend webcache System

Source: Internet
Author: User
Author Ayou: http: sudone.com advantages of this structure: 1. You can use the nginx front-end to perform many complex configurations. These configurations were previously not feasible or difficult to do in squid, for example, anti-leech for directories. 2. The nginx front-end can directly forward some requests that do not need to be cached. 3. Because nginx is more efficient than squid, some

Author Ayou: http ://SuDone.com/

 



Advantages of this structure:

1. You can use the nginx front-end to perform many complex configurations.IdIt cannot be done or is difficult to do, such as anti-leech targeting directories.

2. The nginx front-end can directly forward some requests that do not need to be cached.

3. Because nginx is more efficient than squid, you can use nginx cache to reduce squid pressure in some cases.

4. url hash and other allocation policies can be implemented.

5. You can enable g at the frontend.ZipCompressionIn this way, the squid cache is purely non-compressed, which can avoid unnecessary penetration.

6. Because nginx has high stability, lvs does not need to be adjusted frequently. you can adjust it through nginx.

7. The number of squid files opened is more than 1024 by default, but there are no fewer requests to process.

8. You can enable the nginx log function to replace squid. In this way, the url can be precisely located during real-time click statistics, and inefficientGrepTo filter.

9. Because nginx has a higher load capacity than squid, you do not need to be balanced when using lvs for traffic distribution. The probability of single point of failure is relatively low.

CurrentlyArchitectureFurther detailed tests are required. sudone.com currently uses this architecture.

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.