[rabbitmq-discuss] 'immediate' vs 'mandatory'
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
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.
More information about the rabbitmq-discuss