[rabbitmq-discuss] Does RabbitMQ has the Message Grouping feature?
happy.ap at gmail.com
Wed Mar 7 13:50:44 GMT 2012
Does RabbitMQ supports the Message Grouping feature similar
to the one that is available in HornetQ or ActiveMQ?
Message groups are sets of messages that have the following characteristics:
. Messages in a message group share the same group id, i.e. they
have same group identifier property (JMSXGroupID for JMS, _HQ_GROUP_ID for
HornetQ Core API).
. Messages in a message group are always consumed by the same
consumer, even if there are many consumers on a queue. They pin all messages
with the same group id to the same consumer. If that consumer closes another
consumer is chosen and will receive all messages with the same group id.
Message groups are useful when you want all messages for a certain value of
the property to be processed serially by the same consumer. An example might
be orders for a certain stock. You may want orders for any particular stock
to be processed serially by the same consumer. To do this you can create a
pool of consumers (perhaps one for each stock, but less will work too), then
set the stock name as the value of the _HQ_GROUP_ID property.
With best regards,
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rabbitmq-discuss