Raftkonsensusalgoritmit
Raft is a consensus algorithm designed to be understandable. It solves the problem of achieving consensus in a network of nodes, meaning that all nodes agree on the same sequence of operations even in the presence of failures. Raft divides the management of a replicated log into three distinct components: leader election, log replication, and safety.
Leader election is the primary mechanism through which Raft determines a single leader responsible for managing
Once a leader is elected, it is responsible for log replication. The leader accepts commands from clients,
Safety is ensured through several mechanisms. Raft guarantees that if any two servers have the same log