KiviDB vs Dragonfly: A Deeper Look at Multi-Core Architecture
Abbas Ali ·
Redis's single-threaded core has been the industry's best-known bottleneck for years. Two projects have gone after it head-on with completely different engines: KiviDB and Dragonfly. Both speak the Redis protocol. Both are built for modern multi-core hardware. Both report large throughput gains over Redis. Under the hood, though, they solve the concurrency problem in genuinely different ways, and that difference shows up in the benchmarks, the feature set and the operational trade-offs.
This is a direct, technical comparison of the two, using the same publicly reproducible benchmark on both.

The core architectural difference
Redis runs a single-threaded event loop. However many cores the machine has, one core does the work on the data. That was a reasonable design in 2009, when a handful of cores was normal. On a modern 48- or 96-core server, it means most of the machine sits idle.
Dragonfly and KiviDB both reject that model, but they reach "multi-core" by different routes.
Dragonfly is written in C++ and uses a thread-per-core, shared-nothing design. The keyspace is partitioned across threads, and each thread owns its slice outright. There are no locks on the data: threads coordinate by passing messages, scheduled with fibers on Dragonfly's own I/O library (helio, built on Linux's io_uring). A request for a key that another thread owns is handed to that thread. The result avoids lock contention entirely, at the cost of a hop whenever a request lands on the "wrong" thread, and a more intricate internal scheduler.
KiviDB is written in Rust and takes the opposite trade. Its keyspace is split into many more shards than there are cores: eight per core, rounded up to a power of two, so 512 shards on a 64-core machine. Each shard has its own read-write lock. Connections run on a work-stealing multi-threaded runtime (Tokio), so any thread can serve any key — there is no owner thread to hop to. With eight times as many shards as threads, two threads rarely want the same shard at the same moment, so the locks are almost always uncontended.

In short: Dragonfly removes locks and pays in message passing; KiviDB keeps locks but makes them so fine-grained that they rarely collide, and never needs to move a request between threads. Neither approach is inherently right — but they fail differently under load, and the second is what the benchmark below reflects. Rust also brings memory safety at compile time without a garbage collector, which removes a whole class of bugs that C++ has to guard against by discipline and tooling.
Benchmark results
The most direct comparison is throughput on identical hardware with the same tool. These figures come from memtier_benchmark with a pipeline depth of 10 (60 threads × 5 clients), each store running on an AWS Graviton3 c7gn.12xlarge with the load generated from a c7gn.16xlarge in the same zone. Redis is included as the baseline. The full harness is public at github.com/kividbio/kivi-benchmark for anyone who wants to reproduce the numbers.
| Workload | KiviDB v1.0.5 | Dragonfly v1.37.0 | Redis 8.6 |
|---|---|---|---|
| Pipelined write (ops/sec) | 18.5M | 5.6M | 591K |
| Pipelined read (ops/sec) | 25.9M | 8.8M | 1.1M |
| Mixed 1:1 read/write (ops/sec) | 27.9M | 9.0M | 914K |
| p99 latency, write | 0.35 ms | 3.71 ms | 20.22 ms |
| p99 latency, read | 0.32 ms | 0.74 ms | 4.70 ms |
| p99 latency, mixed | 0.34 ms | 0.79 ms | 5.59 ms |

On this benchmark KiviDB is about 3.3× Dragonfly on writes, 2.9× on reads and 3.1× on mixed traffic, and its p99 stays around a third of a millisecond in all three, while Dragonfly's write p99 is roughly ten times higher. Both post large multiples over Redis, which confirms the thesis the two projects share: a single-threaded engine cannot keep up with a properly parallel one on modern hardware, whichever parallel strategy you choose.
It is worth being direct about the limits of any pipelined memtier run: it measures one workload shape — batched commands over a modest number of connections — and won't necessarily predict behaviour under thousands of low-pipeline connections or heavy multi-key transactions. Before choosing either engine for production, run your own workload through both.
Feature surface
Raw throughput is only part of the decision. The two also differ in what they support out of the box.
Search and vectors. Both implement Redis-style search with vector similarity (FT.CREATE / FT.SEARCH, with HNSW and FLAT indexes), so this is no longer a differentiator on its own. KiviDB indexes on write, so a vector is searchable as soon as it is stored, and its snapshots save the HNSW graph itself, so a restart restores the same search quality without rebuilding the index from scratch.
JSON and time series. Both support JSON documents with JSONPath. KiviDB also includes a time series engine with the RedisTimeSeries command set (TS.ADD, TS.RANGE, aggregations and retention policies). If time series matter to you, check Dragonfly's command reference for the TS.* commands you rely on.
Persistence. Dragonfly persists with point-in-time snapshots, taken without forking — an improvement on Redis's fork-based snapshots — rather than an append-only file. KiviDB supports both an append-only file and snapshots, so you get two independent durability mechanisms: the log for recent writes, the snapshot for fast restarts.
Licensing. Neither is open source. Dragonfly is source-available under the Business Source License 1.1. KiviDB's engine is also licensed under the Business Source License 1.1, but its source is not public. Neither is a permissive license like Valkey's BSD 3-Clause, so if OSI-approved licensing is a hard requirement, factor that into either evaluation.
Running it managed
Both have a managed service. With one replica for high availability, on-demand list prices in US regions (read October 5, 2026):
| Dataset | KiviDB Cloud | Dragonfly Cloud |
|---|---|---|
| 5 GB | $95.54/month | $143.00/month |
| 25 GB | $392.70/month | $550.00/month |
| 100 GB | $1,570.42/month | $2,200.00/month |
Dragonfly Cloud's figures are our arithmetic on its published rate, not a quote. KiviDB Cloud is priced as Pro, standard throughput, and runs on AWS, Azure and Google Cloud — or in your own cloud account.
Where each one is stronger
Dragonfly's advantages: it has been in production since 2022, is backed by a well-funded company, has a large public community, and runs an established managed service. That maturity means more battle-tested edge cases and more people to ask when something goes wrong at 2 a.m.
KiviDB's advantages: about three times Dragonfly's throughput on the same benchmark at a fraction of its tail latency, a request path that never hops between threads, two persistence mechanisms instead of one, a native time series engine, and a managed service that costs less at every size we compared.
The honest trade-off: KiviDB is the newer of the two, built by a small team, and hasn't yet built up Dragonfly's multi-year production record. Which matters more depends on whether your priority is proven maturity or a higher performance ceiling and a lower bill.
Quick comparison
| KiviDB | Dragonfly | |
|---|---|---|
| Language | Rust | C++ |
| Concurrency model | Many fine-grained locked shards (8 per core), any thread serves any key | Thread-per-core, shared-nothing, message passing |
| Pipelined read throughput* | 25.9M ops/sec | 8.8M ops/sec |
| p99, pipelined write* | 0.35 ms | 3.71 ms |
| Vector search | Yes (HNSW + FLAT, indexed on write) | Yes (HNSW + FLAT) |
| JSON | Yes | Yes |
Time series (TS.*) | Yes | Check its command reference |
| Persistence | Append-only file + snapshots | Forkless snapshots |
| License | BSL 1.1, source not public | BSL 1.1, source-available |
| Managed, 25 GB with a replica | $392.70/month | $550.00/month |
| In production since | 2026 | 2022 |
*AWS Graviton3 c7gn.12xlarge, memtier_benchmark, pipeline depth 10, 60 threads × 5 clients.
Conclusion
KiviDB and Dragonfly prove the same point: Redis's single-threaded core is no longer a good match for the hardware most teams run, and a properly parallel engine can deliver an order of magnitude more throughput without changing a line of client code. Dragonfly got there first and has the track record to show for it. KiviDB took a different route — fine-grained shards that any thread can serve, rather than threads that own their data — and on the same hardware it currently shows about three times Dragonfly's throughput with a much tighter tail.
The practical advice is the same for any young, high-performance database: run your actual workload against both, not just the numbers either vendor publishes. Our benchmark guide has everything you need to start.