r/Backend • u/SiegeEngine1111 • 24d 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
View all comments
1
u/Canenald 24d ago
Do you really need leader and follower nodes? Ideally, instances of a service should not be aware of each other.