Run your SQLite app across multiple servers or regions so reads are always fast and local
Eliminate the need for a centralized database server by giving every node its own synced copy
Deploy a web app to edge locations worldwide while keeping the database consistent everywhere
Add read replicas to a SQLite-backed application without changing your application code
Currently in beta, core replication works but some features are incomplete. Best suited for Fly.io deployments. Requires FUSE support on the host OS. Consult Fly.io documentation for getting-started guide.
LiteFS is a tool for keeping copies of SQLite databases in sync across multiple servers. SQLite is a type of database that stores all its data in a single file on disk, which makes it simple to use but traditionally difficult to share across a cluster of machines. LiteFS solves this by sitting between your application and the database file, intercepting writes as they happen and recording exactly what changed in each transaction. The way it works is through something called a FUSE file system, which is a technique that lets software intercept file reads and writes at the operating system level. LiteFS mounts itself as a passthrough layer: applications read and write to what looks like a normal file, but LiteFS is watching, capturing each database transaction in a compact change-log format. Those change records can then be shipped to replica machines so their copies of the database stay current. This is particularly useful for applications deployed across multiple data centers or edge locations. Instead of requiring a centralized database server that every node must reach over the network, each node can hold a local copy of the SQLite database and read from it quickly. Writes still need to go through the primary node, which coordinates replication, but reads are completely local. LiteFS is built and maintained by Fly.io, the cloud hosting company. It is currently in beta, meaning the core replication functionality works but some features are still in progress. For example, database deletion is not yet fully implemented. Documentation and a getting-started guide are available on the Fly.io documentation site. The project accepts bug fix contributions via pull requests, and larger feature contributions are coordinated through issues before development begins.
← superfly on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.