Why can nginx handle high concurrency problems?
曾经蜡笔没有小新
曾经蜡笔没有小新 2017-05-16 17:27:32
0
2
642

As the title states, I see that many people are talking about nginx now. Can anyone give a detailed analysis?

曾经蜡笔没有小新
曾经蜡笔没有小新

reply all(2)
漂亮男人

Nginx is different from Apache2 in that Nginx adopts a single-threaded, non-blocking, asynchronous IO working model.

Apache2 creates a new process or thread for each request, which wastes a lot of memory and CPU time, while Nginx uses the IO多路复用技术(epoll) provided by the operating system to process all requests in one thread. When an IO operation starts, Nginx will not wait for the operation to complete before processing the next request. After an IO operation is completed, Nginx will go back and process the subsequent work of the IO.

阿神

I have a question. Nginx uses short links. Is the advantage of epoll unable to be used? io asynchronous is definitely faster

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!