youtubechatbot icon indicating copy to clipboard operation
youtubechatbot copied to clipboard

Strategy with Cloud Functions?

Open dakom opened this issue 6 years ago • 0 comments

Does the following approach make sense?

Setup cloud function at /process

  1. First invocation is manual (to start the bot)
  2. Cloud Function calls the List API, and does whatever based on messages
  3. Sends a request to /process after pollingIntervalMillis
  4. Exits
  5. A new CloudFunction will be invoked (goto step 2)

?

This all assumes that pollingIntervalMillis is less than the deadline for a single cloud function invocation, which I believe can be set to 9 minutes max

dakom avatar Dec 10 '18 20:12 dakom