I am building a project in which I need a way to elect a leader between a group of processes. When the leader fails, a new leader must be elected. This must support processes which are in different nodes.
After a couple of web searches I did not found a simple solution for this problem. So I was wondering how people in the Erlang community solve this problem ? This seems to be such a fundamental problem, that there must be some battle tested library or way of solving this.
Let me know how you would do this ?
Thank you !