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

Evaluate switching to using a watch instead of indivdual calls #6

Open
eytan-avisror opened this issue Jan 21, 2022 · 0 comments
Open
Labels

Comments

@eytan-avisror
Copy link
Collaborator

Currently we make calls according to the polling configuration:

  configuration:
    successThreshold: 10
    failureThreshold: 10 
    interval: 1s

In this case we would need 10 successful calls to succeed, or 10 failed calls to fail, with 1 second interval.

Instead we could make the configuration more suitable for using watches:

  configuration:
    successDuration: 10s
    failureDuration: 10s

We could make a single call per resource to open a watch, and use time tickers to count the time we are in success/fail state instead.

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

No branches or pull requests

1 participant