[CentralOH] Help with Twisted Framework
kartic.krish at gmail.com
Sun May 31 17:05:53 CEST 2009
On Thu, May 28, 2009 at 9:56 AM, Neil Ludban <nludban at osc.edu> wrote:
> On Thu, 28 May 2009 12:14:03 -0400
> Aaron Bush <asb.bush at gmail.com> wrote:
>> Does anyone on the list have experience using the twisted framework?
>> I am looking to pick you brain about the 'best' way to write an application
>> using this framework.
Upon reading your requirements, it appears that you need some sort of
Reverse HTTP or a COMET-style communication mechanism. If you want to
use Twisted primarily (though to do r-HTTP or COMET, you don't /need/
Twisted), you can give orbited (http://orbited.org/) a shot or you
could roll out your own. You might also be interested in the "ptth"
> IMO Twisted is just a C framework design forced into Python. To be
> fair, Python threading became reliable about the time I was first
> investigating it, and I never looked at Twisted again. If I needed
> a robust framework capable of handling hundreds or thousands of
> simultaneous connections, I'd give it another try.
> The Python standard library includes a much simpler C-like library:
> as well as a more OOD library:
I would recommend that you look at Eventlet (based on greenlet:
http://wiki.secondlife.com/wiki/Eventlet (prefer using the Mercurial
And there is a good end-to-end example of a chat server:
(You might have to make some modifications, just in case the example
code is incompatible with eventlet 0.8.11-pre)
If you like what you see, please join the eventlet mailing list and
you will definitely get help.
More information about the CentralOH