8

专栏总结7:中间件Nginx、消息队列

 3 years ago
source link: https://guisu.blog.csdn.net/article/details/103008720
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
专栏总结7:中间件Nginx、消息队列_黄规速博客:学如逆水行舟,不进则退-CSDN博客

一、问题

一般情况下,nginx 是一个事件处理器,一个从内核获取连接事件并告诉系统如何处理的控制器。实际上,在操作系统做读写数据调度的时候,nginx是协同系统工作的,所以nginx能越快响应越好。

 

nginx处理的事件可以是 超时通知、socket可读写的通知 或 错误通知。nginx 接收到这些消息后,会逐一进行处理。但是所有处理过程都是在一个简单的线程循环中完成的


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK