On 6/22/06, Bram Vandoren <[EMAIL PROTECTED]> wrote: > Is Turbogears suitable for > this kind of application or is it better to use Twisted?
Turbogears uses CherryPy which dispatches a thread for every connection rather than doing async io like Twisted. This makes it unsuitable for handling large numbers of long lived http connections. If I'm wrong on this, Robert will undoubtedly correct me. ;] First Class -- TG 1.1, currently in early stages of development -- will be WSGI based, which should in theory allow it to run on a twisted server. I'm not sure if that would be all that's necessary to get TG to be comet-capable, but it's a possibility for the future. I'd like to investigate the potential of mod_pubsub and possibly controlling that from TG but the site has been down for a couple days and I can't find info on it. That being said, you don't always need to do comet. Polling can get you pretty far (e.g. 37signals' Basecamp, a chat app, does polling on a 3 second interval). As an aside, I find TG to be much simpler to program than nevow, enough so that I'm much more inclined to try to find a workaround using TG rather than code something in nevow just to take advantage of the twisted network model. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears -~----------~----~----~----~------~----~------~--~---

