Video 1 of 1: Alexey Ozeritskiy — Simplifying Raft with C++20 coroutines — 25.1.2024.
Leader election, log replication and persistence in a small library, with C++20 coroutines carrying the asynchronous flow through coroio. A sample key-value store runs on top of the consensus core.
Trade-offs
- C++20 coroutines for the asynchronous flow. The design stays clear and modular, and networking lives in a separate layer on
coroio. - A focused feature set. Leader election, log replication and persistence are in, while snapshots and membership change are not supported yet.
Q&A4
Leader election, log replication and persistence. Snapshots and membership change are not supported yet.
Yes.
add_subdirectory(miniraft) brings in the consensus logic alone, and miniraft/net adds the server layer on top.A sample distributed key-value store in
kv.cpp, with set, get, list and del from a client against three servers.A straightforward reference for how Raft handles leader election, log replication and fault tolerance in a distributed system.
Links
Built by
Reviews
Loading reviews
More in Distributed systems
See all 20 →
arbiterPostgreSQL job queue for Haskell, with no broker and no leader- RRQClosed-loop payment ledger on sharded Postgres with a Kafka outbox
RuvioRust key-value server that speaks RESP, with locks and queues as commands
EgresPostgres-compatible database in Zig for heavy, multi-tenant workloads- clinkC++ stream processing engine that stays correct when processes die
- pg-statusSidecar that reports PostgreSQL master, replicas and replication lag
More in C++
See all 44 →
OmarollPhoto and video viewer and library for Omarchy that follows the desktop theme
BigMoeOnEdgeEngine that streams MoE experts from flash to run models larger than memory- PXALLM server tuned for Tesla P100, V100 and GTX 10-series GPUs
- gnss_gpuGPU GNSS positioning for urban canyons with particle filters and ray-traced NLOS
impLLM inference server built only for NVIDIA Blackwell GPUs
OmafilesKeyboard-first multi-panel file manager for Omarchy on Qt6