activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From MicAnn <mbr...@axway.com>
Subject Remote/local delivery and ConsumerCount management
Date Fri, 05 Jun 2009 15:51:17 GMT

Parameters:
apache-activemq-5.2.0
two ore more brokers connected by bridge connector.

Actives consumers
------------------
When a first remote consumer works to listen messages from a queue, the
queue is defined on other brokers (if it doesn't exist) and the
ConsumerCount attribute is incremented (visible with JMX console)

For each local consumer, ConsumerCount is also incremented.
Messages sent to this queue are delivered to active consumers in accordance
with the ConsumerCount value.

Stopping consumers
-------------------
When a local consumer stops to work, ConsumerCount is decremented?
When the all remote consumers stop to work the ConsumerCount is not
affected.

Repercussions
-------------
When a remote consumer listen one time and stops, future messages sent to
the queue will be delivered to the remote queue without consumer. 
When all consumers stop (local and remote), message sent to the local queue
will be delivered to the remote queue. 

Suggestion
-----------
When the last queue consumer stops on a broker, an information will be send
to the other brokers to manage the ConsumerCount and do -1. Otherwise, the
delivery of messages is distorted - usage with difficulty or impossible : it
needs to stop remote or local broker to decremented the ConsumerCount
attribute. 
 

 

-- 
View this message in context: http://www.nabble.com/Remote-local-delivery-and-ConsumerCount-management-tp23890813p23890813.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message