3

使用 django-nonrel 而不是 webapp 在 Google App Engine 上开发应用程序对性能有何影响?

我知道 webapp 和已经包含在 google appengine 中的 django 之间没有太大区别,但问题更多是围绕着这些家伙所做的精细工作:http ://www.allbuttonspressed.com/

谢谢

4

2 回答 2

4

Django 比 Webapp 等轻量级框架(它只使用 Django 的一部分,可选地)强加了相当大的启动开销——如果你相信基准的话,任何额外的 500 毫秒。这可以通过预热请求来缓解或消除,并且总是在实例上

启动后,我预计效率不会有显着差异——大部分时间都花在等待任何框架中的 RPC 上——但你可能会发现模板和框架性能的这些基准测试很有趣。

于 2011-06-16T04:17:43.007 回答
0

Django 不包含在 appengine 中,appengine 仅使用 django 模板库。Webapp 是另一个衍生自webob的框架。来到 django-nonrel

Django-nonrel is a project which allows developers to run native Django projects (including Django's ORM) on non-relational databases, one of which is Google App Engine's Datastore. (This is all in addition to the standard traditional SQL databases that have always been supported by Django.) App Engine does come with some Django support, but this is mainly only the templating and views. Other tools that allow for rapid development such as forms, the built-in administration interface or Django authentication just won't run out-of-the-box. Django-nonrel changes this for Django developers.

django-nonrel 主要用于在 appengine 上运行您当前的 django 项目而无需付出太多努力。谈到性能影响,我认为选择 django-nonrel 不会对性能产生太大影响。

于 2011-06-15T12:42:48.123 回答