You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by ferez <fa...@yahoo.com> on 2019/10/17 12:57:54 UTC

message ordering in a queue with consumers using selectors

Hi

I got a question about message ordering in a queue with two consumers using
selectors to filter messages. Suppose producer P sends a message with
selector “region=A” (message A) and another one with “region=B” (message B)
to the queue. Now, consumer with selector “region=B” (consB) is registered
and ready to get the message B but there is no consumer for message A at the
moment. What happens here? Broker delivers message B to consB or it has to
wait until message A gets consumed or expired as message A is the first
message in queue? In other words does queue delivers the messages from the
first one or it can deliver a message whenever an appropriate consumer is
present regardless of message arrival to the queue?

Thanks,
Ferez




--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html