hashicorp / hashicorp/go-retryablehttp

Leaving some time for a retry

Open
#127 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Go
Stars
2.3k
Forks
298
PR merge metrics
No merged PRs in 30d

Description

There are two ways to think about a context.Context with a 30 second deadline and a limit of 3 retries

1. Give each individual request as much time to succeed as possible, possibly using all 30 seconds
2. Give each try ten seconds to succeed

Sometimes a thing might need all 30 seconds to process, or as close to it as possible. Other times, splitting the amount of time equally would allow, for example, the second request to be processed by a different, healthier worker behind the LB.

Right now there's basically no way to implement (2) using this library and I was curious if you're interested in it

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.