An implementation of the Raft consensus algorithm in Scala