toyDB: A Distributed SQL Database in Rust for Educational Purposes
2025-05-11
toyDB is a distributed SQL database built from scratch in Rust as an educational project. It aims to illustrate the architecture and concepts behind distributed SQL databases in a simple and understandable way, supporting most common SQL features including joins, aggregates, and transactions. While performance and scalability aren't primary goals, a benchmark tool is included to evaluate performance under various workloads. toyDB uses Raft for consensus to manage a transactional key/value store, with a SQL query engine built on top.
Development
Distributed Database