wsgi server & python deployment solution
http://lloydsheng.com/2010/06/how-install-django-flup-nginx-in-unbuntu.html
Ubuntu搭建Django+Flup+Nginx环境
http://wiki.nginx.org/NginxNgxWSGIModule
Conclusion
flup is slightly faster than uWSGI at this point but this has to be put into perspective and you need to take into consideration the features that come with uWSGI, an exhaustive list can be found here . u WSGI is unable to complete the ab test with the following argument -n 1000 -c 100 with its default settings you will need to adjust the timeout socket and socket listen queue. However it is interesting to note that the memory footprint for uwsgi is lower by an order of magnitude and that my laptop re mains responsive during the ab test using uWSGI where it was almost taken down by same test with flup.
http://yml-blog.blogspot.com/2009/12/flup-vs-uwsgi-with-cherokee.html
Nginx+flup+spawn-fcgi部署web.py
http://bbs.linuxtone.org/thread-4684-1-1.html
Flup is just a proxy library between your Django project and
web-server. It is communicating with web-server through FastCGI
protocol. So you cannot just start FastCGI daemon and visit you
project with browser. To work properly you must set up your
web-server's FastCGI capabilities and direct it to flup's daemon
according to documentation [1].
[1]: http://docs.djangoproject.com/en/dev/howto/deployment/fastcgi/#howto-deployment-fastcgi
我认为把Flup看成一个实现了wsgi标准的服务容器更合理, 而传统的web server与flup之间通讯走的是fcgi协议
WSGI、flup、fastcgi、web.py的关系
2010年02月27日 14:20 Aaron.wang WEB
最近一直在学习python,了解了python的基本语法和编写规则!想用python写一个网络接口,但是不知道怎么下手!关键是还有很概念没有搞明白,刚看了一篇文章上有这方面的解释,现在转载到这里与大家分享!
Apache/lighttpd: 相当于一个request proxy,根据配置,把不同的请求转发给不同的server处理,例如静态的文件请求自己处理,这个时候它就像一个web server,对于fastcgi/python这样的请求转发给flup这样的Server/Gateway进行处理
flup: 一个用python写的web server,也就是cgi中所谓的Server/Gateway,它负责接受apache/lighttpd转发的请求,并调用你写的程序 (application),并将application处理的结果返回到apache/lighttpd
fastcgi: apache/lighttpd的一个模块,虽然flup可以作为一个独立的web server使用,但是对于浏览器请求处理一般都交给 apache/lighttpd处理,然后由apache/lighttpd转发给flup处理,这样就需要一个东西来把apache/lighttpd跟flup联系起来,这个东西就是fastcgi,它通过环境变量以及socket将客户端请求的信息传送给flup并接收flup返回的结果
web.py: 应该说有了上面的东西你就可以开始编写你的web程序了,但是问题是你就要自己处理浏览器的输入输出,还有cookie、session、模板等各种各样的问题了,web.py的作用就是帮你把这些工作都做好了,它就是所谓的web framework,另外一个出名的是django,不过感觉太复杂了,web.py差不多就够用了
WSGI : 除了flup Server/Gateway外还有很多其他人的写的Server/Gateway, 这个时候就会出问题了,如果你在flup上写了一个程序,现在由于各种原因你要使用xdly了,这个时候你的程序也许就要做很多痛苦的修改才能使用 xdly server了,WSGI就是一个规范,他规范了flup这个服务应该怎么写,应该使用什么方式什么参数调用你写的程序(application)等,当然同时也规范你的程序应该怎么写了,这样的话,只要flup跟xdly都遵守WSGI的话,你的程序在两个上面都可以使用了,flup就是一个WSGI server
转自豆瓣网
标签: fastcgi , flup , python , web.py , WSGI
本文连接:http://www.aaronw.cn/static/630.html
原创日志为王炜版权所有,转载时必须以链接形式注明作者和原始出处及本声明。
大名(一定要写哦!)
查看更多关于wsgi server & python deployment solution的详细内容...