How to read this book
This book is the technical reference for SynergyDB, written from the repository at main @ 8a689c5c (2026-11-30). It replaces the June 2026 "SynergyDB Complete Documentation", whose numbers and many claims are out of date (see Archiving the June book).
Rules the pages follow
- Every factual statement ends with a pointer to the file and symbol that backs it, in the form (source:
src/storage/wal.rs,WriteAheadLog::rollback_to). Paths are relative to the root of thesynergydbrepository. There are no line numbers, because they drift. - Where a test covers a behaviour, the page names the test. Where only code backs it, the page says Not verified.
- Code that is compiled but not called, behind a non-default Cargo feature, or a stub is marked Not wired.
- Claims made in code comments are not repeated as fact; pages describe what the code does.
- Diagrams draw only what the code shows, and each has a source line under it.
Where to start
| If you want to | Read |
|---|---|
| Decide whether SynergyDB fits | Overview, then Evaluator FAQ |
| Run it | Quickstart and the wire guides |
| Understand the design | Architecture atlas, then Volume I |
| Operate it | Operations, Configuration reference, Security |
| Change the code | Repository map and Building |
The sections
Guide (guide/)
Short pages for evaluators and operators: what SynergyDB is, how to run it, how it works at a high level, operations, configuration, security, migration and rollback, benchmarks, and an FAQ. Start here if you have not used SynergyDB before.
Wire guides (wires/)
One page per wire protocol for someone connecting an application: the measured score against the real database, how to connect, the known gaps and how to re-run the proof for that wire. The protocol internals are in Volume III.
The eight volumes
| Volume | Title | Folder | What it covers |
|---|---|---|---|
| 0 | Orientation | vol0/ |
This page and the architecture atlas |
| I | Storage, Indexing and Transactions | vol1/ |
storage/ (LSM engine, WAL, memtable, SSTables, keys), indexes/ (B-tree, GIN, HNSW), transactions/ (MVCC, isolation, locking, savepoints, errors), catalog/
|
| II | Query Engine and Languages | vol2/ |
pipeline/ (statement lifecycle, parser), sql/ (statement reference), languages/ (Cypher, MQL and the other front ends) |
| III | Wire Protocols | vol3/ |
protocols/: framing, handshake, command dispatch and type mapping for each wire |
| IV | Security | vol4/ |
Authentication, authorization, row-level security, TLS, encryption at rest, audit |
| V | Distributed Systems and Operations | vol5/ |
Server runtime, Raft, cluster RPC and leader routing, sharding and two-phase commit |
| VI | Performance and Load Testing | vol6/ |
Benchmarks, the proof pack's throughput step, load and soak tests |
| VII | Codebase, CLI and Developer Guide | vol7/ |
developer/: repository map, building, adding a wire; the CLI tools |
Roadmap (roadmap/)
What is planned and what is known to be missing. Pages there describe intent, not behaviour, and say so. The repository's own record is ROADMAP.md and STATUS.md, with per-change entries under docs/status/ (source: STATUS.md).
Reading a claim
A typical paragraph looks like this:
write_batchfirst asks the optionalReplicationHook(cluster mode) whether to apply locally (source:src/storage/mod.rs,write_batch,ReplicationDecision).
To check it, open the named file and search for the named symbol. When a page and the code disagree, the code at the commit above is the reference, and the page is wrong.
Large files are best read in targeted ranges. src/query/engine.rs alone is about 96,000 lines (source: Repository map).