Skip to content
This repository was archived by the owner on Feb 13, 2024. It is now read-only.
This repository was archived by the owner on Feb 13, 2024. It is now read-only.

Add jitter to retry timeout #284

@Dahaden

Description

@Dahaden

We would love to be able to add jitter to the retry logic in order to prevent retry storms from the hosts impacted by an outage.

This is something that axiosRetry can support through a custom function but I am wondering what the preferred approach to this is.

The options I see are:

  1. Add an option for jitter like in the @segment/localstorage-retry library,
  2. Add an option for the axiosRetryConfig which we can merge with the defaults and pass into axiosRetry, or
  3. Add an option for axiosRetryInstance like axiosInstance.

My only concern with 3 is that axiosInstance need to be passed into axiosRetry and this may be easy to miss-configure if someone is playing around with this.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions