NewsCrawler.org

Twelve years of distributed SQLite: from rqlite to a dozen projects

Twelve years of distributed SQLite: from rqlite to a dozen projects
Image: philipotoole.com

In September 2014 Philip O'Toole released rqlite, which puts a Raft[1] log in front of SQLite and replicates every write to a cluster so that losing a node does not mean losing data; he says it was the first open-source combination of Raft and SQLite. Distributed SQLite is now a category of roughly a dozen projects, including Canonical's dqlite, Litestream, LiteFS, cr-sqlite, the libSQL fork behind Turso, SQLite Cloud and Cloudflare D1. The designs fall into three groups that appeared in order: consensus clusters with strong consistency (rqlite, dqlite), streaming the SQLite WAL[2] to S3 for cheap single-node recovery (Litestream), and CRDT[3]-based replica merging for local-first applications (cr-sqlite). rqlite is a CP system[4] that refuses writes when cut off from the majority of nodes. The money and acquisitions went to platforms such as Turso, bought by Supabase in 2026, while rqlite, dqlite and Litestream stayed free and open source; the author notes the idea was open source for eight years before anyone sold it.

Read the original philipotoole.comDiscussion on GeekNews

Discussion

Hacker News commenters report that Cloudflare D1 is not very reliable in production, citing a D1 developer who described it as a SQL wrapper over Durable Objects storage that is almost always worse to use than Durable Objects directly. Others argue that with AI agents Postgres has become easy to run and offers more SQL features than SQLite, while several users compare rqlite with SQLite plus Litestream, thank rqlite's maintainer, and ask whether a single project can combine embedding, clustering and S3 backups.

Sources

Published: First seen: Читать по-русски

Open as a page