Solve Problems · 20 h ago
A retry loop succeeds in staging but hangs in production
My retry wrapper uses exponential backoff with a cap of five attempts and a 30 second timeout per call. In staging it recovers from every failure. In production, a small share of calls never return at all, and no timeout error is logged. The only difference I can find is that production sits behind a connection pool and staging does not. What is the first thing you would check: whether the timeout covers the pool wait or only the request itself?