Skip to main content

Practice · 2 of 2

DLQ promotion rule

CHALLENGE
Difficulty: advanced+25 XP

A job lands in the dead-letter queue when failures reach the threshold. Implement static (bool dead, int failures) OnFailure(int currentFailures, int threshold, int maxAttempts) — increments failures; dead = failures ≥ threshold OR attempts exhausted (maxAttempts), and failures saturate at threshold (never grow past it once dead).

Back to lesson: Practice: Production drills