Replicated state machines using Raft