How is NGINX Unit different from Apache?

NGINX Unit采用了完全不同的现代架构,包括主进程、控制器、路由器和应用程序进程等,每个进程都有特定目的,这使得Unit极其安全且稳定。路由器进程类似于改进版的nginx,能够使用少量资源处理数百万的并发连接。控制器进程提供了易于使用的RESTful JSON API接口,支持动态配置更改而无需重启服务。应用程序进程可以动态加载不同版本的解释器,通过快速的进程间通信提高请求处理效率。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

https://github.com/nginx/unit/issues/33

How is NGINX Unit different from Apache?

NGINX Unit uses completely different, modern architecture. It contains main, controller, router, and application processes. Each process is isolated for specific purpose, which makes Unit extremely secure and robust.

  • The router process is like improved version of nginx, it contains a number of threads and each thread is like an nginx worker process. They are asynchronous and can handle millions of connections simultaneously with minimal resources.
  • The controller process provides RESTful JSON API interface, which is very easy to use. All configuration changes are applied dynamically and gracefully without reloading and connections loss.
  • The application processes can dynamically load any versions of any interpreters independently and simultaneously. They communicate with the router process using very fast IPC, that is based on shared memory segments and adds minimum overhead to request processing.

Thus, it is modern, fast, secure, lightweight and dynamically reconfigurable server. When Unit will be production ready and feature rich, it will significantly simplify web stack and improve scalability.

转载于:https://my.oschina.net/ngwsx/blog/1571519

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值