Tim Givois
Tim Givois

Reputation: 2014

RabbitMQ nack-requeue function

Take into account I have a large queue with X messages. Whenever a nack with requeue=True is made, it puts the message on top of X messages and redelivers to the same consumer, doing a bottleneck and not letting the other messages to be processed by the consumer.

Is there a way to put the message on the tail of the queue treating them as new, so if I have X messages, I could process them first before the requeued message?

Upvotes: 2

Views: 792

Answers (1)

Tim Givois
Tim Givois

Reputation: 2014

In this problem, I didn't want to ACK a message if there was an error and then lose it, I wanted to keep track of unprocessed messages.

I realized I could create another queue to save the unprocessed messages there and let the other messages flow!

Upvotes: 0

Related Questions