Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Implement Comet / Server push in Google App Engine in Python

How can I implement Comet / Server push in Google App Engine in Python?

like image 368
Lev Avatar asked Sep 11 '25 07:09

Lev


2 Answers

We just announced the Channel API to do comet push with App Engine apps: http://googleappengine.blogspot.com/2010/05/app-engine-at-google-io-2010.html

If you're at Google IO, I'll be talking about this at 1pm tomorrow (on the APIs track): http://code.google.com/events/io/2010/sessions/building-real-time-apps-app-engine-feed-api.html

Here's the YouTube video of the session: http://www.youtube.com/watch?v=oMXe-xK0BWA

Hopefully last update! This is now released: code.google.com/appengine/docs/python/channel

like image 61
Moishe Lettvin Avatar answered Sep 12 '25 21:09

Moishe Lettvin


At this time, I would rule out doing Comet in App Engine (any language). Comet is based on long-lived HTTP connections, and App Engine will time out any single connection in about 30 seconds or so at most; it's hard to conceive of a worse match!

like image 40
Alex Martelli Avatar answered Sep 12 '25 21:09

Alex Martelli