DEV.co
Open-Source Databases · rqlite

rqlite

rqlite is a distributed, fault-tolerant SQL database built on SQLite. It replicates data across multiple nodes using Raft consensus, runs as a single statically-linked binary, and exposes data via HTTP REST API. Designed for operational simplicity and high availability with minimal overhead.

Source: GitHub — github.com/rqlite/rqlite
17.6k
GitHub stars
793
Forks
Go
Primary language
MIT
License (OSI-approved)

Key facts

Objective fields from the source. Values we can't verify are shown as “Unknown” rather than guessed.

FieldValue
Repositoryrqlite/rqlite
Ownerrqlite
Primary languageGo
LicenseMIT — OSI-approved
Stars17.6k
Forks793
Open issues75
Latest releasev10.2.7 (2026-07-06)
Last updated2026-07-07
Sourcehttps://github.com/rqlite/rqlite

What rqlite is

Go-based distributed relational database leveraging SQLite for SQL compliance and Raft for consensus. Supports atomic multi-statement transactions, change data capture, TLS encryption, pluggable authentication, tunable read consistency (strong/weak), and hot backups to S3/MinIO/GCS. Single-node and clustered deployments both supported.

Quickstart

Get the rqlite source

Clone the repository and explore it locally.

terminalbash
git clone https://github.com/rqlite/rqlite.gitcd rqlite# follow the project's README for install & configuration

Need it deployed, integrated, or customized instead? DEV.co ships production installs.

Best use cases

High-availability metadata/config storage

Replace etcd for relational use cases: service discovery, configuration, feature flags, or any critical state that benefits from SQL querying without operational overhead.

Edge/remote deployments with unreliable connectivity

Lightweight footprint, self-contained binary, and replication mean resilient local data stores that sync across unreliable networks; ideal for field devices or geographically dispersed offices.

Small-to-medium cluster fault-tolerance needs

Applications needing SQL semantics with automatic failover across 3–7 nodes without running PostgreSQL or MySQL; simpler operational story than full RDBMS.

Implementation considerations

  • Cluster formation requires coordination mechanism (Kubernetes DNS, Consul, etcd, or Docker Compose); no embedded auto-discovery for arbitrary networks.
  • Writes block on replication quorum; configure durability and read consistency carefully to avoid latency issues under load.
  • Single SQLite writer per node; vertical scaling requires careful connection pooling and read/write routing on the client side.
  • Backups are snapshots; restore is offline (new cluster). Plan backup frequency and retention aligned with RPO/RTO requirements.
  • No built-in sharding; dataset size should fit on the largest node. Multi-node deployments are for availability, not capacity.

When to avoid it — and what to weigh

  • High write throughput or large datasets — rqlite replicates all writes across the cluster synchronously; performance is bounded by SQLite's single-writer model and network latency. Not suitable for OLTP at scale or multi-gigabyte datasets.
  • Complex ad-hoc analytics or OLAP — Tuned for transactional consistency, not analytical queries. No columnar storage, query optimization, or distributed query engines. Large scan operations will be slow.
  • Compliance with proprietary database licensing — Built on SQLite (public domain), MIT-licensed code. Some organizations mandate commercial DBMS support contracts; rqlite has no commercial support offerings listed.
  • Need for row-level security or fine-grained RBAC — Authentication/authorization exists but documentation indicates basic scope. Complex permission models require external application logic.

License & commercial use

MIT License: Permissive OSI-approved license. Allows commercial use, modification, and distribution with attribution. No patent or warranty provisions beyond standard MIT terms.

MIT is a permissive license that explicitly permits commercial use. However, no commercial support, SLA, or vendor backing is evident from the data provided. Organizations requiring liability, indemnification, or vendor support should review the maintainer's commercial support offerings (not detailed in data) or evaluate risk tolerance for community-only support.

DEV.co evaluation signals

Editorial assessment — not user reviews. Directional, with an explicit confidence level.

SignalAssessment
MaintenanceActive
DocumentationStrong
License clarityClear
Deployment complexityLow
DEV.co fitGood
Assessment confidenceHigh
Security considerations

TLS support and basic authentication/authorization are documented. End-to-end encryption is configurable. No mention of vulnerability disclosure process, past CVEs, or penetration test results in provided data. Code is written in Go; standard memory-safety considerations apply. Authorization appears limited; complex policies require external enforcement.

Alternatives to consider

etcd

Similar use case (highly available distributed config/metadata), but key-value only. Choose etcd if you don't need SQL; choose rqlite if you need relational queries.

PostgreSQL (with replication/failover)

Full-featured RDBMS with mature tooling (pgBouncer, patroni, pg_upgrade). Choose PostgreSQL for complex queries, large scale, or if you need commercial support; rqlite is simpler for fault-tolerance on small clusters.

CockroachDB

Distributed SQL database with strong consistency and horizontal scaling. Choose CockroachDB for large datasets and multi-region deployments; choose rqlite if you want minimal operational overhead on small clusters.

Software development agency

Build on rqlite with DEV.co software developers

Request a technical architecture review or consultation to assess fit for your availability and scalability requirements. Devco can help design cluster topology, backup strategies, and integration patterns.

Talk to DEV.co

Related open-source tools

Surfaced by semantic similarity across the DEV.co open-source index.

Related on DEV.co

Explore the category and the services that help you build with it.

rqlite FAQ

Can I use rqlite as a drop-in replacement for PostgreSQL?
No. rqlite is SQLite-based, not PostgreSQL-compatible. SQL dialect is standard SQLite, and it lacks advanced features (stored procedures, sequences, complex joins at scale). Redesign required for migration.
How many nodes can a rqlite cluster have?
Raft consensus works best with 3–7 nodes; not explicitly limited in data. More nodes increase latency. Consult documentation for large cluster guidance.
Can I scale reads horizontally?
Yes. All nodes are full replicas and can serve reads. Configure read consistency (strong/weak) per request. Weak reads from followers are available but may be stale.
What happens if a node fails?
If quorum (majority) remains, the cluster continues. Lost node can be re-added. Data is fully replicated; no data loss in a healthy majority. Ensure odd cluster sizes (3, 5, 7) for true fault tolerance.

Software developers & web developers for hire

DEV.co helps companies turn open-source tools like rqlite into production software. Our software development services cover the full lifecycle — architecture, web development, integration, and maintenance — delivered by software developers and web developers who ship. Engage our software development agency to implement or customize it for your open-source databases stack.

Evaluate rqlite for your infrastructure

Request a technical architecture review or consultation to assess fit for your availability and scalability requirements. Devco can help design cluster topology, backup strategies, and integration patterns.