选择和部署彗星服务器 [英] Choosing and deploying a comet server

查看:147
本文介绍了选择和部署彗星服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过HTTP将数据推送到浏览器,而不会杀死我的django / python应用程序。



我决定使用彗星服务器来代理我的应用程序之间的请求和客户(虽然我还没有真正弄清楚它)。



我已经研究了以下引擎:
轨道
cometd
ejabberd
jetty



有没有人有任何经验与这些服务器合作并部署?任何关于这些话题的洞察力和联系将是巨大的。谢谢。

解决方案

我建议您查看Twisted,他们的twisted.web服务器,以及在其上完成的彗星工作在Divmod。它们可以处理比传统线程或基于进程的服务器更多的并发连接,这正是您需要这样的东西。而且,是的,我使用Twisted为COMET的东西构建了系统,而在其旁边使用其他更前沿的Web应用程序。每个部分都做得最好,它的效果很好。


I want to push data to the browser over HTTP without killing my django/python application.

I decided to use a comet server, to proxy requests between my application and the client (though I still haven't really figured it out properly).

I've looked into the following engines: orbited cometd ejabberd jetty

Has anyone had any experience working with these servers and deploying them? Any insight and links regarding the topics would be great. Thank you.

解决方案

I would recommend looking into Twisted, their twisted.web server, and the comet work done on top of it at Divmod. They can handle far more concurrent connections than traditional thread or process based servers, which is exactly what you need for something like this. And, yes, I've architected systems using Twisted for COMET stuff, while using other things for the more front-facing web applications beside it. It works out well with each part doing what it does best.

这篇关于选择和部署彗星服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆