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

10 Replies, 2025 Views

Hey! I’ve found that go-resty retrycondition works best when you’re specific about what you’re retrying.

For example, I only retry on 502, 503, and 504 status codes. Anything else is usually a client-side issue, so no point retrying.

Also, set a reasonable retry count (like 3-5) and use exponential backoff. It’s saved me a ton of headaches in prod.

Messages In This Thread



Users browsing this thread: 1 Guest(s)