© Waldemar Quevedo 2018
Waldemar QuevedoPractical NATShttps://doi.org/10.1007/978-1-4842-3570-6_5

5. High Availability with NATS Clustering

Waldemar Quevedo1 
(1)
San Francisco, California, USA
 

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.

The NATS Cluster Network Topology

A group of NATS Servers form a cluster by having ...

Get Practical NATS: From Beginner to Pro now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.