New Django + Orbited 0.6.x Tutorial
by Michael CarterSeptember 22nd, 2008I recently came across a new Orbited + Django tutorial. This tutorial is interesting because it shows how to run Orbited, Django, and a custom TCP server all in the same process. Obviously it makes sense to migrate to separate processes for a high-concurrency production deployment, but this method is perfect for developing applications and deploying small to medium instances.
Here’s our end result: Clients (browsers) connect to our Django-powered site and establish a Comet connection. Now we can push messages to the clients, right from our Django code, at any time and with as much frequency as we like. Since it’s real streaming Comet, each message goes over a persistent connection with no individual overhead.










September 26th, 2008 at 9:14 am
[...] Porter posted a tutorial on using Orbited with Django. Michael Carter has the scoop over on Comet [...]
October 15th, 2009 at 12:09 pm
Very late comment, but I just recently started looking at Comet / Orbited. I was considering using the Dark Porter method on my Django setup.
Could you clarify what you mean by “it makes sense to migrate to separate processes for a high-concurrency production deployment”? Do you mean, A) to increase the number of processes that the worker-MPM should create in Dark Porter’s setup or B) to use a more standard solution ala Orbited/STOMP/RabbitMQ that is built for high-traffic?
Thanks