理解WSGI

个人理解,不对的地方,欢迎指正

1、WSGI

  web service gate intervice 

  WSGI itself is a protocol or convention that ensures that your web application can speak with the webserver and more importantly that web applications work nicely together.

   它本身是一个协议,确保webapp 和 webserver之间能够正常通信,更重要的是它使多个web应用在一起更好的工作。

   webserver 通常是 Apache、nginx 等,用来收发客户端的请求,其通常用c语言开发的。

       webapp、则可以用多种语言 java、php、python、ruby等进行开发。

   webserver 与webapp之间要通信,则必须有一个协议来完成语言转换工作,就是就有CGI,fastCGI,WSGI则是对利用pyhon对 CGI的一个封装。

  

  发现了一篇好文章,深入的讲解了常用的网关协议 CGI, WSGI

  详情参考连接:http://blog.csdn.net/i_bruce/article/details/44672493

       

  

posted @ 2016-03-10 12:52  一个_懒人  阅读(214)  评论(0编辑  收藏  举报