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 exponential backoff to axios retry #934

Merged
merged 1 commit into from
Feb 23, 2023

Conversation

georgi-l95
Copy link
Collaborator

Description:
Adds exponential backoff to axios retry and change configurable retry time to the most efficient.
Screenshot 2023-02-22 at 18 54 00

With this change, we'll have most of the optimisations merged. From here onwards we'll have to look for optimisations to other components (mirror-node, network-node).

Related issue(s):

Fixes #689

Notes for reviewer:

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

Signed-off-by: georgi-l95 <[email protected]>
@georgi-l95 georgi-l95 self-assigned this Feb 22, 2023
@georgi-l95 georgi-l95 linked an issue Feb 22, 2023 that may be closed by this pull request
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@georgi-l95 georgi-l95 marked this pull request as ready for review February 22, 2023 18:09
@lukelee-sl
Copy link
Member

I'm not exactly sure what the chart means but seem like we are waiting more with each iteration and thus the total time increases exponentially.

@lukelee-sl lukelee-sl added this to the 0.19.0 milestone Feb 22, 2023
@Nana-EC Nana-EC added enhancement New feature or request limechain P2 labels Feb 23, 2023
@georgi-l95
Copy link
Collaborator Author

@lukelee-sl Yeah, sorry, I should've explained the charts better, those are E2E test runs before this change and after. As we are aiming to make local node development faster, this is a step in that direction.

@georgi-l95 georgi-l95 merged commit 40bc652 into main Feb 23, 2023
@georgi-l95 georgi-l95 deleted the 689-introduce-exponential-backoff-for-axios-retry branch February 23, 2023 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request limechain P2
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Introduce exponential backoff for axios-retry
3 participants