Udo G
Udo G

Reputation: 13121

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?

Upvotes: 1

Views: 7250

Answers (1)

eandersson
eandersson

Reputation: 26362

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.

Upvotes: 2

Related Questions