Define a Retry Policy with Backoff and Jitter for Your Pipelines
For data and platform engineers who need to decide how a pipeline reacts to transient failures without causing a cascading effect. The prompt leads the model to separate errors worth retrying from those that aren't, and to propose intervals, a maximum number of attempts, jitter and a wait cap.
The response comes in two parts: a direct diagnosis of your scenario and a policy numbered by priority, with parameters, the rationale for each choice, risks such as idempotency and retry storms, and what is out of scope. Assumptions made are stated explicitly.
Fill in the bracketed fields with your tool (Airflow, Spark, Lambda, HTTP client, etc.), the type of failure and the limits of the target system. Ask Claude to also generate the configuration or code snippet for your stack.
You are a senior Data Engineer with experience in production pipelines and integration resilience. ## Context - Pipeline or service: [PIPELINE: what runs and how often] - Stack and orchestrator: [STACK: e.g., Airflow, Spark, Lambda, HTTP client] - Target system and its limits: [TARGET: API, database or queue, with rate limit or capacity, if known] - Observed failures: [FAILURES: timeouts, 429, 503, deadlocks] ## Task Define a retry policy with backoff that recovers from transient failures without overloading the system.