Need a scalable Redis replacement? Dragonfly is a modern Redis alternative that delivers 25x the performance of Redis per instance. Fully compatible with Redis API, Dragonfly scales vertically to support millions of operations per second and terabyte sized workloads, all on a single instance.
→ ~/ docker run --network=host --ulimit memlock=-1 docker.dragonflydb.io/dragonflydb/dragonfly
Dragonfly is a drop-in Redis replacement, meaning it uses the same APIs and is compatible with all of the same SDKs and tooling. Teams that switch from Redis to Dragonfly get huge performance gains and simpler system to operate, all without changing code.
25X Redis
With non-contending, multi-threaded processes, Dragonfly is architected to deliver the performance that modern applications require: millions of operations per second, all from a single instance.
View the benchmarksQPS benchmark on AWS r6gn.16xlarge. Snapshot benchmark on AWS r6gd.16xlarge.Source
25x
More QPS than Redis
12x
Faster snapshotting than Redis
Scales Vertically
Dragonfly is architected to scale vertically on a single machine, saving teams the cost and complexity of managing a multi-node cluster. For in-memory datasets up to 1TB, Dragonfly offers the simplest and most reliable scale on the market.
1 TB
In-memory datasets on a single instance
30%
Less memory usage
Unparalleled efficiency
Dragonfly utilizes unique and innovative algorithms and data structures, including dashtable and denseSet . This makes Dragonfly on average 30% more efficient than Redis, meaning you can achieve the same performance and scale on less hardware, significantly reducing total infrastructure costs. In addition, Dragonfly is much more simple to operate, resulting in a far lower total cost of ownership.
Memory usage under BGSAVE. Filling with 5GB of data using debug populate 5000000 key 1024, sending the update traffic with memtier, and snapshotting with bgsave. Source
Modern Architecture
Memory Efficient
While classic chaining hash-tables are built upon a dynamic array of linked-lists, Dragonfly's dashtable is a dynamic array of flat hash-tables of constant size. This design allows for much better memory efficiency.
High Hit Ratio
Dragonfly utilizes a unique 'least frequenty recently used' cache policy. When compared to Redis' LRU cache policy, LFRU is resistant to fluctuations in traffic, does not require random sampling, has zero memory overhead per item, and has a very small run-time overhead.
High Throughput
Dragonfly's new in-memory engine, optimized for throughput, uses a thread-per-core architecture without locks to deliver stable and low latencies. By implementing true async interfaces, Dragonfly takes full advantage of the underlying hardware to deliver maximum performance.
Dragonfly is fully compatible with the Redis ecosystem and requires no code changes to implement.