[rabbitmq-discuss] 'immediate' vs 'mandatory'
Simon MacMullen
simon at rabbitmq.com
Fri Jun 4 16:40:11 BST 2010
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
More information about the rabbitmq-discuss
mailing list