[rabbitmq-discuss] no error or exception

Simon MacMullen simon at rabbitmq.com
Fri Nov 15 13:37:17 GMT 2013


On 15/11/2013 13:09, PATAR, SAGAR wrote:
> But when we try to post a message it doesn’t throw any exception

That's because publishing is asynchronous. The channel will have closed 
due to the permission error but if you just publish and do nothing else 
your app won't notice.

Ways you could notice:

* Publish in confirm mode and await a basic.ack
* Publish in mandatory mode and await a basic.return
* Publish in a transaction

These all have performance costs (in approximately increasing order).

Cheers, Simon


More information about the rabbitmq-discuss mailing list