The world's most efficient in-memory data store
source availableDragonfly Source-Available Licenseself-hostablefree
Dragonfly is an in-memory data store that speaks the Redis and Memcached protocols, so existing clients and code work against it unchanged. Unlike single-threaded Redis, it uses a multi-threaded, shared-nothing design that scales vertically across a machine's cores: its README reports 3.8 million queries per second on one large AWS instance, 25 times a single Redis process, and fewer resources for the same workload. It supports Redis's data types, Lua scripting, replication, snapshots on a cron schedule, an emulated or real cluster mode and a cache mode with its own eviction design. The source is public under the Dragonfly Source-Available License (free in production up to 100 vCPUs), and DragonflyDB sells Dragonfly Cloud, a managed service on AWS, GCP and Azure.
Problems it solves
- Redis is single-threaded and maxes out one CPU core while the rest of the server sits idle
- a drop-in Redis replacement that needs no code changes
- our Redis cluster costs too much and we want to run the same workload on fewer machines
- scale an in-memory cache vertically on one big instance instead of sharding across many
- replace both Redis and Memcached with one server that speaks both protocols
- cache hit rate drops under memory pressure and we want smarter eviction
- high-throughput job queues on BullMQ or Sidekiq that overload our Redis
- real-time leaderboards with sorted sets that stay fast at millions of operations per second
- a managed Redis-compatible service on AWS, GCP or Azure that's cheaper than ElastiCache
- take automatic snapshots of an in-memory store on a cron schedule
Features
- Redis and Memcached API compatibility
- multi-threaded shared-nothing architecture that scales with cores
- Lua scripting
- replication and snapshots, with snapshot_cron schedules
- emulated and real cluster mode
- cache mode with its own eviction design
- HTTP console and admin port
- SSD data tiering (Dragonfly Cloud and Enterprise)
Ways to run it
Dragonfly Cloud
Flex tier from $36/month; Business tier from $2,000/month1
Only in this edition
- fully managed on AWS, GCP or Azure
- horizontal and vertical scaling
- SSO, MFA, LDAP and RBAC on the Business tier
- bring your own cloud on the Business tier
Dragonfly (self-managed)
free up to 100 vCPUs in production; custom pricing beyond (Dragonfly Enterprise)12
You arrange
- servers or containers to run it on
- backups and monitoring
Capabilities
| Has a command line tool | plan not known |
|---|
Alternatives
The same job
These do what Dragonfly does.
- Valkey An open source (BSD) high-performance key/value datastore
- Garnet Microsoft Research's Redis-compatible cache-store, built on .NET
- Upstash Redis Serverless Redis in the cloud with low latency and durable storage
- Redis The preferred, fastest, and most feature-rich cache, data structure server, and document and vector query engine
- Memcached A high performance multithreaded event-based key/value cache store intended to be used in a distributed system.
- Shrine File Attachment toolkit for Ruby applications