activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From WhiteSock <>
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
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,
  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
  Is it related to RoundRobbinDispatchPolicy?

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message