使用 django 开发实时应用程序
我已经研究这个问题一两天了。我正在开发一个实时应用程序(聊天和视频聊天)。我正在使用 django/apache 组合,我知道它不适合这个(至少 apache 部分)。
在这方面,我在 stackoverflow 中找到了几个链接,例如 http://www.skitoy.com/p/ django-tornado-chat/305 以及一些比较,例如 http://nichol.as/asynchronous-servers-in-python
我的问题是。从事过 django 实时应用程序工作的人可以让我知道我应该使用什么框架吗?看来我可以在tornado上使用django,也可以在twisted框架上使用django。我是实时应用程序的新手,只需要指针,这样我就可以节省一些时间。
I have been researching this for a day or two. I am working on a real time application (a chat and a video chat). I am using django/apache combination which I understand is not suitable for this (at least the apache part).
In this regard I found several links from within stackoverflow such as http://www.skitoy.com/p/django-tornado-chat/305 and some comparisons such as the one at http://nichol.as/asynchronous-servers-in-python
My question is. Can someone who has worked on django real time application let me know what framework I should use. It seems that I can use either django on tornado or use django with twisted framework. I am new to real time application and just need pointers so I can save some time.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
做过类似事情的人还提供了一些提示:
http://eflorenzano.com/blog/post/technology-behind-convore/< /a>
更新时间:2023-05-04
此问答已有 12 年历史。上面链接的文章已经死了(Convore 本身 AFAICT 也是如此),但可以在以下位置找到:https://web.archive.org/web/20120819142511/http://eflorenzano.com/blog/2011/02/16/technology-behind-concore
我应该将其摘录发布在我原来的答案。
好吧,12 年后我问的第一个问题是“Convore 是什么?”
它似乎是一个“托管” IRC”平台,即 Slack 或 Discord 之类的平台:https://www.ycombinator.com/companies/convore
好吧,回到原来的博文:
这个基本架构至今仍然具有现实意义。
对于 Solr,我们可能会考虑 ElasticSearch。我们可能会使用 Python 3 异步功能,而不是 Eventlet(另请参阅 Gevent)。
此外,Django 本身现在通过“通道”支持实时功能:
https://channels。 readthedocs.io/en/stable/
Some more tips here from people who've done similar:
http://eflorenzano.com/blog/post/technology-behind-convore/
Update 2023-05-04
This Q and A are now 12 years old. The article linked above is dead (as is Convore itself AFAICT), but can be found at: https://web.archive.org/web/20120819142511/http://eflorenzano.com/blog/2011/02/16/technology-behind-convore
I should have posted excerpts from it in my original answer.
Well, 12 years later the first question I am asking is "What is/was Convore?"
It seems to have been a "Hosted IRC" platform, i.e. something like Slack or Discord: https://www.ycombinator.com/companies/convore
Ok, back to the original blog post:
This basic architecture is still relevant today.
For Solr we might look to ElasticSearch. Rather than Eventlet (see also Gevent) we'd probably use Python 3 async features.
Additionally, Django itself now has support for real-time features via "Channels":
https://channels.readthedocs.io/en/stable/