Overview of redb architecture and features
masterredb is a portable, high-performance, ACID-compliant, embedded key-value store. It is designed for simplicity and uses MVCC (Multi-Version Concurrency Control) to provide isolation.
Key Characteristics:
- Isolation Level: Provides a single isolation level:
serializable, where all writes are applied sequentially. - Concurrency: Supports a single writer and multiple concurrent readers.
- Data Model: Each database contains multiple tables, where each table acts as a key-value mapping similar to a
BTreeMap. - Persistence: Uses a copy-on-write mechanism for all data structures except for the database metadata.
- File Structure: The database file consists of metadata followed by one or more regions. Each region contains a header and a data section split into pages.