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
| Submitted | Title on HN | Points | Comments |
|---|---|---|---|
| May 31, 2025 | Simpler Backoff by todsacerdoti | 132 | 45 |