Skip to content

Releases: hungpdn/wal

v0.1.0

23 Feb 17:03

Choose a tag to compare

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.RWMutex and 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.