Rust OLTP database (DataFusion + RocksDB)
A brand-new OLTP database written in Rust that uses DataFusion as its query engine and RocksDB for transactional MVCC storage, with plans to eventually replace RocksDB with a pure-Rust store. It aims to be close enough to Postgres that applications can treat it as Postgres (via pgwire's Postgres wire protocol), while also being runnable as an embedded library like SQLite. Non-legacy clients can use FlightSQL and Arrow IPC for faster data transfer, Arrow serves as the in-memory data format and cross-language interchange layer, and other languages can connect through a C bridge. It supports features like unsigned integers, and missing features currently return explanatory error messages instead of corrupting data. Remaining work includes stress tests, fault injection, and correct RocksDB configuration for transaction isolation and disk persistence.
What it addresses
The author has long suffered from SQLite and Postgres idiosyncrasies and, when deploying, wanted to start small without a big dedicated database server and with meaningful tests free of multi-gigabyte dependencies and runtime assumptions. The goal is a database close enough to Postgres to require little new learning but with SQLite's low-end abilities, which could also replace Postgres and remove fear of differences between dev/early-stage and later stages.
Shared over time
Each entry reflects what was shared on that date. Details may have changed since then.
Rust OLTP database (DataFusion + RocksDB)
A brand-new OLTP database written in Rust that uses DataFusion as its query engine and RocksDB for transactional MVCC storage, with plans to eventually replace RocksDB with a pure-Rust store. It aims to be close enough to Postgres that applications can treat it as Postgres (via pgwire's Postgres wire protocol), while also being runnable as an embedded library like SQLite. Non-legacy clients can use FlightSQL and Arrow IPC for faster data transfer, Arrow serves as the in-memory data format and cross-language interchange layer, and other languages can connect through a C bridge. It supports features like unsigned integers, and missing features currently return explanatory error messages instead of corrupting data. Remaining work includes stress tests, fault injection, and correct RocksDB configuration for transaction isolation and disk persistence.
Problem: The author has long suffered from SQLite and Postgres idiosyncrasies and, when deploying, wanted to start small without a big dedicated database server and with meaningful tests free of multi-gigabyte dependencies and runtime assumptions. The goal is a database close enough to Postgres to require little new learning but with SQLite's low-end abilities, which could also replace Postgres and remove fear of differences between dev/early-stage and later stages.
Posted by @yencabulator · Original source ↗
Source text · @yencabulator · · Source ↗
I'm writing a brand-new OLTP database with Rust, DataFusion and RocksDB (to be replaced with something in pure Rust later, hopefully). It's still very early days, but I'm soo close to finally being willing to share it. Close enough to Postgres that apps think it's Postgres, but also runnable as a library like SQLite -- best of both worlds!