Releases: hungpdn/wal
Releases · hungpdn/wal
v0.1.0
Features
- 🚀 High Performance: Buffered I/O, optimized locking strategies and non-blocking background sync.
- 🛡️ Data Integrity: CRC32 checksums (Castagnoli), append-only logic and automatic corruption repair on startup.
- 🧵 Concurrency Safe: Thread-safe writers and readers using
sync.RWMutexand atomic operations. - 🔄 Log Rotation: Automatic segment rotation based on configurable size.
- 💾 Flexible Sync Strategies: Choose between Performance (Background), Safety (Always), or Balance (OSCache).
- 🔍 Iterator API: Memory-efficient sequential reading of logs.
- ⚡ Optimized Startup: Uses reverse scanning to instantly recover the last segment state without reading the whole file.
- 🧹 Retention Policies: Automatic cleanup based on TTL (Time-To-Live) or Total Size.