golevelup/nestjs-rabbitmq RabbitMQModule initializing with a cluster of 3 rabbitmq servers #745
Unanswered
satishkotturi
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
is there a way to initialize the RabbigMQModule to connect to a cluster of 3 rabbitmq server in round robin if any one of the server goes down.
example below:
RabbitMQModule.forRoot(RabbitMQModule, {
uri: [
amqp://${config.user}:${config.password}@${config.**hostOne**}:${configuration().amqp.port}
,amqp://${config.user}:${config.password}@${config.**hostTwo**}:${configuration().amqp.port}
,amqp://${config.user}:${config.password}@${config.**hostThree**}:${configuration().amqp.port}
],
],
});
The above initialization is failing if the hostOne is down.
Note: The same initialization is working if I configured only one server( for the uri param as a string )and it is up and running.
Beta Was this translation helpful? Give feedback.
All reactions