Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is CherryPy a robust webserver (ie, is it reliable under a huge load like Apache)?

I'm wondering because CherryPy is, from my knowledge, built purely in Python, which is obviously slower than C et al. Does this mean that it's only good for dev / testing environments, or could I use it behind NGINX like I use Apache with Fast CGI currently?

like image 927
orokusaki Avatar asked Feb 10 '10 22:02

orokusaki


People also ask

Is CherryPy a Web server?

CherryPy comes with its own web (HTTP) server. That is why CherryPy is self-contained and allows users to run a CherryPy application within minutes of getting the library. The web server acts as the gateway to the application with the help of which all the requests and responses are kept in track.

What is a WSGI application?

WSGI stands for "Web Server Gateway Interface". It is used to forward requests from a web server (such as Apache or NGINX) to a backend Python web application or framework.


1 Answers

CherryPy's WSGI server is about as fast as a pure-Python WSGI server is going to get. I personally use it behind Nginx in production, but even standalone on my dev machine I can load each instance with several hundred requests / sec. without problems.

Can you find a faster server? Yes. Is CherryPy a robust web server, and good enough for most people to use in production? Yes.

like image 170
Michael Greene Avatar answered Oct 16 '22 10:10

Michael Greene