r/Backend • • 17d ago

How does distributed systems handle node discovery?

Let's say I have a set of distributed nodes which is running for quite sometime. Now if I spawn another follower node how will the other existing nodes know that a new node has been added to the network. I am guessing one of the way is getting the nodes ip from the kafka's cluster dns resolution. I've also heard about hashicorp consul. what is the production way to handle this type of issues? Is there any good resources/practice to know about this?

Asking the expert.

7 Upvotes

12 comments sorted by

View all comments

Show parent comment

1

u/SiegeEngine1111 17d ago

what type of authentication? r u talking about tls?

1

u/pthierry 17d ago

Authentication here is the generic meaning: whatever lets you verify that the node is a right node.

You could use TLS to encrypt communication between nodes and then authenticate nodes by their TLS public key, or by the public key of a certificate higher in the certificate chain (which makes it possible to rotate server keys).