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

Added initial backoff retry impementation #37

Merged
merged 1 commit into from
Dec 27, 2023

Conversation

andrii-otroshko-forte
Copy link
Contributor

Added initial implementation of retry mechanism for handling transient failures (specifically HTTP 429 responses):

  • Converted ClientConfig from a class to a record to enhance immutability and predictability
  • Added MaxRetries and MaxBackoff in Connection for configurable retry policies
  • Implemented exponential backoff for HTTP 429 responses
  • Updated Client class to use new retry settings

Copy link
Contributor

@pnwpedro pnwpedro left a comment

Choose a reason for hiding this comment

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

lgtm

@andrii-otroshko-forte andrii-otroshko-forte merged commit 791128a into initial_error_handling Dec 27, 2023
4 checks passed
@andrii-otroshko-forte andrii-otroshko-forte deleted the backoff_retry branch December 27, 2023 06:51
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.

3 participants