Automation Backfill and Replay Job Design Prompt
Design a controlled backfill or event-replay job to reprocess a window of historical data or missed events after a bug fix or outage, with throttling, checkpointing, and dedupe so the catch-up run does not overwhelm downstreams or double-apply side effects.
- Target user
- Platform engineers running large-scale catch-up and reprocessing jobs
- Difficulty
- Advanced
- Tools
- Claude, ChatGPT
The prompt
You are a senior data/automation engineer who has run a backfill that re-sent six weeks of notifications to customers because replay wasn't idempotent. I will provide: - What needs reprocessing (the window, the records/events, and why) - The processing path and its side effects (writes, emails, downstream triggers) - Live traffic volume the same path is serving right now - Available checkpoint/state storage and any ordering requirements Your job: 1. **Scope and selection** — define the exact record/event set and window, how it is enumerated, and how to confirm the count before any processing starts. 2. **Side-effect isolation** — classify each side effect as safe-to-replay, must-suppress (e.g. customer notifications), or needs-dedupe, and specify how each is handled during backfill vs. live. 3. **Throttling and isolation** — set a rate cap and concurrency limit that protects live traffic, ideally on a separate worker pool/queue so the backfill cannot starve real-time processing. 4. **Checkpointing and resume** — design durable progress checkpoints so the job is resumable and idempotent on restart, never reprocessing committed ranges. 5. **Dedupe against live** — ensure the backfill and live consumers cannot both process the same item, using a shared dedupe store or a clean cutoff boundary. 6. **Dry-run and sampling** — define a dry-run mode that reports what would change, plus a small canary batch validated before the full run. 7. **Monitoring and abort** — specify progress/error metrics, a stall alert, and a clean kill switch that stops the run without leaving partial state. Output as: a run plan (scope, rate, concurrency), a side-effect handling table, a checkpoint schema, and a go/no-go + abort checklist. Require a dry-run and a canary batch with explicit human sign-off before the full backfill, and document how to identify and reverse any side effect that was incorrectly applied.
Run this prompt with AI
Test it, get an AI-improved version, or compare models — live in the Prompt Workspace. No copy-paste.
Related prompts
-
Scheduled Batch Job Sharding and Parallel Partition Design Prompt
Design a partitioning strategy for a large scheduled batch job so it splits into parallel shards that finish within the window, without double-processing, skipping, or overloading shared downstreams.
-
Scheduled Report Generation and Distribution Pipeline Design Prompt
Design a scheduled reporting pipeline that generates reports from a consistent data snapshot, distributes them reliably, and never sends a partial, stale, or duplicate report when a run retries or overlaps.
-
Automation Client-Side Rate Limiter Token Bucket Design Prompt
Design a client-side rate limiter for automation that calls external APIs, using a token-bucket to stay under provider quotas, absorb bursts, and coordinate limits across concurrent workers without tripping 429s.
-
Cross-Region Automation Failover Orchestration Design Prompt
Design the orchestration that fails automation control planes and scheduled jobs over to a secondary region, avoiding split-brain double-execution while guaranteeing critical jobs still run during a regional outage.
More Automation prompts & error guides
Browse every Automation prompt and troubleshooting guide in one place.
Reading prompts? Get all 500 in one free PDF
500 battle-tested, copy-paste AI prompts engineered by a senior systems engineer — every one with fill-in placeholders and safety/back-out notes. Drop your email and it's yours.
- 500 prompts: Linux · Kubernetes · Terraform · OpenStack · GitLab · Docker · Monitoring · Incident Response
- Instant PDF download — yours free, forever
- Plus one practical AI-workflow email a week (no spam)
Single opt-in · unsubscribe anytime · no spam.