Menu

Background Job Queue Retry — Failed Jobs, Exponential Backoff, and DLQ Redrive
📰

Background Job Queue Retry — Failed Jobs, Exponential Backoff, and DLQ Redrive

DEV Community: backend·DaltonReed1289·14 days ago
#LX7lORGq
#devtobackend#devto#dev#queue#subscriber
Long article (1703 words) — no AI summary yet.
Reading 0:00
15s threshold

Use a queue, classify failures before retrying, and make redrive an explicit recovery operation. The durable design is application-owned exponential backoff for transient errors, a dead-letter path for permanent errors, and a database record of every attempt. That separation matters more than the queue brand when one shipment update must reach many subscribers.

Short answer: nack transient failures, stop retrying invalid work, and redrive dead-lettered messages only after the cause is understood. Delayed delivery can schedule the next attempt, but a seven-day delay ceiling means the application must coordinate any longer recovery window. Queue history is not the audit trail; store the retry count and last error yourself.

Infrai fits early in this design as the queue transport when a team wants the capability contract to remain stable while the provider behind it changes.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.