activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dimitry12 <dimi...@pletnikov.com>
Subject Request for clarification: strictOrderDispatch="true" vs Exclusive Consumers - for queues
Date Wed, 11 Dec 2013 17:29:30 GMT
Hello! I'd like to confirm my understanding of dispatch policies in ActiveMQ.

When we deal with *queues* and have strictOrderDispatch="true" set in
policyEntry - then ActiveMQ ensures that all messages are processed strictly
in order. If there are multiple consumers then:
- ActiveMQ will feed #prefetch-limit messages to the first consumer
- wait until this consumer acknowledges/processes all prefetched messages
- after that: feed messages to the next consumer
- wait.. repeat..
Is the above description generally correct?

If we deal with queues and have an exclusive consumer, then (ignoring
priorities for now) ActiveMQ feeds all messages to this consumer and all
other consumers get nothing. Thus effectively messages are processed
strictly in order.

My understanding is: for queues both strictOrderDispatch and exclusive
consumer produce the same effect = messages are processed strictly in order.
Please, correct me if I'm wrong.

Thanks!



--
View this message in context: http://activemq.2283324.n4.nabble.com/Request-for-clarification-strictOrderDispatch-true-vs-Exclusive-Consumers-for-queues-tp4675408.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message