[How to] Reject a message for DLQ #518
Replies: 1 comment 2 replies
-
Hi Vítor, Thanks for your question. You're absolutely right that in certain scenarios—where a message is known to be invalid or cannot be processed—it's desirable to reject it and have it sent directly to the DLQ for analysis. In our implementation, the Reject method maps to the AMQP Modify outcome (with deliveryFailed = true and undeliverableHere = false), which results in the message being requeued for redelivery. This behavior is intended to support cases where the failure might be transient or retryable. You can achieve the desired reject-to-DLQ behavior by configuring the address with the I hope that helps, |
Beta Was this translation helpful? Give feedback.
-
Hi,
I was looking into the
Reject
method that is available for the Consumers and noticed that it calls theModify
on the underlyingReceiverLink
and was wondering why this is the behavior that is enforced for a Reject when you can effectivelyReject
message and it gets sent to the DLQ.This is helpful for scenarios where you consumed a message and you know that can't/won't do anything with it and you want to reject it but leave it in the DLQ for later analysis.
Best Regards,
Vítor Moreira
Beta Was this translation helpful? Give feedback.
All reactions