Fly.ioAnnouncement
LiteFS Cloud: Distributed SQLite with Managed Backups
Summary
LiteFS Cloud, launched in preview, adds managed backups and restores to LiteFS, an open-source distributed SQLite database that replicates data across application-cluster nodes. Existing LiteFS users had to create snapshots, choose retention, and accept restoration points limited by snapshot frequency; the service instead provides an equivalent snapshot every five minutes and restores within the last 30 days at five-minute granularity. Setup requires LiteFS 0.5.1 or later, a dashboard-created cluster, and an auth token, after which backups are automatic and dashboard restores use the latest snapshot before a selected timestamp. Its LTX format stores changed database pages, while multi-level compactions combine daily snapshots, hourly changes, and five-minute intervals so a restore can stream-merge a minimal set of files. To improve async replication’s durability trade-offs, the primary batches changes, LiteFS Cloud persists them in S3, and a high water mark prevents local transaction files from being removed before storage confirmation.
Context
LiteFS provides local, asynchronously replicated SQLite for application clusters, but it does not include managed backups. Users previously had to build snapshotting and retention systems themselves, with restoration limited to available snapshot times.
Approach / What changed
LiteFS Cloud automatically backs up LiteFS databases using LTX files, multi-level compactions, and S3 object storage. It batches transaction changes, tracks a high water mark for safe file retention, and supports dashboard restores to a selected timestamp within the last 30 days.
Takeaways
LiteFS Cloud is in preview and currently free; setup requires LiteFS 0.5.1 or later, a LiteFS Cloud cluster, and an authentication token.
Multi-level LTX compactions use daily full snapshots, hourly change files, and five-minute intervals to minimize the files needed for point-in-time restoration.
The LiteFS primary batches changes every second, while LiteFS Cloud periodically flushes compacted data to S3 and propagates the latest persisted transaction ID back to cluster nodes.
Source and freshness
- Source
- fly.io
- Published
- Added to Yomu
- Last updated
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.