英文:
Google App Engine: a single backend service/module?
问题
如何在GAE上拥有一个简单的后端模块/服务/后端(或者他们将来决定如何称呼,因为他们似乎三者可以互换使用)?我不需要任何端点和Web服务器:我有一个应用程序从一个端点读取数据,并且我想将其存储在数据库中。这不是一个定时作业,可以将其想象为while(1){do_stuff()}
。
我对GAE的教程感到非常困惑,我已经阅读了三个多小时。我对文档的质量感到震惊:有大量的信息,但没有一个可用的示例(例如,配置文件文档中的.yaml
文件是不完整的,不能直接使用)。
英文:
How does one have a simple backend module/service/backend (or whatever they decide to call it in the future since they seem to use all three interchangeably) on GAE? I need zero endpoints and no web server: I have an app that reads stuff from an endpoint and I want to store that in a database. This is not a cron job, imagine this as a while(1){do_stuff()}
.
I am woefully confused at the GAE tutorials, which I've been reading for over three hours now. I'm just shocked at how bad the documentation is: there is a ton of information but not a single working example (e.g. the .yaml
files of the config file document are incomplete and don't work out of the box).
答案1
得分: 1
你考虑过使用具有手动扩展功能的模块吗?你可以将 /_ah/start
映射到一个处理程序,该处理程序可以执行你的循环。与自动扩展不同,你的循环可以持续运行长达24小时。
英文:
Have you considered using a module with manual scaling? You could map /_ah/start
to a handler that does your loop. Unlike with automatic scaling your loop can continue for up to 24 hours.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论