FlowchartRetry & error handlingMedium
Retry with exponential backoff
Retry strategy using exponential backoff with jitter and a hard cap on attempts.
What this diagram shows
Step 01
Classify the error
Transient failures are retried; non-retryable errors fail fast.
Step 02
Backoff with jitter
Each attempt waits longer than the last, with jitter to avoid thundering herds.
Step 03
Hard cap
After the attempt budget is exhausted the call fails and alerts fire.
About flowchart diagrams
Flowcharts map out a process as boxes and arrows. They work well when you need to explain how a decision, workflow, or pipeline moves from one step to the next.
This template is written in Mermaid — plain text you can edit, version in git, and regenerate the image from any time.
View Mermaid sourcePlain-text diagram syntax — copy or edit directly.
diagram.mmd
1graph TD2 Start((Start)) --> Call[Call downstream]3 Call -->|success| Done((Done))4 Call -->|transient error| Check{Attempt < max?}5 Check -->|yes| Wait[Wait 2^n * base + jitter]6 Wait --> Call7 Check -->|no| Fail[Fail and alert]8 Call -->|non-retryable| FailRelated
Related templates
More templates that cover similar workflows.