Josh Bleecher Snyder personal blog

Simpler Backoff

Exponential backoff with jitter is de rigeur for making service calls. This code, or something like it, probably looks really familiar: func do(ctx context.Context) error { const ( maxAttempts = 10 baseDelay = 1 * time.Second maxDelay = 60 * time.Second ) delay := baseDelay for attempt := range maxAttempts { err :=…
Points
132
HN comments
45
Submissions
1
Cited by
0 commenters

Systems & PerformanceSoftware Engineering2025

On Hacker News

SubmittedTitle on HNPointsComments
May 31, 2025Simpler Backoff by todsacerdoti13245

Related posts from the same era