Skip to content

Implement Adaptive retry strategy for Adaptive retries.#660

Open
ubaskota wants to merge 2 commits intosmithy-lang:adaptive_retriesfrom
ubaskota:adaptive_retry_strategy
Open

Implement Adaptive retry strategy for Adaptive retries.#660
ubaskota wants to merge 2 commits intosmithy-lang:adaptive_retriesfrom
ubaskota:adaptive_retry_strategy

Conversation

@ubaskota
Copy link

Issue #, if available:

Description of changes:
Implement AdaptiveRetryStrategy that extends StandardRetryStrategy with client-side rate limiting using token bucket and CUBIC congestion control algorithm.

Key Changes:

Add AdaptiveRetryStrategy class with rate limiter integration
Implement timeout handling for token acquisition that counts as retry attempt
Integrate rate limiting hooks in RequestPipeline._retry() method
Add thread-safe async lock to RequestRateTracker.measure_rate()
Add comprehensive unit and functional tests for adaptive retry behavior

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@ubaskota ubaskota requested a review from a team as a code owner March 17, 2026 15: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.

1 participant