Design Dead-Letter Handling and Replay for Failed Async Jobs

Last updated: November 29, 2026

Quick Overview

Design how a shared background job platform at Meta handles jobs that keep failing: capturing them in a dead-letter queue with diagnostics, alerting owners, and letting engineers safely inspect, fix, and replay them.

Meta
System Design
Software Engineer
Meta
November 29, 2026
Software Engineer
Phone Screen
System Design
Easy

0

0

0 solved


Design how a shared background job platform at Meta handles jobs that keep failing: capturing them in a dead-letter queue with diagnostics, alerting owners, and letting engineers safely inspect, fix, and replay them.

This shows up in Meta screens about reliability of async infrastructure, where retries alone can loop forever or silently drop work. The interviewer checks retry policy design, what metadata to capture, safe replay with rate limits, and avoiding replay of jobs that are no longer valid.

What the Interviewer Expects
  • Define retry policy and when a job becomes dead-lettered
  • Store failure diagnostics with the job
  • Alert owners based on dead-letter rate
  • Provide replay tooling with filters and rate limits
  • Handle data retention and privacy for stored payloads
Key Topics to Cover
retries with backoff
dead-letter queue
error classification
replay tooling
retention
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
  • How do you tell transient errors from permanent ones?
  • What if replaying 2 million jobs would overload a downstream service?
  • How do you avoid replaying a job for a user who has since deleted their account?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements
  • Jobs that fail are retried with exponential backoff up to N attempts (configurable per topic).
  • Permanent errors (validation failure, missing entity) skip remaining retries.
  • After that, the job m...
High-Level Design

Workers report results to the queue service. On failure, the service records attempt, error_class, error_message, stack_hash, worker_version, and schedules a retry with delay $base \cdot 2^{...


Submit Your Answer
Markdown supported