Simpler Backoff
Link: commaok.xyz/post/simple-backof…
Discussion: news.ycombinator.com/item?id=4…
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.commaok.xyz
Curioso 🍉 🇺🇦 (jgg)
in reply to Cris 🍄☄️🍉 • • •Cris 🍄☄️🍉
in reply to Cris 🍄☄️🍉 • • •Cris 🍄☄️🍉
in reply to Cris 🍄☄️🍉 • • •