[rabbitmq-discuss] question on message delivery

Matthew Sackman matthew at rabbitmq.com
Wed Sep 29 15:59:57 BST 2010


On Wed, Sep 29, 2010 at 09:56:19AM -0500, Jon Brisbin wrote:
> ...and assuming three consumers, can I rely on data from KEY2 to arrive after any possible data for KEY1 in each consumer? In other words, on my consumers, I will see this:
> 
> Consumer 1: KEY1    Consumer 2: KEY1    Consumer 3: KEY1
> Consumer 1: KEY2    Consumer 2: KEY2    Consumer 3: KEY2
> 
> and NOT:
> 
> Consumer 1: KEY1    Consumer 2: KEY2    Consumer 3: KEY2
> Consumer 1: KEY2    Consumer 2: KEY1    Consumer 3: KEY1

Sort of. That assumes the consumers work at the same rate. Other valid
combinations would include

Consmuer 1: KEY 1    Consumer 2:         Consumer 3:
Consmuer 1: KEY 1
Consmuer 1: KEY 1
Consmuer 1: KEY 2
Consmuer 1: KEY 2
Consmuer 1: KEY 2

Consumer 1: KEY 1
Consumer 1: KEY 1
Consumer 1: KEY 1
Consmuer 1: KEY 2    Consumer 2: KEY 2   Consumer 3: KEY 2

and so forth.

Matthew


More information about the rabbitmq-discuss mailing list