Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cherrypy : Do I really need to put it behind a frontend?

I've been working on a python web app using cherrypy and read it'd be more "robust" to use it as a backend, so I gave it a try.

Shortly put, running some benchmarks on a page doing some database operations and serving static & dynamic content has shown that plain cherrypy was twice as fast than nginx and memcached, and about half faster than lighttpd. I heard the latter had memory leak issues, so refrained from using it. And yes, both nginx and lighttpd were configured to serve the static content.

I didn't want to try out apache since I'll be deploying it on a relatively "small" VPS.

So, considering that :

  • I wont' be deploying it on a distributed system for a while, is it safe to use cherrypy on its own ?
  • And when I will deploy it on a such system, which frontend performs the best ?
like image 229
felace Avatar asked Aug 08 '10 21:08

felace


People also ask

Is CherryPy a Web server?

CherryPy WSGI Web Server In Brief It is a modularized component which can be used to serve any Python WSGI web application.

How do you use CherryPy in Python?

This tutorial is primarily designed for developers who work on Python and are required to create portable database-driven web-based applications. CherryPy provides the CRUD (Create, Retrieve, Update and Delete) functionalities for applications and helps in managing the project from anywhere using the user's browser.


1 Answers

Yes; it's safe to use CherryPy on its own.

like image 97
fumanchu Avatar answered Oct 13 '22 04:10

fumanchu