You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Mark Greene <gr...@gmail.com> on 2011/07/12 20:56:35 UTC
topic message distribution
With AMQ topics, when a message is published and there are multiple
subscribers to the topic, is the message pushed in a serial order or in
parallel to subscribers?
If it's in parallel, does AMQ create a separate thread per topic subscriber?
Thanks in advance,
Mark
Re: topic message distribution
Posted by Mark Greene <gr...@gmail.com>.
Thanks Dejan, That's very helpful!
-Mark
On Wed, Jul 13, 2011 at 3:30 AM, Dejan Bosanac <de...@nighttale.net> wrote:
> Hi Mark,
>
> the message by default is sent in serial order to all available
> subscribers.
> It can be changed by implementing appropriate DispatchPolicy
>
>
> https://fisheye6.atlassian.com/browse/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/policy/DispatchPolicy.java?hb=true
>
> and configuring it later to be used for certain topic(s) (
> http://activemq.apache.org/dispatch-policies.html)
> <
> https://fisheye6.atlassian.com/browse/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/policy/DispatchPolicy.java?hb=true
> >
> Regards
> --
> Dejan Bosanac - http://twitter.com/dejanb
> -----------------
> The experts in open source integration and messaging -
> http://fusesource.com
> ActiveMQ in Action - http://www.manning.com/snyder/
> Blog - http://www.nighttale.net
>
>
> On Tue, Jul 12, 2011 at 8:56 PM, Mark Greene <gr...@gmail.com> wrote:
>
> > With AMQ topics, when a message is published and there are multiple
> > subscribers to the topic, is the message pushed in a serial order or in
> > parallel to subscribers?
> >
> > If it's in parallel, does AMQ create a separate thread per topic
> > subscriber?
> >
> > Thanks in advance,
> > Mark
> >
>
Re: topic message distribution
Posted by Dejan Bosanac <de...@nighttale.net>.
Hi Mark,
the message by default is sent in serial order to all available subscribers.
It can be changed by implementing appropriate DispatchPolicy
https://fisheye6.atlassian.com/browse/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/policy/DispatchPolicy.java?hb=true
and configuring it later to be used for certain topic(s) (
http://activemq.apache.org/dispatch-policies.html)
<https://fisheye6.atlassian.com/browse/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/policy/DispatchPolicy.java?hb=true>
Regards
--
Dejan Bosanac - http://twitter.com/dejanb
-----------------
The experts in open source integration and messaging - http://fusesource.com
ActiveMQ in Action - http://www.manning.com/snyder/
Blog - http://www.nighttale.net
On Tue, Jul 12, 2011 at 8:56 PM, Mark Greene <gr...@gmail.com> wrote:
> With AMQ topics, when a message is published and there are multiple
> subscribers to the topic, is the message pushed in a serial order or in
> parallel to subscribers?
>
> If it's in parallel, does AMQ create a separate thread per topic
> subscriber?
>
> Thanks in advance,
> Mark
>