← All projects

Raft — A Distributed Consensus Algorithm

Implemented the Raft consensus algorithm in Go — a replicated state machine module with leader election, log replication, and safe command application across fault-tolerant distributed replicas.

Go Distributed Systems Consensus RPC
DISTRIBUTED SYSTEMS / CONSENSUS10 / SYSTEM STUDY
One leader. A replicated log.A client sends commands to an elected leader. The leader replicates log entries to followers using AppendEntries RPCs. Matching logs acknowledge replication; a majority allows safe commit and state-machine application.ClientELECTED LEADERLF1F2F3AppendEntriesmajority → commitmatching logs / safe application
One leader. A replicated log.Election / replication / commit

Overview

An implementation of the Raft consensus algorithm in Go — a fully functioning module that maintains a replicated log across distributed replicas, ensuring fault tolerance and consistency even as nodes fail and leaders change.

Continue to update… soon.