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

Changing default polling interval from 60 to 30 #621

Merged
merged 2 commits into from
Jun 2, 2021

Conversation

madewithsmiles
Copy link
Member

@madewithsmiles madewithsmiles commented Mar 8, 2021

Proposing this change following email discussion on making it less conservative. What do you think of this change?

Now it makes me think, can we update the DefaultRetryDuration from 30 seconds to 15 seconds if the change above is fine?


Thank you for your contribution to Go-AutoRest! We will triage and review it as soon as we can.
As part of submitting, please make sure you can make the following assertions:

  • I've tested my changes, adding unit tests if applicable.
  • I've added Apache 2.0 Headers to the top of any new source files.

Proposing this change following email discussion on making it less conservative. What do you think of this change?

Now it makes me think, can we update the `DefaultRetryDuration` from 30 seconds to 15 seconds if the change above is fine?
@@ -31,7 +31,7 @@ import (

const (
// DefaultPollingDelay is a reasonable delay between polling requests.
DefaultPollingDelay = 60 * time.Second
DefaultPollingDelay = 30 * time.Second
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could end up doubling the number of GET calls during polling which might impact large-scale apps and introduce throttling. This needs to be investigated before we could merge this as it affects everybody.

@jhendrixMSFT
Copy link
Member

Closing for now. If we get data that confirms we can safely make this change please ping back.

@jhendrixMSFT jhendrixMSFT merged commit 10e0b31 into Azure:master Jun 2, 2021
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

Successfully merging this pull request may close these issues.

None yet

2 participants