Google App Engine:一个后端服务/模块?

huangapple go评论85阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2017年1月15日 16:15:33
  • 转载请务必保留本文链接:https://go.coder-hub.com/41659139.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定