Hasty Briefsbeta

Litestream v0.5.0 Is Here

11 hours ago
  • #Litestream
  • #Database Backup
  • #SQLite
  • Ben Johnson works on Litestream at Fly.io, which enhances SQLite-backed applications with resilience to server failure.
  • Litestream acts as a backup/restore system for SQLite, running as a sidecar process and streaming WAL checkpoints to object storage.
  • Recent updates include faster performance and efficient point-in-time recovery (PITR).
  • Litestream was initially followed by LiteFS, which focused on live replication for SQLite, but user preference shifted back to Litestream.
  • The LTX file format was introduced to handle transactions more efficiently, supporting compaction and faster restores.
  • LTX allows for hierarchical compaction of changes, reducing the number of files needed for point-in-time recovery.
  • Litestream v0.5.0 eliminates the concept of 'generations' and introduces transaction IDs (TXID) for simpler state management.
  • Upgrading to v0.5.0 is straightforward, but it cannot restore from older WAL segment files.
  • New features include per-page compression in LTX files, removal of CGO, and support for newer S3 APIs.
  • Future plans include a Litestream VFS for read replicas, enabling instant database copies with background hydration.