大笨狗喜欢
· · · · · ·
(
全部
)
- 2011年10月9日 11:43 太平天国:传统民变的特殊标本,中西碰撞的旁生枝节
- 2009年12月14日 9:32 扯淡财经媒体
- 2009年8月13日 18:27 自由主义与社会公正
- 2009年8月11日 9:35 是不是有谁在玩儿我
大笨狗的日记 · · · · · · · · · · ( 全部 )
郑卫铭??呵呵 写这样的文章,回他一个脑残,已经是对他最好的恭维了。 事实上,除了美国以外,所有开始实行民主便使用总统制的国家,它们的首次民主尝试都以失败告终。 ++++++++++++++++++++++++++++ 何为成功?何为失败?保持政府的沿续是成功,不能保持的是失败?不能保持的原因很多,有被篡权的,有被起义推翻的,有被......
大笨狗的推荐 · · · · · · ( 全部 )
大笨狗的评论 · · · · · · · · · · ( 全部 )
- 如果你是Python小白,还是算了吧,
-
- 大笨狗(神:卡那个炸飞,带320亿美元来) 评论: The Definitive Guide to Django
最近喜欢:
春泥
所属部落: 零伍
The above results show that as a Python web developer we have lots of different methods to deploy our applications. Some of these seem to perform better than others but by focussing only on server performance I will not justify most of the tested servers as they differ greatly in functionality. Also, if you are going to take some stock web framework and won’t do any optimizations or caching, the performance of your webserver is not going to matter as this will not be the bottleneck. If there is one thing which made this benchmark clear is that most Python Web servers offer great performance and if you feel things are slow the first thing to look at is really your own application.
When you are just interested in quickly hosting your threaded application you really can’t go wrong with Apache ModWSGI. Even though Apache ModWSGI might put a little more strain on your memory requirements there is a lot to go for in terms of functionality. For example, protecting part of your website by using a LDAP server is as easy as enabling a module. Standalone CherryPy also shows great performance and functionality and is really a viable (fully Python) alternative which can lower memory requirements.
When you are a little more adventurous you can look at uWSGI and FAPWS3, they are relatively new compared to CherryPy and ModWSGI but they show a significant performance increase and do have lower memory requirements.
Concerning Tornado and performance, I do not think Tornado is an alternative for CherryPy or even ModWSGI. Not only does it hardly show any increases in performance but it also requires you to rethink your code. But Tornado can be a great option if you do not have any code using blocking connections or are just wanting to look at something new.
And then there is Gevent, it really showed amazing performance at a low memory footprint, it might need some adjustments to your legacy code but then again the monkey patching of the socket module could help and I really love the cleanness of Greenlets. There has already been some reports of deploying Gevent successfully even with SQLAlchemy.
And if you want to dive into high performance websockets with lots of concurrent connections you really have to go with an asynchronous framework. Gevent seems like the perfect companion for that, at least that is what we are going to use.
When you are just interested in quickly hosting your threaded application you really can’t go wrong with Apache ModWSGI. Even though Apache ModWSGI might put a little more strain on your memory requirements there is a lot to go for in terms of functionality. For example, protecting part of your website by using a LDAP server is as easy as enabling a module. Standalone CherryPy also shows great performance and functionality and is really a viable (fully Python) alternative which can lower memory requirements.
When you are a little more adventurous you can look at uWSGI and FAPWS3, they are relatively new compared to CherryPy and ModWSGI but they show a significant performance increase and do have lower memory requirements.
Concerning Tornado and performance, I do not think Tornado is an alternative for CherryPy or even ModWSGI. Not only does it hardly show any increases in performance but it also requires you to rethink your code. But Tornado can be a great option if you do not have any code using blocking connections or are just wanting to look at something new.
And then there is Gevent, it really showed amazing performance at a low memory footprint, it might need some adjustments to your legacy code but then again the monkey patching of the socket module could help and I really love the cleanness of Greenlets. There has already been some reports of deploying Gevent successfully even with SQLAlchemy.
And if you want to dive into high performance websockets with lots of concurrent connections you really have to go with an asynchronous framework. Gevent seems like the perfect companion for that, at least that is what we are going to use.
大笨狗的线上活动 · · · · · · ( 全部 )
-
[已结束]
我的豆瓣小组第一帖
时间:5月30日 周一 - 8月29日 周一
677人参加
-
[已结束]
“我们”-成为行动中的一员
时间:5月30日 周一 - 8月28日 周日
29096人参加
大笨狗参加的小组(236) · · · · · · ( 全部 )

- 就怕流氓有文化 (19208)

- Python编程 (19001)

- 今晚我们读历史 (26809)

- “我的朋友”胡适之 (5692)

- 八○年代 (63437)

- C语言 (7475)

- 台灣 ♡ Touch Your He... (32182)

- 中医 (121032)
> 大笨狗添加的条目
本页永久链接: http://www.douban.com/people/agend/
订阅大笨狗的收藏:
feed: rss 2.0
















