[rabbitmq-discuss] Modifying a message in the queue

Alexis Richardson alexis at rabbitmq.com
Wed Aug 11 20:38:04 BST 2010


Unfortunately it is not possible to do that without removing a message
from the queue, and then republishing it.

The reason for this, as Andreas hints, is that 'update in place' is a
database type operation.  It's tempting to think of messaging as being
about the manipulation of resources using, among other things,
idempotent operations on data that has a persistent identity (eg
primary key).  But, we think messaging is much more about managing
'streams' or if you prefer, 'flows' of data, where managing timelike
behaviour is an implicit concern.

Attempts have been made to reconcile these views but it's *hard* to do
so in a way that preserves decent performance and scalability.  In
some ways the new breed of 'nosql' stores are attempts to do so, by
imposing less structure on stored data so that it can be viewed in a
'streamlike' or at least 'spacelike' way.  See Redis queues for

As Andreas suggests, spelling out your use case would help members of
the list to suggest a way forward for you.

I hope this helps.


On Wed, Aug 11, 2010 at 7:36 PM, Andreas Jung <lists at zopyx.com> wrote:
> Hash: SHA1
> archana v wrote:
>> Hi All,
>> I am a newbie to rabbitMQ. Is it possible to modify a message in the
>> queue with a java client.if yes,please let me know how.
>> Thanks in advance.
> A queue is not a database.
> What do you want to modify and why? Usecase?
> - -aj
> Version: GnuPG v1.4.10 (Darwin)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
> iEYEARECAAYFAkxi7a0ACgkQCJIWIbr9KYxL1QCgl53v0F/DH4bAybq3+tdoHhf0
> z50AnA71Qfqd8i1lqncFdv7M/AsRHWHq
> =nUM0
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss

More information about the rabbitmq-discuss mailing list