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

我与影子孤独终老i 提交于 2019-12-19 19:44:11

问题


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 ?

回答1:


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



来源:https://stackoverflow.com/questions/3436202/cherrypy-do-i-really-need-to-put-it-behind-a-frontend

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!