You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's no explicit support in amqplib for failover, but it doesn't prevent you using RabbitMQ's clustering and mirrored queues (http://www.rabbitmq.com/ha.html) and so on, either.
In general, there's no one recommended approach to failover.
If you want to do it in Node.JS code a simple way would be to keep a list of nodes, and when your connection is dropped, try to connect to the next node in the list.
People sometimes use HAProxy to direct connections to "live" nodes, in which case all you need to do in your app would be to attempt to reconnect (and possibly re-assert queues and so on).
Hello, I would like to know if it possible to include an example that demonstrates a failover scenario between multiple Message Queues.
Or someone write some comments on how can this be done?
The text was updated successfully, but these errors were encountered: