I am trying to connect to RabbitMQ cluster using nodejs library amqplib
I cannot find any information on connection string. I am trying var
amqp_url =
["amqp://admin:[email protected]:5672/vhost_test","amqp://admin:[email protected]:5672/vhost_test","amqp://admin:[email protected]:5672/vhost_test"];
is there any other library supports cluster?
What version are you use ?
If you are using version
0.5.0or earlier, you can use this configuration:otherwise if it's a version higher than 0.5.0, I think amqplib doesn't take into account this ability to specify hosts anymore. In fact, it should do
and behind it, RabbitMQ provides the other urls of the nodes during the connection.