0

I want to host an application in the google engine, the purpose of my application is to get data from a different server once in a day. So I don't want my application to work full time in day(As it is costlier). I just want to run the application for an hour in a day and pay only on that basis. Is it possible to do it in that way?

Mariya James
  • 935
  • 2
  • 9
  • 27
  • Hi @MariyaJames, Google App Engine offers an amount of each resource for free for your applications. If these free quoates are exceeded, then you will be charged. Check [App Engine Quotas](https://cloud.google.com/appengine/quotas) for more info. Since you want to create a task at a particular time a day, you may want to take a look at [Cloud Schedulers](https://cloud.google.com/scheduler/docs/configuring/cron-job-schedules). Scheduler tasks work along with Google App Engine, as shown [here](https://medium.com/google-cloud/google-app-engine-cron-job-monitoring-bbf5c2ed6ca3). – sllopis Oct 24 '19 at 12:52
  • If this does not apply to you, then you can check out [Cloud Run](https://cloud.google.com/run/), which is a service that allows you to pay only for the resources you use, and you can [create and configure cron jobs](https://cloud.google.com/scheduler/docs/creating) to work along. I hope all this info is helpful, and keep me posted. – sllopis Oct 24 '19 at 12:54

1 Answers1

1

All depend of your needs. App Engine standard has 28H free per day of F1 instance type, and 9H of B1 instance type (depend of your scaling type).

App Engine flexible doesn't have free quota -> This is expensive for some hours per days.

If App Engine standard matches your need, take care of the timeout. Each request can last more than 60 secondes. You can use Cloud Task to defer background task. By the way, a task can last up to 24h.

If App Engine standard doesn't match, because of language limitation, third party library/binary limitation and you need to have a container and that's why you need to run on App Engine Flexible, you can consider Cloud Run. However, the request are limited to 15 minutes and you have a generous free tier.

So, provide more inputs if you want more advice.

guillaume blaquiere
  • 66,369
  • 2
  • 47
  • 76
  • Could you please look into https://stackoverflow.com/questions/58638095/call-google-endpoint-frameworks-from-node-js-application/58643103?noredirect=1#comment103615881_58643103 – Mariya James Nov 04 '19 at 05:52