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.
这是我目前在网上看到的最好的解释。 http://nichol.as/benchmark-of-python-web-servers
引用自尼科尔·阿斯在
底层的web服务器不是瓶颈,它是您的应用程序和数据库访问。在实际的完整应用程序堆栈的上下文中,任何底层web服务器之间的差异都非常小或根本不存在。您不能基于helloworld类型测试来做出决定,因为它们非常无意义。因此,决策应该基于负载下托管解决方案的质量和稳定性,以及配置和支持的容易程度,包括您自己管理特定设置的能力。如果您不知道如何正确地配置和支持特定的web服务器,例如Apache,那么您为什么要使用它呢。在
相关问题 更多 >
编程相关推荐