walrust
SQLite WAL sync to S3-compatible storage. Continuous replication, point-in-time restore.
What it does
walrust reads SQLite WAL frames, encodes them as LTX (Litestream Transaction) files, and uploads them to S3. Followers pull and apply incrementals to stay in sync. Full snapshots for restore.
Usage
use ;
// Continuous replication
let storage = new;
let config = default;
run_replication.await?;
// Restore
restore.await?;
Features
- WAL frame extraction and deduplication
- LTX encoding with checksum chaining (litestream-compatible)
- Concurrent S3 downloads for fast follower catch-up
- Shadow WAL for decoupled uploads
- Retry with exponential backoff and circuit breaker
- Works with AWS S3, Tigris, MinIO, R2, and any S3-compatible service
License
Apache-2.0