I am throwing an AmqpException inside my consumer. I expect the message to return to the queue in FIFO order and be processed in the future.
It seems like Spring AMQP is not returning the message to the queue. But instead, it tries to reprocess the failed messages again and again. This blocks the processing of new messages. Jammers remain in the “unpacked” state forever inside the AMQP console.
Any thoughts?
, rabbitmq/ Spring AMQP; ( - ), , .
... .
, .
-, . defaultRequeueRejected false ( ). AmqpRejectAndDontRequeueException, ( ) .
defaultRequeueRejected
AmqpRejectAndDontRequeueException
; .
, " /" - DLX/DLQ , . , .
, DLQ, . (DLQ), .
, ; .
. .
x-death, , ( - , , ack ).
x-death
, . Interceptor x . http://trippstech.blogspot.com/2016/03/rabbitmq-deadletter-queue-with.html