RabbitMQ and Node.js how to handle a fail-safe script?

I use RabbitMQ (cluster) and connect to it using the Node.js client (node ​​-amqp - https://github.com/postwait/node-amqp ). The RabbitMQ docs indicate that processing the script for switching to another resource (cluster node failure) should be performed by the client, which means that the client must detect a failure and connect to another node in the cluster. What is the easiest way to support this failure balancing. Does the node-amqp client support this? Any example or solution would be appreciated.

Thank.

+4
source share
1 answer

node -amqp . , : ( , , , , ).

0

Source: https://habr.com/ru/post/1545882/


All Articles