Design decisions

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.

Raft DB keeps a decision log. Each entry records one design decision: what was decided, why, what else was considered and the evidence. A decision is changed by a later entry that supersedes it, never by editing the old one. This chapter is a readable version of that log, grouped by theme instead of by date. The wording is shortened; the numbers (speeds, sizes) belong to the measurements in the log and in the benchmark documents, and the pages here repeat only a few of them.

Entry form#

Every entry has the same D-number as the log, a one-line title, and the decision with its reason. Some numbers are used by more than one log entry: D50 and D51 have follow-up entries for each built step, and they are shown under the main entry. D53 appears in the log as a short paragraph inside D52's section, and has its own entry here. The log is not in numeric order (the early numbers D9, D14 to D17 were written later), which is one more reason to look decisions up by number in the index below.

Reading notes#

  • "Owner" in the log means the person who set the direction for the project. This catalogue says "requested" where the log quotes a request.
  • "Design only" or "proposed" in a title means the decision was taken before the code existed. The page says when the log marks it so.
  • Where a later decision replaced part of an earlier one, the entry says so (D51 replaces where D42 and D50 put the election).
  • A decision describes the system at the time it was made. For the current behaviour read the reference chapters first, for example SQL reference, Replication and Internals.

Index#

PageThemeD-numbers
FoundationsLanguage, typing, filters, documentation, portability, testingD1, D5, D6, D7, D8, D9, D13, D16
Storage engineMemory layout, indexes, checkpoints, the disk-resident engineD2, D3, D4, D14, D15, D18, D22, D27, D28, D35, D43, D46, D48, D49
Write path and durabilityWAL, group commit, threads per core, acknowledgementD10, D11, D12, D21, D37
Server, protocol and securityWire protocol, HTTP, UDP, catalog, accounts, StudioD19, D20, D23, D24, D25, D26, D29, D30, D31, D32, D33, D34, D36, D40
Replication and failoverLog shipping, synchronous mode, Raft, lsm replicationD17, D38, D39, D42, D47
Control plane and partitionsWatcher quorum, fence, resource control, table groups, partitioned tablesD50, D51
MySQL front-endConnector architecture, accounts, SELECT, ALTER, transactions, functions, foreign keysD52, D54, D55, D56, D57, D58, D59, D60, D61, D64
MySQL front-end performanceMeasurements against MySQL 9.7 and what was changedD62, D63, D65, D66, D67, D68, D69
MySQL schema featuresViews, temporary tables, checks, generated columns, functional indexesD70, D71, D72, D73, D74, D75, D76, D77, D78
MariaDB and dialectsOne program with two dialects, system variables, types, JSON, routines, triggersD79, D80, D81, D82, D83, D84, D85, D86, D87, D88
Operations and toolingZero-flag start, service install, watcher, error reportsD41, D44, D45, D53

All of D1 to D88 appear exactly once in the index.