[rabbitmq-discuss] Updating messages on queues

Matthew Sackman matthew at rabbitmq.com
Mon Jul 19 12:12:13 BST 2010


On Mon, Jul 19, 2010 at 04:06:38AM -0700, cbourne wrote:
> > So by this I mean adding some kind of a time field to the header so the
> > consumer can apply a time based filter to the messages. Basically I need a
> > retry queue that allows messages to be re-processed after a pre-defined
> > time if the first attempt failed. Ideally this would also include the
> > number of times to try before failing permanently.

Well, you could always just handle it completely in the consumer - if
the consumer can't process it, republish the message with an update try
count and then ack the original message. Because the publish will go to
the end of the queue, that'll ensure that new messages do get seen and
that a repeatedly failing message doesn't ensure that other messages get
starved of attention.

Matthew


More information about the rabbitmq-discuss mailing list