Skip to content
albertyingPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

25 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

raft

C++ implementation of the Raft consensus algorithm, based on the extended Raft paper (Ongaro & Ousterhout, 2014).

Tests were written with AI assistance.

Build

Requires CMake 3.14+ and a C++17 compiler.

cmake -B build
cmake --build build

Tests

./build/raft_tests

Covers leader election, log replication, and persistence/recovery.

What's implemented

  • Leader election (§5.2), randomized timeouts, term tracking, voted-for persistence
  • Log replication (§5.3), AppendEntries with prevLogTerm consistency check and conflict-term fast backup
  • Persistence (§5.4), write-ahead log for term/votedFor, WAL for log entries

The cluster runs in-process; nodes communicate via direct function calls.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages