Find Related products on Amazon

Shop on Amazon

ToyDB rewritten: a distributed SQL database in Rust, for education

Published on: 2025-07-15 14:49:09

toyDB Distributed SQL database in Rust, built from scratch as an educational project. Main features: I originally wrote toyDB in 2020 to learn more about database internals. Since then, I've spent several years building real distributed SQL databases at CockroachDB and Neon. Based on this experience, I've rewritten toyDB as a simple illustration of the architecture and concepts behind distributed SQL databases. toyDB is intended to be simple and understandable, and also functional and correct. Other aspects like performance, scalability, and availability are non-goals -- these are major sources of complexity in production-grade databases, and obscure the basic underlying concepts. Shortcuts have been taken where possible. Documentation Architecture guide: a guided tour of toyDB's code and architecture. SQL examples: walkthrough of toyDB's SQL features. SQL reference: reference documentation for toyDB's SQL dialect. References: research materials used while building toyDB. Usag ... Read full article.