Distributed system based on Raft algorithm C++ implementation of a Raft algorithm for a fault-tolerant distributed system