[erlang-questions] leader election ?
Fri Oct 19 06:38:55 CEST 2018
I am running 2 instances of an application ( seperate datacenters), both
receives indentical data on TCP sockets, but only one of the applications
should process it further downstream.
Any suggestions to what is the "simplest" way to have a kind of leader
election ? Both applications must be running, but must have knowledge about
their own role (active or passive) in order to decide if the data should be
Should I use an external application like consul or etcd to implement
leader election, or is there an better way via OTP or libraries ?
It just seems a little "heavy" to use consul or etcd to elect an leader
between two application instances.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions