[rabbitmq-discuss] Check Queues Exist on Publish (and Read?)

Patrick Long pat at munkiisoft.com
Wed May 28 10:13:49 BST 2014


Thanks Matthias


On 28 May 2014 10:10, Matthias Radestock <matthias at rabbitmq.com> wrote:

> Patrick,
>
> On 27/05/14 15:09, Patrick Long wrote:
>
>>   I am mostly concerned with BasicGet not causing a log entry.If the
>> queue is not there I don't care just don't error.
>>
>
> There is no way to do that in AMQP.
>
>  Are you guys saying I should always check the queue exist
>>
>
> That won't help since a passive queue.declare will *still* result in an
> error and log entry when the queue doesn't exist.
>
>  The change should be passing true for NoWait?
>>
>
> What Simon suggested is that you make sure that the queue *does* exist
> prior to the basic.get by (actively) declaring it with queue.declare. The
> nowait flag is only there to make that more efficient, by turning the
> command into an asynchronous request.
>
>  It does not look like the RabbitMQ .NET Client Library supports passing
>> nowait to QueueDeclare.
>>
>
> Correct. You'd have to drop to the internal API by casting to
> RabbitMQ.Client.Impl.IFullModel and invoking _Private_QueueDeclare(...).
>
> Matthias.
>



-- 
Patrick Long - Munkiisoft Ltd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20140528/32bef529/attachment.html>


More information about the rabbitmq-discuss mailing list