Skip to content

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

  1. Bitcask Append-Only Storage: Mechanics of sequential log segments, file rotation, and active vs sealed states.
  2. Dual-Tier In-Memory Indexing: Mathematical structure of KeyDir point lookups and bounded SparseStreamIndex.
  3. Hybrid Logical Clocks & Causality: Physical-logical ordering, monotonic ratcheting, and deterministic LWW convergence.
  4. Compaction & Retention Policies: Background merge workers, tombstone eviction, and declarative stream pruning.
  5. Crash Recovery & Data Integrity: Hardware CRC32-IEEE checksum validation and torn-write isolation.
  6. Zero-Dependency CBOR Codec: Pure Rust RFC 8949 binary data serialization.
  7. UniFFI Cross-Platform Bridge: Mozilla UniFFI v0.32 architecture, memory ownership, and foreign lifecycle.