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

Add retry logic to HTTP calls in SDK #905

Merged
merged 6 commits into from
Dec 12, 2024
Merged

Add retry logic to HTTP calls in SDK #905

merged 6 commits into from
Dec 12, 2024

Conversation

nkuba
Copy link
Member

@nkuba nkuba commented Nov 27, 2024

We observed that the tBTC API calls are failing intermittently, which may be related to unstable Cloudflare workers infrastructure. This PR adds retry logic to the tBTC API calls to handle these failures. Requests to the tBTC API will be retried up to 5 times with an exponential backoff strategy.

Closes AENG-26

We observed that the tBTC API calls are failing intermittently, which may
be related to unstable Cloudflare workers infrastructure. This PR adds retry
logic to the tBTC API calls to handle these failures.
Requests to the tBTC API will be retried up to 5 times with an exponential
backoff strategy.
@nkuba nkuba requested a review from r-czajkowski November 27, 2024 23:40
@nkuba nkuba self-assigned this Nov 27, 2024
@nkuba nkuba requested a review from a team November 27, 2024 23:40
Copy link

netlify bot commented Nov 27, 2024

Deploy Preview for acre-dapp-testnet ready!

Name Link
🔨 Latest commit debde11
🔍 Latest deploy log https://app.netlify.com/sites/acre-dapp-testnet/deploys/675a152f2afa6f00085a1c22
😎 Deploy Preview https://deploy-preview-905--acre-dapp-testnet.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Nov 27, 2024

Deploy Preview for acre-dapp ready!

Name Link
🔨 Latest commit debde11
🔍 Latest deploy log https://app.netlify.com/sites/acre-dapp/deploys/675a152f7ca8a90008c86ded
😎 Deploy Preview https://deploy-preview-905--acre-dapp.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Previously we were only retrying HTTP requests in the SDK for tBTC API
calls. We can generalize this solution and apply it to all HTTP requests.
@nkuba nkuba changed the title Add retry logic to tBTC API calls Add retry logic to HTTP calls in SDK Dec 6, 2024
@nkuba nkuba requested a review from r-czajkowski December 6, 2024 09:58
@r-czajkowski r-czajkowski merged commit 6d42980 into main Dec 12, 2024
28 checks passed
@r-czajkowski r-czajkowski deleted the tbtc-api-retries branch December 12, 2024 05:32
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