由于Web服務(wù)器主要支持的協(xié)議就是HTTP包颁,一般 Web Server == HTTP Server压真。
Web服務(wù)器專門處理HTTP請求(request)滴肿,但是應(yīng)用程序服務(wù)器是通過很多協(xié)議來為應(yīng)用程序提供(serves)商業(yè)邏輯 (business logic)。
Application Server
- Tomcat
An application server is a software framework that provides both facilities to create web applications and a server environment to run them.[1]
Web Server
- Nginx泼差、uWSGI堆缘、Apache、IIS套啤、Tomcat
A web server is a computer system that processes requests via HTTP, the basic network protocol used to distribute information on the World Wide Web.
WSGI Web Server
- gunicorn潜沦、uWSGI
Q&A
uWSGI、gunicorn可以當(dāng)做web服務(wù)器涝影,為什么還要用Nginx?
Nginx更安全Nginx能更好地處理靜態(tài)資源(通過一些http request header)Nginx也可以緩存一些動態(tài)內(nèi)容Nginx可以更好地配合CDNNginx可以進行多臺機器的負載均衡不需要在wsgi server那邊處理keep alive讓Nginx來處理slow client還有一個更隱蔽的區(qū)別是燃逻,像uWSGI支持的是wsgi協(xié)議,Nginx支持的是http協(xié)議伯襟,它們之間是有區(qū)別的姆怪。
作者:李劍揚
鏈接:https://www.zhihu.com/question/30560394/answer/48560028
來源:知乎
著作權(quán)歸作者所有。商業(yè)轉(zhuǎn)載請聯(lián)系作者獲得授權(quán)俺附,非商業(yè)轉(zhuǎn)載請注明出處溪掀。