[rabbitmq-discuss] private exchange name generation
Matwey V. Kornilov
matwey.kornilov at gmail.com
Mon Apr 9 16:59:25 BST 2012
It is hard to avoid collisions. If I create private exchange and its names
and arguments coincide with such of other one, then there is no way to
detect the collision. If type or args are different then I can detect it and
try to regenerate the name.
But the first case is critical one and can lead to hard-detectable issues.
Just imagine, that my broker has one exchange, but my applications interpret
it as two different private exchanges.
Matthew Sackman wrote:
> On Mon, Apr 09, 2012 at 01:24:20PM +0400, Matwey V. Kornilov wrote:
>> I am going to use some exchange-to-exchange bindings. And I need private
>> exchange with name auto-generated. Can RabbitMQ handle this for me? or
>> should I generate exchange name by myself.
> Sadly, whilst the "empty queue name" does result in creation of a new
> queue with a random name (or refers to the most recently declared
> queue), the "empty exchange name" refers to the "default exchange". Yay
> for consistency.
> You'll need to do a guid generation step in the client I'm afraid to
> name the exchange.
More information about the rabbitmq-discuss