[rabbitmq-discuss] Java Client and Admin

Michael Klishin mklishin at gopivotal.com
Fri Sep 13 16:43:07 BST 2013


Michael Oullion:

> We have two questions about the Java API :
> 	• We want to check if a specific policy exist and, if necessary create it, and assign it to the right queue.
> Is there a way to do this with the Java client ?

RabbitMQ Java client is AMQP 0-9-1, HTTP API currently does not have a Java client
(at least the official one).

> 
> 	• We observe , with a mirrored queue, that if we are not connected to the Master Node ( aka the node which hosted the queue), We have less performance on consuming messages.
> Is it normal? (queue mirrored on 2 node, queue persistent and messages persistent)

Yes, because then the node that your consumer is connected to has to request messages
from the master. Intra-cluster communication takes some time.

> If yes, we want to get the master node of the queue to connect on it.
> Is there a way to get this information with the java client api?

HTTP API provides the information you are looking for.

/api/queues/{vhost}/{queue} should contain "node" key that indicates
which node is master.

MK



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 495 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20130913/873c234e/attachment.pgp>


More information about the rabbitmq-discuss mailing list