开发高性能、可扩展的 Comet 应用程序

发布于 2024-09-05 08:50:29 字数 389 浏览 6 评论 0原文

嗯,标题已经说明了大部分内容。我正在寻求开发一个聊天应用程序,希望它能变得更多,目前我正在考虑我应该在什么基础上构建它的选择。

我研究了 Tornado,将 Redis 作为我的主要选择 - Tornado 作为 Comet 服务器,非常适合长轮询以检索 Redis 上的消息,我打算将其用作持久数据存储作为一个具有漂亮的 subpub 功能的消息队列。

不过,我也听说过有关 Django、RabbitMQ、MongoDB 和 Orbited 的好消息。 JavaScript 对我来说不是一个大问题,因此 Orbited 的 JavaScript 支持并不是什么太大的好处。

真的,我可能很乐意在我为自己选择的路线上发展,但如果我的计划中有任何明显的缺陷,我希望有人在我发现我浪费了几个月之前指出它们关于这一点。

Well, the title says most of it. I'm looking to develop a chat application that will hopefully become something more, and currently I'm considering my options for what I should build it on top of.

I've taken a look at Tornado with Redis as my primary option - Tornado, being a Comet server, is perfect for long polling to retrieve the messages on Redis, which I have the intention of using as both a persistent data store, as well as a message queue with its nifty subpub features.

However, I've also heard good things about Django, RabbitMQ, MongoDB and Orbited. JavaScript isn't a big problem for me, so Orbited's JavaScript support isn't too much of a boon.

Really, I'd probably be happy to develop on the route I've chosen for myself, but if there are any gaping deficiencies in my plan, I'd like some kind person to point them out before I find I've wasted months on this.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

此刻的回忆 2024-09-12 08:50:29

由于 Javascript 对您来说不是问题并且您需要高性能,因此您应该真正考虑 Node.js。对于这种东西来说,速度确实很快。

这是一个相当新的项目,但它已经有一堆。它还已经有一个包管理器NPM,如 PIP (python) 或 Gem (Ruby)。

Since Javascript is not a problem for you and you need high-performance you should really consider Node.js. It's really fast for this kind of stuff.

It's fairly new project, but it already has a bunch of libraries. It also has already a package manager NPM like PIP (python) or Gem (Ruby).

怎樣才叫好 2024-09-12 08:50:29

不要为此使用 Django。在某种程度上应该是可能的,但它绝对不适合它。龙卷风听起来很合适,所以如果有效的话就去吧。

Don't use Django for this. It should be possible at some level, but it is definitely not well suited for it. Tornado sounds like a great fit, so if that works go for it.

纸短情长 2024-09-12 08:50:29

你考虑过Scala吗?

Have you ever considered Scala?

一影成城 2024-09-12 08:50:29

我同意回答这个问题的其他人的观点。如果您需要高性能的网络服务器,我建议您看看 Deft。查看基准和示例,看看它是否适合您的需求。

免责声明:我是一名 Deft 提交者

I agree with the rest of the people answering this question. If you need a high performance web server I would recommend you to take a look at Deft. Take a look at the benchmarks and the examples and see if it fits your needs.

Disclaimer: im a Deft committer

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文