Linked Questions

Popular Questions

I am setting up a new RabbitMQ message broker, at certain point I want to drain stop RabbitMQ, meaning it should stop receiving messages but the existing messages should be allowed to process by consumers.

I am using RabbitMQ version 3.7.3, I tried with policies

    max-length-bytes:1
    overflow: reject-publish 

But this removes existing messages from the queue when applied, also I found that once policy applied I have removed and again I have created same then it works as expected.

I read https://www.rabbitmq.com/maxlength.html but no success.

I read many question, but I don't think they expect same behaviour.

Thanks in advance for any help.

Related Questions