Skip to content

add exponential backoff and jitter #41

@rayrrr

Description

@rayrrr

In http://developers.marketo.com/rest-api/error-codes one of the error codes states:

502 | Bad Gateway | The remote server returned an error. Likely a timeout. The request should be retried with exponential backoff.

In fact, exponential backoff is a good error handling strategy in many cases. https://github.com/litl/backoff already provides the feature; would you be willing to introduce a dependency on that package here so we could use it to decorate the execute method?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions