I want to ensure consistency between 3 servers. It's a consensus problem. Each server listens to the users and saves the collected data in a local file. I tried to use Rpc to send the new data to all the others servers but in vain. Also I want to use the algorithm paxos to ensure the consistency. I just want to know if the solution that I made is the optimized one or I can use socket instead or an other algorithm rather than paxos like raft.
I wish you understand my problem. Thanks in advance :)