[Zope3-dev] Twisted as server

Shane Hathaway shane@zope.com
Mon, 11 Feb 2002 18:12:44 -0500


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