Need Help Implementing go-resty retrycondition: Best Practices and Examples?

10 Replies, 1935 Views

Hey folks!

So, I’m trying to figure out how to properly use the go-resty retrycondition in my project. I’ve got some basic retries working, but I’m not sure if I’m doing it the *best* way.

Like, should I be checking for specific HTTP status codes? Or maybe handling network errors differently? I’ve seen a few examples, but they’re kinda all over the place.

Anyone got some solid tips or snippets for go-resty retrycondition? Maybe something you’ve used in prod that actually works?

Also, is there a way to limit retries based on time or something? I don’t wanna spam the server lol.

Thanks in advance! 🙏

Messages In This Thread
Need Help Implementing go-resty retrycondition: Best Practices and Examples? - by - 13-11-2024, 09:43 PM



Users browsing this thread: 1 Guest(s)