Reputation: 51
I created a very small app that calls an external website, receives JSON data and stores it as a JSON file in my app root folder. What is best practice in Google Cloud / App engine to automate this app?
Upvotes: 0
Views: 48
Reputation: 3325
Reading at your scenario, you would have to go with the cron.yaml
option, aka, the Cron service, but there are some bits that need explaining. Bear in mind that some of these links are for Python, but you can switch to your programming language, which you haven't mentioned in the question:
queue.yaml
option, aka the Task Queue service, and the Cron service. In this case, I would recommend going with the Cron service, as it's much simpler to configure that the Task Queue service. You just need to configure the cron.yaml
file to hit your application at the time you want, and that's it. I would only recommend the Task Queue service if your requests exceeded the limit of 60 seconds that all requests have in App Engine Standard, as with the Task Queue service you can 'drop' this task in a Queue. So, in the end, I would go with App Engine Standard, combined with Cloud Storage to keep the JSON files, as the Standard environment is also cheaper than the Flexible environment.
Upvotes: 1