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

Api gateway service retry wrapper #5

Conversation

Projects
None yet
2 participants
@josephroffey
Copy link

josephroffey commented Jan 11, 2016

'TooManyRequestsException' sometimes seen when calling the APIGateway to deploy a complicated stack. Added an api-gateway-retry-wrapper utility that is used in place of the APIGateway to retry requests that fail with this exception.

Defaults:
max retries: 8,
min retry interval (milliseconds): 2000,
retry window (milliseconds): 5000
(so it retries up to 8 times at a random point between 2 and 7 seconds after each failure).

@carlnordenfelt

This comment has been minimized.

Copy link
Owner

carlnordenfelt commented Jan 12, 2016

I'll merge this when I'm back. Chances are though that this will only push the issue. My best advice is to use DependsOn in your template to avoid creating too many resources at once. This will help for plenty of use cases though so it's a good update.

Would you mind checking the failures in Travis?

Joseph Roffey added some commits Jan 11, 2016

@carlnordenfelt carlnordenfelt merged commit 2f4c5c8 into carlnordenfelt:master Feb 15, 2016

1 check failed

continuous-integration/travis-ci/pr The Travis CI build failed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.