Retry idempotent operations that fail transiently (network blips, rate limits) using exponential backoff with jitter and a max attempt cap — but never retry non-idempotent or permanent failures.
Why This Matters
Failing on the first transient error reduces reliability; naive tight-loop retries amplify outages and can cause thundering-herd overload.
Related Rules
Catch this automatically on every PR
BeforeMerge scans your pull requests against this rule and dozens more. Get actionable feedback before code ships.