Search code examples
rabbitmqamqp

Is there any way to tell rabbitMQ resend an unacknowledged message to a worker?


Hi there i have a rabbitMQ queue and just one worker to handle queued messages. I want to know is there any way to tell rabbitMQ if a message is unacknowledged send it again to worker periodically.

Very thanks in advance.


Solution

  • RabbitMQ will consider a message delivered and not yet acknowledged as being consumed. You cannot enforce it to be re-delivered as long as the consumer which fetched it does not close the channel or reject the message via the basic.reject AMQP method.

    You can read more about publish/delivery confirmation in the documentation.