本文介绍了最新建议使用Python Comet?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将用Python实现Comet(尽管我听说过关于erlycomet的好消息,除了后端中的其他所有功能,我对支持基于Erlang的Web服务器并不感到兴奋)。我发现了几种可能性:

I'm going to be implementing Comet in Python (even though I hear good things about erlycomet I'm not thrilled about supporting an Erlang-based web server in addition to everything else in our back end). I've found several possibilities:





  • (使用扭曲)

  • Diesel
  • Tornado
  • Twisted-comet
  • Orbited (uses twisted)

(还有其他一些与Java服务器接口的选择,但我对此不感兴趣)

(there are also some other choices that interface with Java servers, but I'm not interested in those)

在这些实现中有人可以提出建议吗? ,考虑到性能,社区和易于实施?

Can somebody make a recommendation among these implementations, considering performance, community, and ease of implementation?

推荐答案

我个人使用的是Orbited,都是因为我已经在使用Twisted和因为它看起来很成熟。 Twisted在许多用户中拥有悠久的悠久历史,尤其是与Diesel和Tornado相比。

I am personally using Orbited, both because I am already using Twisted and because it seems mature. Twisted has a nice long history with many users, especially in comparison to Diesel and Tornado. Orbited is indeed built on Twisted.

有一个不错的博客文章,内容涉及。它将数据从python脚本发送到STOMP服务器(MorbidQ),然后发送到Orbited to Javascript-将该数据呈现为图形。

There is a good blog entry covering an end-to-end orbit solution here. It sends data from a python script to a STOMP server (MorbidQ) to Orbited to Javascript - rendering that data as a graph.

龙卷风在现场似乎很新,我找不到扭曲的彗星,我也没有听说过柴油。我特别喜欢Orbited可以转发任何类型的tcp / ip的方式,但是通过传递STOMP后端的消息可以很容易地将javascript客户端挂入。

Tornado seems pretty new to the scene, I couldn't find twisted-comet and I hadn't heard of diesel. I particularly like the way that Orbited can forward any sort of tcp/ip but makes it easy to hook javascript clients in with a message passing STOMP backend.

这篇关于最新建议使用Python Comet?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-22 14:59