Search code examples
rabbitmqamqp

RabbitMQ: check if message has been delivered?


With a simple work queue, is is possible to ask the RabbitMQ server if a specific message has already been delivered to a consumer (worker) or if it is still in the queue?


Solution

  • You can't query RabbitMQ about a specific message has been delivered, but if you you need to know if a message has been processed by a consumer you could use an RPC implementation to get a response sent back to the sender once your message has been processed.

    You can find an example on how to implement a RPC solution on RabbitMQ's official tutorials here.