title: RabbitMQ Client connect to several hosts
body: <p>The main goal to have several hosts of RabbiMQ servers (<a href="https://www.rabbitmq.com/clustering.html" rel="nofollow">clustering</a>) 
  Are there any best practices to implement having several RabbitMQ hosts, and reconnect to the next one in case previous connection closed.</p>
  
  <p>Tutorial says that:</p>
  
  <blockquote>
    <p>A client can connect as normal to any node within a cluster. If that
    node should fail, and the rest of the cluster survives, then the
    client should notice the closed connection, and should be able to
    reconnect to some surviving member of the cluster. Generally, it's not
    advisable to bake in node hostnames or IP addresses into client
    applications</p>
  </blockquote>
  
  <p>How it can be implemented from the client side ?</p>