Queue backpressure on ESP outage
Why it matters
During an ESP outage, a queue worker without backpressure configuration becomes a thundering herd: all failed jobs retry immediately at full concurrency, exhausting the ESP's connection limit, burning through retry budget, and degrading IP reputation simultaneously. CWE-400 (uncontrolled resource consumption) and CWE-770 (allocation without limits) both apply. The damage compounds: by the time the ESP recovers, the IP may have accumulated enough connection-abuse signals to land in spam. Exponential backoff and a concurrency cap are not optional niceties — they are what prevents a 30-minute outage from becoming a 3-day reputation recovery.
Severity rationale
High because a worker with no backpressure configuration converts a temporary ESP outage into a thundering-herd attack on the ESP that can permanently damage IP reputation.
Remediation
Configure exponential backoff and a concurrency cap in your queue worker file (e.g., src/workers/email.worker.ts):
const worker = new Worker('email', processJob, {
connection,
concurrency: 10,
limiter: { max: 100, duration: 60_000 } // 100 sends/minute
})
const defaultJobOptions: JobsOptions = {
attempts: 5,
backoff: { type: 'exponential', delay: 2000 }
}
Linear retry and full-concurrency defaults both fail this check. Quote the exact backoff type and delay values when reporting — "backoff configured" without specifics is not sufficient.
DetectionPro
The detection method for this pattern is part of AuditBuffet Pro.
The full method (what to look for, pass and fail conditions, and how results get reported) ships inside the Operational Resilience (Email) Audit. The pattern definition, severity rationale, and remediation remain openly licensed under CC-BY-4.0.
External references
- cwe · CWE-400 — Uncontrolled Resource Consumption — queue retries at full concurrency exhausting ESP connections and rate limits
- cwe · CWE-770 — Allocation of Resources Without Limits or Throttling — no concurrency cap or backoff on ESP retry
- iso-25010:2011 · reliability.fault-tolerance — Reliability / Fault Tolerance — backpressure prevents thundering herd during ESP outage
Taxons
History
- 2026-04-18·v1.0.0·Initial import from operational-resilience-email·automated