[rabbitmq-discuss] revoking or removing queued messages
scott at beamdog.com
Thu Jun 17 19:04:53 BST 2010
I'm pretty sure there is no way to remove a message(besides a full
purge of a queue) since publishing is async so you never really have a
way to refer to that message.
Some times changes your approach can solve the problem though.
I'm not sure what your needs are, but lets assume your are processing
PDF files or something like that.
One approach would be to send a message containing all the text to be
processed as the message, which then the consumer grabs and works
Another approach would be to send a message saying "document X is
ready to be processed", and the consumer then grabs
http://my.pdf.processor.com/documents/X, and does the work.
The second approach lets you respond with a "job canceled" message
when you request the actual document.
On Thu, Jun 17, 2010 at 11:38 AM, Shane <shane at digitalsanctum.com> wrote:
> In our current system, we have a function that essentially revokes a
> unit of work before it's acted on. In RabbitMQ, is there a way to
> revoke or remove a message from a queue assuming it hasn't been acted
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
More information about the rabbitmq-discuss