activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From WhiteSock <whitesock1...@hotmail.com>
Subject Question about RoundRobbinDispatchPolicy
Date Thu, 27 Nov 2008 01:58:18 GMT

1 Start consumer A which subscribes Queue1, it receives the message without
delay.
2 Start consumer B which subscribes Queue1, it delays 5 seconds after
receiving every messages(sleep 5 seconds in onMessage method).
3 Start producer C and send a message(message0, message1, message2,
message3...) to Queue1 every 1 second.
4 consumer A got message0, message2, message4, message6, message8,
message10...
  consumer B got message1, message3, message5...
  That is to say consumer A got messages with even id, consumer B got
messages with odd id.
  Since consumer B is relatively slow, there are some messages with odd id
accumulated in Queue1.

5 consumer A is relatively fast, why not let consumer A consume more
messages?
  Is it related to RoundRobbinDispatchPolicy?

Cheers.
-- 
View this message in context: http://www.nabble.com/Question-about-RoundRobbinDispatchPolicy-tp20712395p20712395.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message