5

I've built my application in python (using greenthreads from eventlent) and I was supposed to use Orbited as comet server to pass requests from user-end javascript code to my application.

Sadly, I found that Orbited is dead, site is down for a few weeks and it lack python 2.7 support.

Could you recommend some good replacements?

Andrew
  • 8,330
  • 11
  • 45
  • 78

4 Answers4

1

You could build a comet server using gevent, meinheld, mongrel2, tornado, twisted, or uwsgi, all of which have long-polling examples. This list isn't exhaustive. You could also consider using WebSockets instead, several have WebSocket examples as well.

Zach Kelling
  • 52,505
  • 13
  • 109
  • 108
  • but the reason why I've created this topic is that I'm not willing to create it by hand and looking for some out-the-box solution (which Orbited was) – Andrew Jun 25 '11 at 02:29
  • @Andrew I think you are overestimating the complexity of writing a comet app. This answer has a [simple example of long-polling code](http://stackoverflow.com/questions/333664/simple-long-polling-example-code/333884#333884). Also check out [tornado's chat example](https://github.com/facebook/tornado/tree/master/demos/chat). – Zach Kelling Jun 25 '11 at 03:34
1

I haven't used it personally, but it seems that CometD has a Twisted-based implementation of its protocol.

Glyph
  • 31,152
  • 11
  • 87
  • 129
0

It seems that for now the best option is to use Socket.io, which offer simple and feature-rich programming interface both on server and client side. The python options are:

Andrew
  • 8,330
  • 11
  • 45
  • 78
-1

http://meteorserver.org/

Probably that won't register as an answer as you are looking for a server written in Python. Still, I would recommend this efficient server written in Perl. After all, IMHO, as an out-of-the-box/off-the-shelf solution it's as good as any other Python-based server can get.

Ruggiero Spearman
  • 6,735
  • 5
  • 26
  • 37