[rabbitmq-discuss] 'immediate' vs 'mandatory'

Oleg Zhurakousky ozhurakousky at vmware.com
Fri Jun 4 16:54:38 BST 2010


Thanks, Simon

So what does 'must be delivered to the consumer means?'
a) handleDelivery(..) was successfully invoked.
b) consumer sent ACK.
c) consumer processes message transactionally and then commits it

Cheers
Oleg
On Jun 4, 2010, at 11:40 AM, Simon MacMullen wrote:

> On 04/06/10 16:17, Oleg Zhurakousky wrote:
>> What is the main difference between the two?
>> 
>> The docs read: If a message is published with the "mandatory" or
>> "immediate" flags set, but cannot be delivered...
>> 
>> Should it read as: "Can not be delivered to the consumer" or "can not
>> be routed to a queue"? Thanks Oleg
> 
> Hi Oleg.
> 
> Mandatory == must be delivered to a queue.
> 
> Immediate == must be delivered to a consumer.
> 
> Note that immediate really means immediate - if it can be delivered to a 
> queue, and a consumer is pulling things from that queue but not quickly 
> enough and messages are backing up in the server, that's not good enough.
> 
> Cheers, Simon
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss



More information about the rabbitmq-discuss mailing list