Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python Comet Server

I am building a web application that has a real-time feed (similar to Facebook's newsfeed) that I want to update via a long-polling mechanism. I understand that with Python, my choices are pretty much to either use Stackless (building from their Comet wsgi example) or Cometd + Twisted. Unfortunately there is very little documentation regarding these options and I cannot find good information online about production scale users of comet on Python.

Has anyone successfully implemented comet on Python in a production system? How did you go about doing it and where can I find resources to implement my own?

like image 791
HenryL Avatar asked Jun 07 '09 01:06

HenryL


1 Answers

Orbited seems as a nice solution. Haven't tried it though.


Update: things have changed in the last 2.5 years.

We now have websockets in all major browsers, except IE (naturally) and a couple of very good abstractions over it, that provide many methods of emulating real-time communication.

  • socket.io along with tornadio (socket.io 0.6) and tornadio2 (socket.io 0.7+)
  • sock.js along with SockJS-tornado
like image 172
Emil Ivanov Avatar answered Sep 24 '22 11:09

Emil Ivanov