<div dir="ltr">Hi list!<div><br></div><div>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.</div><div><br></div><div>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 processed downstream.</div><div><br></div><div>Should I use an external application like consul or etcd to implement leader election, or is there an better way via OTP or libraries ?</div><div><br></div><div>It just seems a little "heavy" to use consul or etcd to elect an leader between two application instances.</div><div><br></div><div>Thomas</div><div><br></div><div><br></div><div><br></div><div><br></div></div>