NATS features a clustering mode that helps improve the reliability of the service by making it more tolerant to server failures. If the server that a client is connected to fails for some reason or goes away, a cluster-aware NATS client can then reconnect to any other available server in the cluster.
In this chapter, we take a look at few examples of how to set up a cluster in different scenarios and share considerations on how to make the best use of the clustering mode from NATS.