If there's a finite list of types, you could use message selectors on your
consumers to partition certain types to certain groups of consumers.  It
won't be as dynamic as message groups are, but if the possible types aren't
dynamic then that doesn't matter anyway.  Just be aware that message
selectors can have a performance impact (which is often negligible but can
be significant), so make sure you measure how much impact this change has
on your performance and adjust accordingly.

Tim

On Thu, Mar 5, 2015 at 7:58 AM, maksimenko <[email protected]>
wrote:

> hi
>
> I have set of messages that are sent to queue. Each message has type
> property which specified how to handle it. I have several consumers which
> process this messages.
>
> I send , say 1000 messages with type A and then 1000 messages with type B.
> If processing messages of type A is time consuming, then all messages with
> type B have to wait a long time when they are start processing.
>
> I wanted to solve this problem with MessageGroups which allow me to start
> consuming messages with type B as soon as they created. But from guide I
> understand that only one consumer is assigned to each message group. Is it
> possible to customize this and allow say 10 consumers consume messages for
> each group?
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/consume-one-MessageGroup-by-several-consumers-tp4692555.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>

Reply via email to