Self-host KeyDB
v6.3.4Multithreaded Redis-compatible in-memory database
- Stars
- 12 499
eqalpha/keydbWhat is KeyDB?
KeyDB is a high-performance fork of Redis aimed at developers and infrastructure teams who want more throughput from a single node without changing their Redis-based application code. It is multithreaded, keeps the Redis protocol, modules and scripts fully compatible, and acts as a drop-in replacement for existing Redis deployments. Notable capabilities include active-replication for multi-master and hot-spare failover without sentinel, an MVCC architecture that lets KEYS and SCAN run without blocking, subkey expirations, TLS encryption, RDB and AOF persistence, FLASH storage that pages from local SSD, and direct backup to AWS S3. You run it by compiling on Linux, installing DEB/RPM packages, or pulling the eqalpha/keydb Docker image; cluster and active-replica topologies let you scale horizontally. FLASH storage is described as experimental/beta. KeyDB is maintained as part of Snap Inc., is fully open source under BSD-3, and has no separate commercial product or paid support.
KeyDB alternatives
ValkeySelf-hosted, open-source Valkey is an in-memory key-value database for caching, queues and primary data, with replication, Sentinel failover and cluster sharding.CompareValkey with KeyDB
RedisRedis is a self-hosted, open-source in-memory data structure server used as a database, cache, message broker, and vector query engine with sub-millisecond latency.CompareRedis with KeyDB
Redis CommanderSelf-hosted, open-source web app to view, edit and manage Redis databases across standalone, Sentinel and Cluster setups, with a browser Redis CLI and tree key view.CompareRedis Commander with KeyDB
etcdA self-hosted, open-source distributed key-value store using Raft consensus for critical data in clustered systems. CNCF graduated project.Compareetcd with KeyDB
MemcachedSelf-hosted, open-source in-memory object cache that fronts databases and APIs; a single multithreaded daemon pooling RAM across your own servers.CompareMemcached with KeyDB
tidbSelf-hosted, open-source distributed SQL database with MySQL compatibility, ACID transactions, HTAP analytics and vector search in one engine.Comparetidb with KeyDB
gtsdbGTSDB is a self-hosted, open-source time-series database in Go using WAL-first architecture for sub-millisecond reads and 233x faster writes than InfluxDB.Comparegtsdb with KeyDB
memgraphSelf-hosted, open-source in-memory graph database with Cypher, vector indexes and the MAGE algorithm library for GraphRAG and real-time graph analytics.Comparememgraph with KeyDB
Should you self-host KeyDB?
KeyDB scores 67/100 on selfhost.directory (how scoring works) and ranks #17 of 38 in Databases. It has 12 499 GitHub stars, -4 in the last 30 days.
There was no stable release in the past 12 months, so check the repository's recent activity before you rely on it.
Setup is easy: most people get it running in one sitting. An official Docker image is available. It is BSD-3-Clause-licensed and written mostly in C++.
Its closest alternative on selfhost.directory is llm-app (72/100, 58 720 stars). It scores higher overall, so compare the two before you pick. See KeyDB vs llm-app side by side.
Features
- Active replication / multi-master
- Cluster mode sharding
- FLASH storageConsidered experimental (beta) in the sources.
- Multithreaded engine
- MVCC non-blocking queries
- RDB and AOF persistence
- Redis protocol compatibility
- S3 dump/load backup
- Subkey expiration
- TLS Encryption
KeyDB README
KeyDB is now a part of Snap Inc! Check out the announcement here
Release v6.3.0 is here with major improvements as we consolidate our Open Source and Enterprise offerings into a single BSD-3 licensed project. See our roadmap for details.
Want to extend KeyDB with Javascript? Try ModJS
Need Help? Check out our extensive documentation.
KeyDB is on Slack. Click here to learn more and join the KeyDB Community Slack workspace.
KeyDB is a high performance fork of Redis with a focus on multithreading, memory efficiency, and high throughput. In addition to performance improvements, KeyDB offers features such as Active Replication, FLASH Storage and Subkey Expires. KeyDB has a MVCC architecture that allows you to execute queries such as KEYS and SCAN without blocking the database and degrading performance.
More in Databases
Manticore SearchSelf-hosted, open-source search database that speaks SQL and HTTP JSON, with full-text, vector, hybrid and conversational search pitched as an Elasticsearch alternative.
minikvA self-hosted, open-source distributed key-value and object store written in Rust that achieves strong consistency through Raft consensus and two-phase commit.
mongoSelf-hosted MongoDB Community Server: the source-available document database with replica sets, sharding, ACID transactions, and built-in search.
MyDuck ServerMyDuck Server is a self-hosted, open-source analytics server with MySQL/PostgreSQL wire protocols and DuckDB's OLAP engine for 1000x faster queries.
MySQL 5.7Open-source SQL database server you can self-host as MySQL Community via Docker or Oracle packages, with InnoDB ACID transactions, JSON and replication.
neo4jSelf-hosted, open-source graph database: query connected data with Cypher under ACID transactions. Run the free GPLv3 Community Edition via Docker, packages, or Helm.
oceanbaseSelf-hosted, open-source distributed SQL database that is MySQL compatible and handles OLTP plus real-time HTAP analytics, vector and full-text search in one engine.
OmniDBOpen-source, self-hosted web tool for database management: query editor, database tree, monitoring, explain visualizer, LDAP login and an optional PostgreSQL backend.
panySelf-hosted semantic search engine running in PostgreSQL via pgvector, using CLIP embeddings for text and image search to replace Pinecone or Weaviate.
Percona Server for MongoDBSelf-hosted, source-available MongoDB drop-in replacement adding enterprise features like LDAP auth, encryption, hot backup, and auditing without vendor lock-in.
Percona Server for MySQLOpen-source, self-hosted drop-in replacement for MySQL adding enterprise-style high availability, online backups, encryption and performance tooling under GPLv2.
Percona XtraDB ClusterSelf-hosted MySQL clustering with synchronous Galera replication, automatic node sync, and high availability. Runs via packages, Docker, or source.
0 comments