PHP+Zend 或 Django
我正在尝试开发一个实时 Web 应用程序,该应用程序需要具有可扩展和并发的架构。到目前为止,我已经使用 nginx 作为反向代理服务器。并以龙卷风作为主服务器。由于tornado是基于python的,所以我计划使用Django。 但我想知道 PHP 是否是更好的选择,看看 Web 应用程序的要求?不过,我不想失去该架构的非阻塞功能。
系统要求:
- 能够同时为 1000 个用户提供服务。
- 该系统像 Google Docs 一样具有协作性。
- 某些客户端请求需要一些时间才能处理,这些请求可能是:
(a) 数据库请求 (b) 计算请求 - 安全性也是一个重要方面。
编辑1: 阅读更多相关内容后,我发现 Tornado 提供了网络服务器所期望的最低限度的基本功能。如果我们需要更广泛的功能,我们可以使用 Django,但在这种情况下,系统将失去其异步特性。我说得对吗?
I am trying to develop a real time web application which is required to have scalable and concurrent architecture. Upto now I have nginx as a reverse proxy server. And tornado as the main server. Since tornado is python based, I am planning to use Django.
But I wanted to know if PHP would be a better choice, seeing the web application's requirement? I dont want to loose the non-blocking functionality of the architecture though.
System Requirements :
- Able to serve concurrently to 1000's of users at a time.
- The system is collaborative like Google Docs.
- Some of the client requests require some time to get processed, these may be:
(a) Database Requests (b) Computation Requests - Security is an important aspect too.
Edit 1:
Reading more about it, I gather that Tornado provides minimum basic functionality that is expected of a webserver.If we need more extensive functionality we could use Django, but in that case the system would loose its asynchronous nature. Am I right?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
为了确定,您必须提供完整的要求和结果列表。如果您详细了解该应用程序将做什么,它也会有所帮助。显然,如果时间是一个因素,您应该考虑开发人员对每种语言的掌握程度,因为有时交付比毫秒的速度更重要。 Python 可能更快,但 Zend 功能齐全。
In order to be for sure, you'd have to show a full list of requirements and outcomes. If you have specifics on what the application will do it would help as well. Obviously, if time is a factor, you should consider how good your developers are with each language, because sometimes shipment is more important than milliseconds of speed. Python is most likely faster, but Zend is full on feature packed.