[Zope3-dev] Twisted as server

sean.upton@uniontrib.com sean.upton@uniontrib.com
Mon, 11 Feb 2002 15:44:16 -0800


Isn't Twisted an asynchronous framework servicing multiple requests with an
event loop?  I don't claim to know much about Twisted, but I would think
that it wouldn't work to integrate a threaded HTTP server into Twisted due
to architectural differences at a core level?

It sounds like it might be nice to see someone implement a Twisted HTTP
interface to Z3X, and compare its performance alongside what already
exists...  And the option to use either might be appealing too - if nothing
other than to use Twisted for SMTP/NNTP/IRC/IM stuff... I can think of uses
for NNTP and IM applications I could integrate with Zope already...

Sean

-----Original Message-----
From: Shane Hathaway [mailto:shane@zope.com]
Sent: Monday, February 11, 2002 3:13 PM
To: Stephan Richter
Cc: zope3-dev@zope.org
Subject: Re: [Zope3-dev] Twisted as server


Stephan Richter wrote:
> Kapil showed me a version of Zope 3 running off Twisted. As far as I 
> understand it, Twisted is more object-oriented and support already many 
> more protocols than Medusa. I would really like to see Twisted to become 
> the standard Zope server. This way I can implement native SMTP (thinking 
> Mailman 3.0 here) and IRC servers using Zope, which I think is really 
> cool. ;-)
> 
> What are you opinions? Kapil, how much would it take to put Twisted into 
> the Zope 3?

FYI Zope 3 has already rid itself of almost all of Medusa.  There's a 
new HTTP server in there that's better at working with threads, faster, 
and (from what I could tell) more object oriented than Twisted.  Look at 
Zope/Server/HTTPServer.py.  I measured, on an Athlon 800, about 500 
requests per second on short responses and something in the neighborhood 
of 30 MB per second maximum throughput on large responses.  For Python, 
this is pretty fast. ;-)

Perhaps Twisted would benefit from the new HTTP server?

Shane


_______________________________________________
Zope3-dev mailing list
Zope3-dev@zope.org
http://lists.zope.org/mailman/listinfo/zope3-dev