Define The Limit And Test Boundary
Record the provider, endpoint, account, credential scope, documented limits, and other workers sharing that quota. Distinguish a per-account limit from an endpoint or application limit. Specify a small input set, expected destination records, maximum test duration, and a stop owner.
Inject responses through an isolated test server or approved sandbox. Do not deliberately overload a production API to trigger throttling. Retain response timing and synthetic record identifiers; exclude credentials and customer content from diagnostic evidence.
Use A Recovery Acceptance Table
Record observed timestamps and results beside each row. These are proposed acceptance criteria, not universal provider requirements.
| Simulation | Acceptance Evidence |
|---|---|
| 429 With A Wait | No affected request starts before the valid Retry-After time. Pending records and the next eligible attempt remain visible. |
| Missing Or Invalid Wait | The documented fallback increases delays within a ceiling, adds bounded random variation, and stops at the agreed attempt or elapsed-time budget. |
| Two Workers, One Quota | Both workers respect the shared pause. Their combined request rate stays within the configured limit when work resumes. |
| Worker Restart | Saved progress and the next eligible time survive restart. Restarting does not reset the retry budget or skip uncommitted records. |
| Recovery Or Exhaustion | Recovered records reconcile by source identifier. Exhausted work remains visible with an owner and no automatic retry loop. |
Check The Waiting Rules
HTTP 429 indicates excessive requests and may include Retry-After. HTTP defines that header as either a delay in seconds or an HTTP date. Test both forms, including clock skew, plus absent and malformed values. A local backoff ceiling must not shorten a longer valid provider wait; defer the work if that wait exceeds the test window.
Follow the actual provider’s instructions. For example, GitHub documents Retry-After, a separate rate-limit reset time when remaining quota is zero, and bounded exponential waiting for repeated secondary-limit failures. Do not copy its timings into another provider’s contract.
For the proposed simulation, coordinate all workers using the same quota and record attempt count, last error, next eligible time, queue age, and current owner. Keep authentication failures separate from throttling; repeatedly retrying invalid credentials cannot repair access.
Prove Recovery At The Destination
Resume at a controlled pace and reconcile each synthetic source identifier with a saved destination record. Count completed, pending, and explicitly excluded items separately. Advance progress only after the required destination work is confirmed. A falling queue count alone cannot prove delivery.
If a write times out with an unknown result, inspect the destination or use the provider’s documented idempotency mechanism before repeating it. Do not assume a generic retry makes a write safe. Stop and assign an exception when the outcome cannot be established.
Twenty Records Behind A Shared Pause
Hypothetically, two workers share one quota and 20 synthetic records await import. A simulated 429 arrives at 10:00:00 with Retry-After: 60. Neither worker sends an affected request before 10:01:00. At the test cutoff, 18 distinct records are saved and two remain assigned exceptions: 20 = 18 + 2. A repeated delivery of one saved source identifier creates no extra record. The evaluator records partial recovery, not a complete pass.
Your Action Checklist
- Simulate throttling without loading the live provider.
- Verify shared waiting and persistent retry budgets.
- Inspect destination records and unresolved exceptions.
- Keep recovery limits specific to the provider.
Questions Teams Ask
Does An Empty Queue Prove Recovery?
No. Reconcile the original input set with saved destination records and documented exceptions. Dropped work can make a queue empty without completing anything.
Sources And Further Reading
Put The Guide To Work.
Bring a fictional acceptance table to a Sounding audit discussion to scope provider limits, recovery evidence, and ownership of failed imports.
Scope Your Recovery Evaluation