Skip to content

feat: Make bedrock client to use adaptive retries #1125

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

YeonwooSung
Copy link

Features

  • Make bedrock runtime client to use adaptive retries rather than using legacy retry logics

Feature Docs
Boto3 client uses 'legacy retry' option as default, which has limited retry features.
It is better to use either 'standard' or 'adaptive' retry option.

Adaptive retry mode is an experimental retry mode that includes all the features of standard mode. In addition to the standard mode features, adaptive mode also introduces client-side rate limiting through the use of a token bucket and rate-limit variables that are dynamically updated with each retry attempt. This mode offers flexibility in client-side retries that adapts to the error/exception state response from an AWS service.

@YeonwooSung YeonwooSung requested a review from hfabio May 21, 2025 11:25
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