apfsds-storage
MVCC storage engine with WAL persistence for APFSDS.
Features
- MVCC Engine: Multi-version concurrency control for consistent reads
- Log-structured Segments: Append-only segments with efficient compaction
- Write-Ahead Log (WAL): Durability with crash recovery
- B-link Tree Index: Fast key lookups
- ClickHouse Backup: Async batch export to ClickHouse for analytics
Usage
use ;
let config = StorageConfig ;
let engine = open?;
// Write
engine.put.await?;
// Read
let value = engine.get.await?;
// Scan range
for in engine.scan.await?
Architecture
┌─────────────┐
│ API │
├─────────────┤
│ MVCC │ ← Version management
├─────────────┤
│ Segments │ ← Log-structured storage
├─────────────┤
│ WAL │ ← Write-ahead log
└─────────────┘
License
MIT