Infrastructure & Operations · Databases
Dragonfly
A Redis and Memcached compatible in-memory datastore
Dragonfly is a shared-nothing in-memory datastore for teams running Redis or Memcached workloads that need vertical scaling across CPU cores. DragonflyDB maintains it, and the software uses Business Source License 1.1, a source-available license with service restrictions. Dragonfly Cloud is hosted, with Flex plans starting at $36 per month.
Key facts
- License
- Business Source License 1.1 (source-available)
- Main language
- C++
- Maintainer
- DragonflyDB
- First released
- 2022
- Latest release
- v2.0.2, October 7, 2026
- GitHub stars
- 31,812, October 2026
- Hosted option
- Dragonfly Cloud Flex from $36/month; Business from $2,000/month
What Dragonfly is
Dragonfly is an in-memory datastore designed for application workloads using Redis or Memcached APIs. Roman Gershman and Oded Poncz started the project after working with in-memory stores at Ubimo and a cloud infrastructure company, and DragonflyDB maintains it. The first public release was v0.1.0 on May 30, 2022, while the repository was created in December 2021. The repository lists 31,812 GitHub stars, 1,285 forks, and contributors including romange, dranikpg, and kostasrim. Dragonfly describes itself as a replacement for Redis and Memcached. Its README reports project benchmarks above 3.8 million queries per second on a c6gn.16xlarge instance, plus higher figures in pipelined tests. These are maintainer-run benchmarks rather than independent measurements.
How it works
A typical deployment accepts Redis-compatible client traffic, or Memcached traffic when that interface is enabled, which can reduce application changes during migration. Cache mode adds adaptive eviction near the configured memory limit. Operators can expose Prometheus-compatible metrics and an HTTP console, although the README recommends keeping that console inside a safe network. Compatibility still requires workload-specific checks because supported commands and behavior can differ from Redis or Memcached.
Architecture and recent releases
Dragonfly uses a shared-nothing architecture that partitions the keyspace into per-thread shards. The repository's main implementation languages are C and C++, with Go, Python, Lua, Shell, and build tooling also present. Release v2.0.0 added Valkey 9 RDB loading and GEOSEARCHSTORE while improving replication, tiered storage, streams, RESP3 behavior, and RESTORE validation. Release v2.0.2, published October 7, 2026, fixed crashes, ACL checks, persistence reporting, vector restoration, and cluster address advertisement. The project publishes regular release changes through GitHub.
License and pricing
Dragonfly is released under Business Source License 1.1, a source-available license rather than an OSI-approved open source license. Its terms permit ordinary application workloads while restricting offering Dragonfly or an in-memory datastore as a service. The published change date is November 1, 2030. DragonflyDB offers Dragonfly Cloud, including a Flex tier starting at $36 per month and a Business tier starting at $2,000 per month. Cloud charges can also depend on provisioned memory, performance tier, provider, region, and data transfer. Self-managed enterprise authentication and support use contact-sales pricing. Teams operating a hosted service should obtain license advice before deployment.
Limitations and how it compares
Dragonfly fits workloads where Redis or Memcached API compatibility matters and multi-core vertical scaling may reduce operational complexity. Redis remains the closest comparison for command familiarity and broad deployment experience, while Valkey offers an open source Redis-compatible path. Memcached is a simpler cache with a smaller feature set, and Elasticsearch targets distributed search and analytics rather than general-purpose in-memory data storage. Dragonfly's service restriction also separates it from projects with more permissive licensing. Teams should measure their own commands, persistence, replication, memory, and latency requirements before migrating. Choose Dragonfly for a compatible in-memory store with shared-nothing scaling and hosted deployment, not for building a competing datastore service.
Main features
- Redis Compatibility. Supports Redis-compatible client traffic and approximately 185 Redis commands, with compatibility expanding through Valkey and Redis-related improvements.
- Memcached Compatibility. Provides a Memcached-compatible interface that can be enabled with configuration, supporting migrations from established cache deployments.
- Shared-Nothing Sharding. Partitions keyspace data between threads, allowing Dragonfly to use multiple CPUs while preserving atomicity guarantees for operations.
- .
- Tiered Storage. Can move suitable values to tiered storage while retaining database features such as accounting, journaling, and cluster operations.
- Search and Vectors. Includes search capabilities and HNSW vector indexes, with recent fixes covering vector restoration and search-indexed hashes.
- Metrics and Console. Exports Prometheus-compatible metrics and includes an HTTP console that can be disabled or restricted through server configuration.
Self-hosting Dragonfly
Dragonfly can run from a published binary, a container, or a Helm deployment on Kubernetes. A host needs enough memory for the dataset because Dragonfly is an in-memory datastore, but the project does not publish one universal minimum CPU or RAM requirement. Configure authentication, bind addresses, maxmemory, persistence paths, and TLS before exposure. Review command compatibility, replication behavior, and release notes before major upgrades.
Strengths
- Redis and Memcached API compatibility can reduce application changes.
- Shared-nothing sharding uses multiple CPU cores for vertical scaling.
- Dragonfly Cloud supports managed deployment across AWS, GCP, and Azure.
Drawbacks
- Business Source License restrictions affect companies offering datastore services.
- The project does not publish a universal minimum hardware requirement.
- Compatibility still requires workload-specific checks against Redis behavior.
What teams replace with it
Teams usually evaluate Dragonfly when they want to move off Redis Enterprise, Amazon ElastiCache, Redis Cloud, Memorystore.
For side-by-side commercial comparisons, browse our alternatives hub.
Open-source alternatives to Dragonfly
- Redis
- Valkey
- KeyDB
- Memcached
- Garnet
Frequently asked questions
Is Dragonfly free to use?
Dragonfly software is released under Business Source License 1.1, which permits ordinary workload use under its terms. The license restricts offering Dragonfly or an in-memory datastore as a service. Dragonfly Cloud is paid, with Flex plans starting at $36 per month and Business plans starting at $2,000 per month. Self-managed enterprise support uses contact-sales pricing.
Can companies use Dragonfly commercially?
Commercial application use is allowed under Business Source License 1.1, subject to the service restriction. Companies should review the license before embedding Dragonfly in a product that exposes datastore functionality to customers or operates a competing managed datastore service. DragonflyDB also sells self-managed enterprise authentication and support, with pricing handled through its sales process.
How do you self-host Dragonfly?
Run Dragonfly from a published binary, container, or Helm deployment. Configure binding, authentication, memory limits, persistence paths, TLS, and metrics for the environment. The project does not publish one universal minimum hardware specification, so capacity planning depends on dataset size, replication, persistence, and workload.
How does Dragonfly compare with Redis?
Dragonfly targets Redis-compatible workloads while using shared-nothing, per-thread shards to scale across CPU cores. Redis has broader historical recognition and remains the closest compatibility reference. Migration teams should compare command coverage, persistence behavior, replication requirements, performance, memory use, and the Business Source License before choosing between them.
Does Dragonfly protect private data?
Self-hosted Dragonfly keeps deployment control with the operator, while Dragonfly Cloud supports deployment on AWS, GCP, and Azure. The README documents password authentication, TLS options, ACL behavior, and a warning to keep the HTTP console inside a safe network. Operators remain responsible for network controls, backups, access policies, encryption choices, and storage protection in either deployment model.
Similar projects to compare
- ActiveloopApache-2.0Activeloop Deep Lake is an Apache-2.0 multimodal AI data runtime, database, and vector store for teams building retrieval and training systems around text, images, audio, video, metadata, and embeddings. The Python-centered open-source package supports local and customer-cloud storage, while Activeloop offers hosted storage, a managed tensor database, Knowledge Agents, and enterprise deployment options.
- Apache DruidApache-2.0Apache Druid is an Apache-licensed real-time analytics database for event-oriented data, fast aggregations, and highly concurrent applications. It suits teams building analytical applications, operational dashboards, and APIs over streaming or batch data. Teams can self-host it, while Imply Polaris offers managed Druid service from $100 per month plus usage charges.
- Apache IoTDBApache-2.0Apache IoTDB is an Apache License 2.0 time-series database for industrial IoT collection, storage, and analysis. It targets teams managing sensor data across edge and cloud deployments. The software is free to self-host, while Timecho offers commercial products and support based on IoTDB. No public hosted Apache IoTDB price is published.
- Beekeeper StudioGPL-3.0 for Community Edition; commercial source-available license for paid componentsBeekeeper Studio is a cross-platform SQL editor and database manager for developers, analysts, and database administrators. The Community Edition is free under GPLv3, while commercial features use a source-available commercial license. It runs on Windows, macOS, and Linux, and Professional and Business subscriptions include cloud workspaces.
- Chat2DBLicenseRef-Chat2DB, modified Apache-2.0 for v5.3.0 and later; source-available with additional use and distribution conditionsChat2DB is a cross-platform database client and SQL workspace for developers, DBAs, analysts, and data teams. Community 5.3.0 and later uses a modified Apache 2.0 license with source-available restrictions. Desktop and Docker use can be local, while commercial Pro and Enterprise offerings add hosted services, accounts, collaboration, and governance.
- ChromaApache-2.0Chroma is an Apache-2.0 search database for AI applications, aimed at developers building retrieval, agent memory, and context systems. It supports local and distributed deployment through Python, JavaScript, and Rust components. Chroma Cloud is a hosted, serverless service with regional placement, usage-based billing, and $5 in credits for new users.