Comparison of the advantages and disadvantages between Apache and Nginx

Source: Internet
Author: User

1, Nginx advantages compared to Apache:

Nginx lightweight, the same Web services, more than Apache occupy less memory resources;

Anti-concurrency, Nginx processing request is asynchronous non-blocking type, Apache processing request is blocking type, so in dealing with high concurrency is nginx can keep low resource consumption and high performance;

Highly modular design, relatively simple to write modules

High-performance modules produced quickly;

The advantages of Apache relative Nginx:

Rewrite, more powerful than Nginx's Rewirte

The module is too much, the basic thought can be found

Apache is relatively mature, with fewer defects and nginx;

When we consider the use of Web servers, if the concurrency requirements are high, to ensure performance, choose Nginx as a server, if the performance requirements are not high, to ensure stability at this time we can consider using Apache as a Web server

Epoll Network IO Model is the fundamental reason for high nginx processing performance (asynchronous non-blocking)

Because nginx processing static has advantages, Apache processing dynamic has advantages some large sites can be recorded using Nginx as front, Apache as a back-end processor.

  

  

Comparison of the advantages and disadvantages between Apache and Nginx

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.