title: Should I use orbited or gevent for integrating comet functionality into a django app
body: <p>I have been working with Django for some time now and have written several apps on a setup that uses Apache 2 mod_wsgi and a PostgreSQL database on ubuntu.</p>
  
  <p>I have aa app that uses xsendfile to serve files from Apache via a Django view, and also allow users to upload files via a form as well.  All this working great, but I now want to ramp up the features (and the complexity I am sure) by allowing users to chat and to see when new files have been uploaded without refreshing their browser.</p>
  
  <p>As I want this to be scale-able, I don't want to poll continually with AJAX as this is going to get very heavy with large numbers of users.</p>
  
  <p>I have read more posts, sites and blogs then I can count on integrating comet functionality into a Django app but there are so many different opinions out there on how to do this that I am now completely confused.</p>
  
  <p>Should I be using orbited, gevent, iosocket?
  Where does Tornado fit into this debate?</p>
  
  <p>I want the messages also be stored on the database, so do I need any special configuration 
  to prevent my application blocking when writing to the database?
  Will running a chat server with Django have any impact on my ability to serve files from Apache?</p>