Raft Consensus Algorithm in Typescript using Express.js

Raft Consensus Algorithm in Typescript using Express.js

Francisco Trianto / June 5, 2025
Express
Typescript

The Raft Consensus Algorithm is a distributed consensus algorithm designed to ensure that multiple nodes in a distributed system agree on the same state. This implementation focuses on a single cluster of nodes, providing a foundation for understanding how Raft works.

Includes:

  • Heartbeat
  • Leader Election
  • Log Replication
  • Membership Change

Based around the original paper by Diego Ongaro and John Ousterhout: https://raft.github.io/raft.pdf

For More Information, Check out this GitHub README