[rabbitmq-discuss] Consumer Tags - use case?

Matthias Radestock matthias at lshift.net
Sat Sep 20 19:39:31 BST 2008


Ben Hood wrote:
> On Sat, Sep 20, 2008 at 6:15 PM, anders conbere <aconbere at gmail.com> wrote:
>> What is the use case for assigning ConsumerTags? It doesn't seem like
>> attaching them yourself doesn't really buy you any functionality.
> I haven't come across a use case for this myself, but it does allow
> you to use a well known name if you can be sure not to re-use it in
> the same connection. I guess you could just send off the consume
> command and just ignore the ack if you were sure that the subscription
> was definitely going to suceed. Saves you a line of code - which may
> appeal to the effici-o-nados out there :-)
> Any other takers?

You could encode some immutable per-consumer data in the tag, thus 
offloading state from the client to the server. That's just a hack 
though, and I am sure it wasn't the motivation for making the consumer 
tag client-selectable. Is there perhaps some JMSism that requires this?


More information about the rabbitmq-discuss mailing list