Mongrel2 WSGI adapter based on CherryPy WSGI server

15 views
Skip to first unread message

Daniel Holth

unread,
Nov 30, 2010, 11:50:22 PM11/30/10
to cherrypy-devel
For some reason I decided to base a Mongrel2 handler to WSGI adapter
on the CherryPy WSGI server. The result is at http://pypi.python.org/pypi/mongrel2_wsgi

Mongrel2 is basically a reverse proxy that sends parsed HTTP requests
over ZeroMQ to workers. This allows you to do cool things like
starting up multiple workers on multiple machines without having to
tell Mongrel2 about each one in advance; requests will be
automatically sent round-robin to all available workers. It is also
quite fast.

The original server is not quite extensible enough to allow this
without more copy and paste than I would have liked, but it seems to
work properly and does not have the annoying 'batch all content before
sending any response' feature found in some WSGI servers.

Daniel Holth

Sylvain Hellegouarch

unread,
Dec 1, 2010, 11:39:34 AM12/1/10
to cherryp...@googlegroups.com
Interesting piece you've written there. Recently I've had the need for diving into the internals of the wsgiserver module and indeed the code isn't as flexible as it might be. Mind you, it was not really intended for being massively modular either. It might be worth making it so at some point. 

--
- Sylvain
http://www.defuze.org
http://twitter.com/lawouach
Reply all
Reply to author
Forward
0 new messages