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

Enable a Defaults mode on AWS clients #15

Merged
merged 1 commit into from
Nov 7, 2023
Merged

Conversation

istreeter
Copy link
Contributor

The defaults mode is described in this AWS blog post.

By enabling a default mode, the client adapts to pick an appropriate retry policy and network settings.

Without this setting, the SDK does not do any retries. In the past we have implemented our own retry logic. But I prefer this way because I trust the sdk to know which error categories should be retried. And it makes the aws clients consistent with our gcp/kafka clients, which also do retries under-the-hood.

Copy link
Contributor

@benjben benjben left a comment

Choose a reason for hiding this comment

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

That's great! I agree that it's better to trust the SDK to handle the errors better than us 👌

@istreeter istreeter merged commit 80dff80 into develop Nov 7, 2023
1 check passed
@istreeter istreeter deleted the aws-retry-policy branch November 7, 2023 10:13
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.

2 participants