[rabbitmq-discuss] Updating messages on queues
carl.bourne at intellect.co.uk
Mon Jul 19 12:06:38 BST 2010
Matthew Sackman-3 wrote:
> On Mon, Jul 19, 2010 at 03:21:54AM -0700, cbourne wrote:
>> Does anybody know if it's possible to update messages on a queue without
>> actually removing them.
> Yes, I know. And no, there are no side-effect-free operations on
> messages in a queue.O
>> My use case requires a message to be removed from a
>> queue, only if the consumer is able to successfully process the message
>> perform an action contained therein. If the action fails then the message
>> remains on the queue ready for a scheduled retry.
> You simply want to have the consumers delay acknowledging the message
> until after they've successfully processed the message. If they can't
> process the message then presumably some error has occurred, which
> you should make cause the client to close the channel on which it
> received the message. That will cause the message to be requeued.
>> I was thinking a message
>> time value could be changed so consumers only process messages that are
>> within a certain time range. If there's a better way to do this, any
>> would be welcome.
>> I'm afraid I don't really understand this. Can you explain this some
> 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.
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
View this message in context: http://old.nabble.com/Updating-messages-on-queues-tp29203202p29203456.html
Sent from the RabbitMQ mailing list archive at Nabble.com.
More information about the rabbitmq-discuss