Design decisions
The catalogue of Raft DB design decisions D1 to D88, grouped by theme, each with what was decided and why.
- How to read the decision catalogue: What a design decision entry is, how the catalogue is grouped, and an index from every D-number to its page.
- Foundations: Decisions about language, dependencies, typing, filters, documentation, portability and testing (D1, D5 to D9, D13, D16).
- Storage engine: Decisions about document layout, hash index, versions, indexes, checkpoints and the disk-resident lsm engine (D2 to D4, D14, D15, D18, D22, D27, D28, D35, D43, D46, D48, D49).
- Write path and durability: Decisions about the write-ahead log, group commit, thread-per-core execution and when a write is acknowledged (D10, D11, D12, D21, D37).
- Server, protocol and security: Decisions about the wire protocol, HTTP, UDP, the catalog, schema checks, SQL planning, accounts and Studio (D19, D20, D23 to D26, D29 to D34, D36, D40).
- Replication and failover: Decisions about log shipping, synchronous replication, the Raft core, the first automatic failover and replication of lsm tables (D17, D38, D39, D42, D47).
- Control plane and partitions: Decisions that put elections, failover and resource control in the watcher, and that split data into table groups and partitioned tables (D50, D51).
- MySQL front-end: Decisions about the MySQL connector architecture, accounts, SELECT, ALTER TABLE, transactions, indexed reads, functions and foreign keys (D52, D54 to D61, D64).
- MySQL front-end performance: Decisions from the measured performance steps of the MySQL front-end against MySQL 9.7 (D62, D63, D65 to D69).
- MySQL schema features: Decisions about views, CREATE TABLE LIKE and AS SELECT, temporary tables, check constraints, generated columns, invisible columns, functional indexes and expression types (D70 to D78).
- MariaDB and dialects: Decisions that made the front-end program answer as MySQL or as MariaDB, and the compatibility steps that followed (D79 to D88).
- Operations and tooling: Decisions about the watcher, zero-flag first start, service installation and fatal-error reports (D41, D44, D45, D53).