Cherrypy:我真的需要把它放在前端吗? [英] Cherrypy : Do I really need to put it behind a frontend?

查看:67
本文介绍了Cherrypy:我真的需要把它放在前端吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用Cherrypy开发python网络应用程序,并且阅读它作为后端会更健壮",所以我尝试了一下.

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.

简而言之,在页面上运行一些基准测试,以执行一些数据库操作并提供静态&动态内容表明,普通的cherrypy速度是nginx和memcached的两倍,并且比lighttpd快一半.我听说后者存在内存泄漏问题,因此请不要使用它.是的,nginx和lighttpd均已配置为提供静态内容.

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.

我不想试用Apache,因为我将其部署在相对小的" VPS上.

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

因此,考虑到这一点:

  • 我不会将其部署在 分布式系统有一段时间了吗 可以单独使用cherrypy吗?
  • 当我将其部署在这样的 系统,该前端执行 最好?
  • 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 ?

推荐答案

是;单独使用CherryPy是安全的.

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

这篇关于Cherrypy:我真的需要把它放在前端吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆