Servers in distributed systems need to agree with each other on their state. You could use the Raft Consensus Algorithm to build reliable distributed systems. Google does! This talk covers how Raft works, how to implement a synchronous algorithm in asynchronous Node without blocking the event...