Web Server、HTTP Server、Application server

由于Web服务器主要支持的协议就是HTTP,一般 Web Server == HTTP Server。
Web服务器专门处理HTTP请求(request),但是应用程序服务器是通过很多协议来为应用程序提供(serves)商业逻辑 (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可以当做web服务器,为什么还要用Nginx?

Nginx更安全Nginx能更好地处理静态资源(通过一些http request header)Nginx也可以缓存一些动态内容Nginx可以更好地配合CDNNginx可以进行多台机器的负载均衡不需要在wsgi server那边处理keep alive让Nginx来处理slow client还有一个更隐蔽的区别是,像uWSGI支持的是wsgi协议,Nginx支持的是http协议,它们之间是有区别的。

作者:李剑扬
链接:https://www.zhihu.com/question/30560394/answer/48560028
来源:知乎
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容