Project status and stages
How far Raft DB has come, according to the stage tracker, the decision log and the plan documents, and which of those documents are out of date.
Raft DB is pre-release software (workspace version 0.0.5). This page summarises where each part stands. The sources are the stage tracker, the decision log (decisions D1 to D88, newest last) and the plan after the first stages; see the changelog and roadmap chapters.
Reading the project's records: the project's README still says "Status: Stage 0" and the stage tracker was last updated in the middle of the work. The decision log is the most recent record: it reaches D88 (triggers, 2026-11-12). Where they disagree, this manual follows the code and the decision log.
Stages#
The plan is split in stages. A stage is done only when its target passes.
| Stage | Subject | State |
|---|---|---|
| S0 | Research, benchmark harness, the engine's building blocks (hash table, document format, executor, WAL, rings, bloom filter, row versions, simulation) | Built. Not done: benchmarks on a quiet Linux reference host, macOS and ARM runs, competitor baselines for all systems. |
| S1 | Collection store, schema, durable table | Built. The latency target "ack p99 at most 2 ms at 300k writes/s" fails on the development PC (6 to 14 ms) and must be re-run on a Linux reference host. |
| S2 | Server | Built: binary protocol, HTTP/JSON API, thread-per-connection reference server. Not built: the epoll/kqueue/IOCP poller (many idle connections), WebSocket, TLS. |
| S3 | Filters over the network, accounts, indexes | Built: databases and tables, SQL subset, accounts, roles, bulk import, indexes. Open: compaction while serving, per-table grants, multi-field and nested indexes, snapshot-consistent paging. |
| S9 | High availability | Built: log shipping, synchronous replication, watcher-quorum failover, table groups, handover. Open: Raft replication of the data log itself, replicated accounts, true partitioning, multi-master with conflict resolution. See Status: built and open. |
| S10 | Disk-resident engine | Built (engine = lsm): replication, indexes and failover work on it. |
| Studio | Web tool | File viewer and connected object explorer built; parts not verified in every browser (see the studio chapter). |
| MySQL and MariaDB front-ends | SQL on the engine | Built in 88 recorded steps; see below. |
The SQL front-ends#
D52 (2026-11-11) decided that compatibility is a separate program, one crate per database, and that it is measured with real clients. The levels, in order:
- Protocol, sessions, databases, tables and rows, prepared statements.
- Unique keys,
information_schema, accounts and privileges. - The general
SELECT(joins, grouping, subqueries, unions),ALTER TABLE, multi-table writes, transactions (atomic, isolated one table at a time),DECIMALup to 65 digits,ENUM,SET,BLOB,BINARY. - The function library, regular expressions, foreign keys,
BIT, fractional seconds. - Performance work (D62 to D69): definition cache, index ranges, binary rows, reads on the connection's thread, the one-process mode, an allocation cache, protocol version 2 with streams.
- Views,
CREATE TABLE ... LIKE/AS SELECT, temporary tables,CHECK, generated columns, invisible columns, functional indexes (D70 to D78). - One program with two dialects (D79), then MariaDB-specific steps: system variables,
PREPARE,OR REPLACE,RETURNING, sequences, types and functions, JSON functions, table maintenance, regular expressions,WITH ROLLUP, JSON operators (D80 to D85). - Any table name, real character-set lists, stored procedures and functions, triggers (D86 to D88).
Verified against MySQL and MariaDB servers: MySQL 9.7 and MariaDB 11.4.13. Every script for the MySQL and MariaDB dialects is run against MySQL and against Raft DB, and the outputs are compared line by line. What cannot be identical is listed in D86 (the server's identity, system schemas, the account names used, MySQL's estimated index cardinality).
What the next plan says#
The plan sets the order: finish and prove failover (done), replicate accounts (open), HTTPS webhooks in the watcher (open), multi-master by Raft groups per table group (the owner chose this option; layers 1 and 2 are built, the rest is open), more client languages, very large databases (not started: no tiering, no backup or point-in-time recovery, no distributed query), hardware acceleration, and a Microsoft SQL Server front-end (not started).