Retry or fail fast for user-facing API calls with a 1-second budget
Our Go API gateway calls an inventory service and has a 1-second budget for the whole user request. Option A: retry failed calls with exponential backoff and jitter. Option B: fail fast: one attempt with a 300 ms timeout, return a degraded response, let the client decide. At 5K…