-routes
option specifies a list of nats URLs where the server will attempt to connect to other servers. These URLs define the cluster ports enabled on the cluster peers.nats sub
is now aware of 3 possible servers, 'A' (specified when we started the tool) and 'B' and 'C' learned from the cluster gossip.CTRL+C
to the terminal on 'A' and observe that either 'B' or 'C' reports that a new client connected. That is our nats sub
client.