activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From artnaseef <>
Subject Re: Destination wildcards or consumer selectors – advice needed
Date Sun, 21 Feb 2016 03:46:28 GMT
For the consumer-specific messages, why not use a queue for each?  That seems
like the more natural approach.

Selectors introduce a few concerns.  First, the processing of each selector
can add a lot of overhead, and there is no optimization; matching a message
to a consumer involves iterating all the consumers and evaluating the
selector of each for a match against the message.  Therefore, you'll find
adding consumers to be an exponential cost, assuming every consumer uses a
unique selector.

There are additional concerns when queues are used with selectors (related
to the page size and repeated attempts to deliver messages with no matching
consumer), but those won't affect a topic-based solution.

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message