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.
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.
