动态后台如何在Google App Engine中开始 [英] How do dynamic backends start in Google App Engine

查看:187
本文介绍了动态后台如何在Google App Engine中开始的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们可以编程启动一个动态后台吗?意思是当一个后台开始时,我如何处理这个请求可以通过应用程序(我的意思是app.appspot.com)来处理。



当我手动停止后端在管理控制台中,发送一个请求给它,它不是动态地开始

解决方案


动态后台在收到请求时就已经存在,空闲时
被拒绝;他们是理想的工作是
间歇性或由用户活动驱动。



居民后端不断运行,允许您依靠
的状态他们的记忆随着时间的推移,并执行复杂的初始化。


http://code.google.com/appengine/docs/python/backends/overview.html



我最近开始在动态后端执行一个长时间运行的任务,并注意到前端的性能急剧增加。我认为这是因为长时间运行的任务正在与正常的用户请求竞争资源。


Can we start a dynamic backend programatically? mean while when a backend is starting how can i handle the request by falling back on the application(i mean app.appspot.com).

When i stop a backend manually in admin console, and send a request to it, its not starting "dynamically"

解决方案

Dynamic backends come into existence when they receive a request, and are turned down when idle; they are ideal for work that is intermittent or driven by user activity.

Resident backends run continuously, allowing you to rely on the state of their memory over time and perform complex initialization.

http://code.google.com/appengine/docs/python/backends/overview.html

I recently started executing a long running task on a dynamic backend and noticed a dramatic increase in the performance of the frontends. I assume this was because the long running task was competing for resources with normal user requests.

这篇关于动态后台如何在Google App Engine中开始的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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