activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Tully <gary.tu...@gmail.com>
Subject Re: Default Dispatch Policy and Pending message Limit Strategy
Date Tue, 23 Feb 2010 12:38:31 GMT
The code is the best reference for defaults as they can change across
versions.

If want specific behavior, it is safest to provide explicit configuration
for your broker via the xml configuration or programatically when you create
your broker.

For the default dispatch policy, see: line 68 of
activemq-core/src/main/java/org/apache/activemq/broker/region/Topic.java<http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/Topic.java?view=markup>

There is no default pending message limit strategy, the default is not to
limit pending messages.
see: line 57 of
activemq-core/src/main/java/org/apache/activemq/broker/region/TopicSubscription.java<http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/TopicSubscription.java?view=markup>

On 23 February 2010 08:05, Sebastian Rodriguez <srodrigu85@gmail.com> wrote:

> Dear all,
> I'm wondering what are the defaults for these two configuration parameters.
> I know the options for Dispatch Policy are:
>
>   - SimpleDispatchPolicy: Simple dispatch policy that sends a message to
>   every subscription that matches the message.
>   - StrictOrderDispatchPolicy: Dispatch policy that causes every
>   subscription to see messages in the same order.
>   - RoundRobinDispatchPolicy: To load balance low numbers of messages more
>   fairly (dispatch messages fairly at the expense of some performance.)
>
> And for the Pending message Limit Strategy:
>
>   - ConstantPendingMessageLimitStrategy: maximum pending messages that will
>   be held in the topic / queue
>   - PrefetchRatePendingMessageLimitStrategy: sets the maximum pending
>   message limit value to be a multiplier of the prefetch limit of the
>   subscription.
>
> I believe the defaults are the first on the list, but it would be nice to
> have confirmation. It's a shame the documentation on the matter are quite
> low (some wiki page for the round robin dispatch policy
> Here<http://activemq.apache.org/dispatch-policies.html>
>  <http://activemq.apache.org/dispatch-policies.html>and some documents on
> the distpatch policy
> Here<http://activemq.apache.org/slow-consumer-handling.html>
> .
> Can someone confirm me the default values? thank you very much,
> --
> Sebastien Rodriguez
>



-- 
http://blog.garytully.com

Open Source Integration
http://fusesource.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message