Skip to content

How to connect to RabbitMQ cluster? #137

Answered by Zerpet
MerlinFeng asked this question in Q&A
Discussion options

You must be logged in to vote

Hi there 👋 We prefer to use GitHub discussions for questions, and use issues only for feature requests and bug reports.

Regarding your question, this library does not provide a mechanism to automatically pick a server from a list. In order to support clustered RabbitMQ, your application should keep a list of FQDNs or URIs to connect to RabbitMQ; then, your application should try to Dial() or DialTLS() to just one of those URIs. If the client disconnects for any reason, it should pick a different URI to reconnect.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by MerlinFeng
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #136 on November 30, 2022 10:59.