Eng [upd]: Keydb
When benchmarking KeyDB, be aware that the standard redis-benchmark tool is single‑threaded and too slow to properly stress a multi‑threaded KeyDB instance. Use a multi‑threaded benchmarking tool such as memtier_benchmark for accurate results.
A powerful testament to the KeyDB engine's capabilities is its adoption by , the parent company of Snapchat. At the end of 2021, KeyDB found its permanent home at Snap, where it powers a major part of the backend caching layer. Snap's commitment to open source meant that all of KeyDB's advancements, including previously monetized features, are now shared with the community under a BSD-3 license.
NVMe storage is significantly cheaper per gigabyte than DRAM. keydb eng
Compare to other databases (like DragonFly or Redis) Configure Active-Active replication for your environment Optimize FLASH storage settings for cost-efficiency
Applications experiencing heavy load, such as real-time analytics, gaming, or high-volume messaging systems, benefit from KeyDB's ability to handle parallel requests. When benchmarking KeyDB, be aware that the standard
The engineering effort has paid off handsomely. Early benchmarks showed a single KeyDB instance achieving just over five times more operations per second than a single Redis instance, with nearly five times lower latency. Even when running with a single thread, KeyDB holds about a five percent performance advantage over Redis, thanks to careful optimisations in the codebase.
KeyDB runs the core event loop concurrently across multiple threads. Network I/O, serialization protocol parsing, and query execution are distributed across all configured server-threads . When a client establishes a connection, it is assigned to a specific thread on accept() . At the end of 2021, KeyDB found its
KeyDB ships with its own CLI client, which is fully compatible with Redis commands:
This public link is valid for 7 days and shares a thread, including any personal information you added. This link or copies made by others cannot be deleted. If you share with third parties, their policies apply. Can’t copy the link right now. Try again later.
version: "3.9" services: keydb: image: eqalpha/keydb:latest ports: - "6379:6379" volumes: - ./data:/data - ./conf/keydb.conf:/etc/keydb/keydb.conf:ro command: keydb-server /etc/keydb/keydb.conf --requirepass $KEYDB_PASSWORD healthcheck: test: ["CMD-SHELL", "keydb-cli -a $$KEYDB_PASSWORD -p 6379 PING | grep -q PONG"] interval: 10s timeout: 3s retries: 10
KeyDB is not the only NoSQL database on the market, and it's essential to compare it with other popular options. Here's a brief comparison with other NoSQL databases: