Architecture Overview
StrataDB is built as a layered system. Scroll down to explore each layer and understand how the pieces fit together.
API Layer
Executor Layer
Primitives Layer
Transaction Layer
Storage Engine
Durability Layer
API Layer
The public interface — CLI, SDKs, and MCP protocol handlers.
- CLI REPL with command parsing
- Python and Node.js SDK bindings
- MCP (Model Context Protocol) server
- Input validation and serialization
Deep Dive Documentation
Crate Structure
7-crate workspace organization and dependencies.
Storage Engine
ShardedStore, MVCC, and key structure design.
Durability & Recovery
WAL, snapshots, and crash recovery flow.
Concurrency Model
OCC lifecycle and conflict detection.
Concurrency Invariants
Thread-safety guarantees and proof outlines.
Branch Primitive
Copy-on-write branching implementation.
KV Primitive
Key-value store with versioning and scans.
Event Primitive
Append-only log implementation.
Vector Primitive
HNSW index and similarity search.
Error Propagation
Error types and handling strategies.
Boundary Conditions
Edge cases and system limits.
Version Semantics
Version numbering and compatibility.