dqlite vs etcd
dqlite: Canonical's embeddable C library that makes SQLite highly available with Raft replication. etcd: Raft-based, strongly consistent key-value store that holds Kubernetes' cluster state.
key differences
- dqlite is primarily a relational database; etcd is key-value.
- Licensing: dqlite is open source (copyleft) (LGPL-3.0 with static-linking exception); etcd is open source (permissive) (Apache License 2.0).
- Only dqlite has joins, secondary indexes, json, triggers.
- Only etcd has ttl / expiry, pub/sub, role-based access, time travel.
- dqlite can run embedded in your application process.
choose dqlite for
- +Cluster state for infrastructure software (LXD, MicroK8s)
- +Kubernetes datastore replacement for etcd via kine
- +HA configuration stores in edge appliances
- +Embedding a replicated database in Go services
best at · Coordination, Metadata, Embedded
choose etcd for
- +Kubernetes and control-plane state
- +Service discovery and dynamic configuration
- +Distributed locks and leader election
- +Feature flags and small metadata for infrastructure
best at · Coordination, Metadata, Pub/Sub
dqlite vs etcd: FAQ
What is the difference between dqlite and etcd?
dqlite: Canonical's embeddable C library that makes SQLite highly available with Raft replication. etcd: Raft-based, strongly consistent key-value store that holds Kubernetes' cluster state. dqlite is primarily a relational database; etcd is key-value. Licensing: dqlite is open source (copyleft) (LGPL-3.0 with static-linking exception); etcd is open source (permissive) (Apache License 2.0). Only dqlite has joins, secondary indexes, json, triggers.
When should I choose dqlite over etcd?
Choose dqlite for cluster state for infrastructure software (LXD, MicroK8s); kubernetes datastore replacement for etcd via kine; and HA configuration stores in edge appliances. Choose etcd for kubernetes and control-plane state; service discovery and dynamic configuration; and distributed locks and leader election.
Is dqlite or etcd more popular?
etcd ranks #71 on the WhichDB Score (32.4/100) and dqlite ranks #324 (8.4/100). Popularity is not fit: check the requirements that matter for your project.
Are dqlite and etcd open source?
Yes. dqlite is open source. License: LGPL-3.0 with static-linking exception. Yes. etcd is open source. License: Apache License 2.0.