I bet on https://pkg.go.dev/github.com/rogpeppe/retry - it allows a simple
for iter := strategy.Start(); iter.Next(ctx.Done()); { if err := todo(ctx); err == nil { break } else if permanent(err) { break } } portt...@gmail.com a következőt írta (2022. május 25., szerda, 16:02:16 UTC+2): > This was an interesting read: > > "Timeouts, retries, and backoff with jitter" > > https://aws.amazon.com/builders-library/timeouts-retries-and-backoff-with-jitter/ > > I wonder what is a good practice in Go code to retry/reconnect/recover but > not too aggressively, when connections fail or are stalling or choppy? (Not > really AWS specific...) > > > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/119cbaba-d3b7-4cc0-b1b5-7d86c71bcf7bn%40googlegroups.com.