RabbitMQ Message Queue Exists or Not?

Don't bother checking. Queue. Declare is an idempotent operation.

So, if you run it once, twice, N times, the result will still be the same. If you want to ensure that the queue exists, just declare it before using it. Make sure you declare it with the same durability, exclusivity, auto-deleted-ness every time, otherwise you'll get an exception.

If you actually do need to check if a queue exists (you shouldn't normally need to), do a passive declare of the queue. That operation succeeds if the queue exists, or fails in an error if it doesn't.

Can you please Mention the Syntax for declaring the queue passively in c# api – Jigar Sheth Aug 11 '10 at 11:15 Use IModel. QueueDeclare and set passive to true. Rabbitmq.com/releases/rabbitmq-dotnet-client/v1.8.1/… – scvalex Aug 11 '10 at 11:20 I did declare the queue before using it..worked fine..thanks – Jigar Sheth Aug 12 '10 at 5:29.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions