Posts

Showing posts with the label wsgi

Python WSGI server - CherryPy 3.0

Image
Today I noticed that CherryPy 3.0 has been released. CherryPy is a multi-threaded production web server written in python. The part I am interested in is the Web Server Gateway Interface(WSGI) component. WSGI is the glue which allows lots of python web code to talk to each other. A python WSGI server allows you to run python applications. Up until now I have mostly been using the twisted.web2 wsgi code. This is fairly nice, and I can use other parts of twisted with it. However twisted.web2 is not finished. CherryPy on the other hand has had a lot of work done on it polishing it up. It is used by quite a lot of people on real websites. A nice part of this work is the optimization work that has been done on it. Apparently CherryPy 3.0 is three times faster than the previous 2.x release. One of the authors also claims that it is the fastest WSGI server around. For my simple benchmarks on my application it goes from 38 req/second with twisted, to 54 req/second with a slow AMD Duron...