Mod逖wsgi vs fapws3 Djang

2024-05-16 07:26:30 发布

您现在位置:Python中文网/ 问答频道 /正文

在处理Django时,使用FAPWS3MOD\WSGI有区别吗?在

FAPWS3在向Python脚本提供请求时似乎要快得多。我想知道我是否遗漏了什么。:)

有什么想法吗?在


Tags: django脚本modwsgi区别遗漏fapws3
2条回答

这是我目前在网上看到的最好的解释。 http://nichol.as/benchmark-of-python-web-servers

引用自尼科尔·阿斯在

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.

底层的web服务器不是瓶颈,它是您的应用程序和数据库访问。在实际的完整应用程序堆栈的上下文中,任何底层web服务器之间的差异都非常小或根本不存在。您不能基于helloworld类型测试来做出决定,因为它们非常无意义。因此,决策应该基于负载下托管解决方案的质量和稳定性,以及配置和支持的容易程度,包括您自己管理特定设置的能力。如果您不知道如何正确地配置和支持特定的web服务器,例如Apache,那么您为什么要使用它呢。在

相关问题 更多 >