gpt4 book ai didi

google-app-engine - 动态后端如何在 Google App Engine 中启动

转载 作者:太空宇宙 更新时间:2023-11-03 15:19:37 25 4
gpt4 key购买 nike

我们能否以编程方式启动动态后端?意味着当后端启动时,我如何通过回退到应用程序(我的意思是 app.appspot.com)来处理请求。

当我在管理控制台中手动停止后端并向其发送请求时,它不会“动态”启动

最佳答案

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

我最近开始在动态后端上执行一项长时间运行的任务,并注意到前端的性能有了显着提高。我认为这是因为长时间运行的任务正在与正常用户请求竞争资源。

关于google-app-engine - 动态后端如何在 Google App Engine 中启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6252337/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com