Diagnose and Fix Unstable API Ingestion with Retry and Backoff
For data engineers and platform teams maintaining a production pipeline that consumes an external API that fails intermittently (timeouts, 429s, 5xx errors, broken pagination). The prompt forces a root-cause diagnosis before any solution, avoiding blind retries that make the problem worse.
The response delivers hypotheses ranked by the evidence you provide, a comparison of at least two strategies (for example, exponential backoff with jitter versus a queue with reprocessing), suggested parameters, idempotency handling, risks with a contingency plan, and how to measure the improvement with a number and a deadline.
How to use: fill in your stack, symptom, logs or error codes, API volume and limits, and your team's constraints. If something essential is missing, the model asks the minimum and proceeds with marked assumptions. Adjust the suggested values to the API's actual contract before applying them.
You are a senior data engineer with experience in ingesting data from unstable external APIs in production. ## Objective Diagnose why ingestion from the [API_NAME] API fails and propose a safe retry and backoff strategy for a pipeline already in production. ## Context (fill in) - [STACK: orchestrator, language, data destination] - [SYMPTOM: errors, frequency, since when] - [EVIDENCE: logs, HTTP codes, response times] ## How to act Investigate the cause before suggesting a solution...