[rabbitmq-discuss] RabbitMQ 3.2 and federated queues
Simon MacMullen
simon at rabbitmq.com
Fri Sep 27 15:24:49 BST 2013
On 27/09/2013 2:16PM, Mariusz Gronczewski wrote:
> I've tested it for a bit and have another question: Is federating
> autogenerated (amq.*) queues planned (on current nightly trying to
> federate those returns "queue name contains reserved prefix amq") or it
> is something that should not be used at all ?
Hmm. That's kinda problematic - you shouldn't be able to declare your
own named queue in the server-generated namespace. But the downstream
federated queue is just another AMQP client from the perspective of the
upstream, so it can't violate that requirement.
Not sure if that's the right thing to do, but that's how it is now. Hmm.
Of course, you could have your client generate a reply queue name based
on a UUID or something, that would get round the problem.
> I'm trying to fix mcollective over federated servers, the original code
> used very simple method of sending request to exchange with 'reply-to'
> header containing name of autogenerated queue, and server then sent
> reply to that address. Obviously that didnt work over federation
Interesting. I hadn't really thought people would do RPC over federation
but I think your plan should work.
> My first try was just replacing reply queue with direct exchange that
> client subscribed to to get replies and it worked partially, over
> federation when client did simple
> "subscribe(reply_exchange);publish(request_exchange), but sometimes
> messages were "lost" probably because server sent reply too fast (before
> federation managed to subscribe to remote exchange.
Yeah, I think that analysis is right.
Cheers, Simon
--
Simon MacMullen
RabbitMQ, Pivotal
More information about the rabbitmq-discuss
mailing list