Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strategy with Cloud Functions? #2

Open
dakom opened this issue Dec 10, 2018 · 0 comments
Open

Strategy with Cloud Functions? #2

dakom opened this issue Dec 10, 2018 · 0 comments

Comments

@dakom
Copy link

dakom commented Dec 10, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant