Engine Manual & Internals
This section details the inner architecture of AeroLog, explaining how bitcask segments, in-memory indexes, hybrid logical clocks, compactor workers, and cross-platform foreign function bridges cooperate.
Technical Chapters
- Bitcask Append-Only Storage: Mechanics of sequential log segments, file rotation, and active vs sealed states.
- Dual-Tier In-Memory Indexing: Mathematical structure of
KeyDirpoint lookups and boundedSparseStreamIndex. - Hybrid Logical Clocks & Causality: Physical-logical ordering, monotonic ratcheting, and deterministic LWW convergence.
- Compaction & Retention Policies: Background merge workers, tombstone eviction, and declarative stream pruning.
- Crash Recovery & Data Integrity: Hardware CRC32-IEEE checksum validation and torn-write isolation.
- Zero-Dependency CBOR Codec: Pure Rust RFC 8949 binary data serialization.
- UniFFI Cross-Platform Bridge: Mozilla UniFFI v0.32 architecture, memory ownership, and foreign lifecycle.