rqlite

active

by Philip O'Toole and contributors · since 2014

Lightweight distributed database that replicates SQLite over Raft behind a simple HTTP API.

relationaldatabase engineopen source (permissive)mature

Overview

rqlite turns SQLite into a fault-tolerant, highly available cluster: a single Go binary runs Raft consensus and applies every write to a local SQLite database on each node. Clients talk to it over a JSON HTTP API (or a Go/Python/JS client) and can choose read consistency levels from fast local reads to fully linearizable ones. It adds hot backups to S3, change data capture streams, SQLite extension loading (for example sqlite-vec) and Kubernetes-friendly auto-clustering. It is a pragmatic choice for small, critical datasets such as control-plane state, not a scale-out database: all data must fit on every node and writes go through one leader.

Strengths & trade-offs

Strengths

  • +One binary, no dependencies: easiest way to make SQLite highly available
  • +Per-request read consistency: none, weak, linearizable
  • +Automatic S3/GCS backups and restore from plain SQLite files
  • +Change data capture to stream writes elsewhere
  • +Load SQLite extensions such as sqlite-vec for vector search

Trade-offs

  • −Write throughput limited to one Raft leader and disk fsync speed
  • −No interactive multi-statement transactions; only batched requests are atomic
  • −Non-deterministic SQL functions need care under replication
  • −Full dataset must fit on every node

Great for

  • +Control-plane and configuration state for distributed systems
  • +Small HA databases at the edge or in IoT gateways
  • +Service metadata where SQLite simplicity is wanted with failover
  • +Read-heavy reference data across sites

Think twice for

  • −Write-heavy OLTP
  • −Datasets larger than a single node
  • −Apps needing interactive transactions

Capabilities

Native or official first-party support · 9 of 25 tracked

✓Transactions
✓Joins
✓Secondary indexes
✓Full-text search
✓JSON
✓Change data capture
✓Triggers
✓In-memory
✓Durable persistence
–Vector search
–Geospatial
–Stored procedures
–Materialized views
–TTL / expiry
–Pub/Sub
–Columnar storage
–Compression
–Encryption at rest
–Role-based access
–Time travel
–Branching
–Online schema changes
–Streaming ingest
–Offline sync
–Runs in WebAssembly

Scale & consistency

Comfortable data size
Small · ≤ 100 GB
Horizontal scaling
None
Multi-region
Read replicas
Transactions
Limited ACID
Consistency
Strong, Eventual
Schema
Flexible
Architecture
Distributed, Client server
Query languages
SQL

Typically 3-5 voting nodes plus optional read-only nodes; every node holds the full dataset and writes go through the Raft leader.

Deployment

Self-hosted Vendor-managed cloud Serverless Embedded Edge Kubernetes operator

Ecosystem

compatible withSQLite
apis & protocolsHTTP/JSON API
client languagesGo, Python, JavaScript, Java, Rust, C#

Alternatives to rqlite

Compare all→
dqliteRelational8.4

Canonical's embeddable C library that makes SQLite highly available with Raft replication.

rqlite vs dqlite →
SQLiteRelational75.5

The in-process SQL engine that ships in every phone, browser and OS: one file, zero servers.

rqlite vs sqlite →
libSQLRelational29.1

Turso's open-contribution SQLite fork with native vectors, a network server and embedded replicas.

rqlite vs libsql →
etcdKey-Value32.4

Raft-based, strongly consistent key-value store that holds Kubernetes' cluster state.

rqlite vs etcd →
CockroachDBRelational47.1

Postgres-wire distributed SQL built to survive node, zone and region failures with serializable transactions.

rqlite vs cockroachdb →
TursoRelational10.6

Managed SQLite-compatible cloud for database-per-tenant apps, with embedded replicas and offline sync.

rqlite vs turso →

rqlite FAQ

What is rqlite?

rqlite is a relational database by Philip O'Toole and contributors, first released in 2014. rqlite turns SQLite into a fault-tolerant, highly available cluster: a single Go binary runs Raft consensus and applies every write to a local SQLite database on each node. Clients talk to it over a JSON HTTP API (or a Go/Python/JS client) and can choose read consistency levels from fast local reads to fully linearizable ones. It adds hot backups to S3, change data capture streams, SQLite extension loading (for example sqlite-vec) and Kubernetes-friendly auto-clustering. It is a pragmatic choice for small, critical datasets such as control-plane state, not a scale-out database: all data must fit on every node and writes go through one leader.

Is rqlite open source?

Yes. rqlite is open source. License: MIT License.

Does rqlite support ACID transactions?

Partly. rqlite offers limited ACID guarantees (for example, single-record or single-partition transactions), with strong, eventual consistency.

Does rqlite scale horizontally?

rqlite does not scale horizontally; it runs on a single node, so you scale it up rather than out. It is comfortable at small scale (≤ 100 GB). It supports cross-region read replicas.

How can I run rqlite?

You can self-host it and run it at the edge.

What is rqlite best for?

rqlite is a strong fit for control-plane and configuration state for distributed systems; small HA databases at the edge or in IoT gateways; and service metadata where SQLite simplicity is wanted with failover. Think twice for write-heavy OLTP.

What are the best alternatives to rqlite?

Common alternatives to rqlite include dqlite, SQLite, libSQL, etcd and CockroachDB. The right choice depends on your workload, scale and hosting; WhichDB's smart match ranks them against your requirements.

How popular is rqlite?

rqlite ranks #230 of 844 databases on the WhichDB Score (14.5/100), and #73 among relational databases. The score combines public adoption signals such as package downloads, GitHub activity, job posts and developer discussion.