DLQ and Retry - Middle¶
Non-blocking retry publishes failures to delayed retry topics, freeing the main consumer.
flowchart TD
Consume --> Classify{Failure type}
Classify -->|transient and budget remains| Retry[Retry topic with backoff and jitter]
Classify -->|permanent or exhausted| DLQ
Carry original topic/partition/offset, attempt count, error class, and next-attempt time. Make effects idempotent because republishing changes offsets and can reorder a key. Test yourself¶
- What metadata supports diagnosis?
- Why add jitter?
- How can retry topics alter order? Continue to
senior.md.