Compared with Nginx, Apache

Source: Internet
Author: User

Compared with Nginx, Apache
NginxApache Summary

The core difference between the two lies in that apache is a synchronous multi-process model. One connection corresponds to one process, while nginx is asynchronous. Multiple connections (tens of thousands of connections) can correspond to one process.

Generally, nginx is used for web services that require performance. If you do not need performance stability, consider apache. The implementation of various functional modules of the latter is better than that of the former. For example, the ssl module is better than the former and has many configuration items. The epoll (kqueue on freebsd) network I/O model is the root cause of high nginx processing performance, but not all of the situations are epoll winning, if only a few files are provided for the static service, the select model of apache may be higher than epoll. Of course, this is just a hypothesis based on the principles of the network I/O model. The real application still needs to be tested.

A more common solution is that front-end nginx is better compatible with anti-concurrency and backend apache clusters.



Reference: blog Garden (the original article is too messy and I cannot bear it)

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.