asdbabil
asdbabil

Reputation: 91

Rabbitmq messages not dead-lettered per policy

My setup is as follows:

Based on the policy, the queue shouldn't hold more than 10 messages and any messages above the length limit should be dropped and dead-lettered into DLX. However the policy seems to be ignored because not a single message gets into the DLQ. The same thing happens when I use message-ttl or max-length-bytes

I've tried to manually publish a message to the DLQ and it was successfully received and consumed.

I'm hoping someone has run into a similar issue or can tell if I'm doing something wrong based on the above.

Upvotes: 0

Views: 67

Answers (1)

asdbabil
asdbabil

Reputation: 91

I've figured out the issue and it was due to how I had created MainQ originally. I Recreated it with the correct configuration and started receiving messages.

Upvotes: 0

Related Questions