Django on GoogleAppEngine - Performance?

2019-09-07 20:05发布

Does running Django on GoogleAppEngine, as opposed to the default WebApp2 framework, consume additional resources? Any metrics?

1条回答
我欲成王,谁敢阻挡
2楼-- · 2019-09-07 21:06

From the mailing list, I've seen multiple comments on Django instances taking significantly longer to start up if cold. This would be noticeable if your app is rarely used.

From my app's log it looks like the first request took about 4 seconds to start up.

My Django instances use 41-43MB. Not sure about webapp2.

If you're using Django-nonrel as an ORM, I'm sure there's a few cycles spent in the ORM translation, but I doubt it's significant. My Tastypie REST layer can take anywhere between 40-120ms for the same request, it looks like that performance is dictated more by the datastore than anything else.

查看更多
登录 后发表回答