Dragonfly: Modern in-memory data store
In-memory data store with Redis/Memcached API compatibility and multi-threaded C++.
Learn more about Dragonfly
Dragonfly is an in-memory key-value data store that serves as a drop-in replacement for Redis and Memcached. The system is implemented in C++ with a multi-threaded architecture using fiber-based concurrency, allowing it to scale vertically across multiple CPU cores. It maintains full API compatibility with Redis and Memcached protocols, requiring no application code changes for adoption. The database supports features like vector search, message brokering, and various data persistence options including snapshotting.
Multi-threaded Architecture
Uses fiber-based concurrency and multi-threading to utilize multiple CPU cores, unlike Redis's single-threaded design. This allows throughput to scale with instance size rather than hitting CPU bottlenecks.
Memory Efficiency
Implements a custom data structure called Dashtable that reduces memory overhead. Shows 30% better memory efficiency compared to Redis in idle state and minimal memory increase during snapshot operations.
API Compatibility
Maintains full compatibility with Redis and Memcached APIs and protocols. Applications can migrate without code changes while gaining access to additional features like vector search capabilities.
Adds Global Vector index support, unicode tags, and improves memory defragmentation for JSON objects.
- –Support Global Vector index
- –Support unicode tags
- –django-cacheops compatibility fixes
- –better memory defragmentation for json objects
- –actions: Add a volume mount to container
Improvements around tiering stability and replica replication fixes.
- –improvements around tiering stability
- –replica rejects replicating from itself
Critical fix for regression when Dragonfly runs in cache mode - strongly advised to update from 1.34.0/1.34.1.
- –Don't accumulate deleted bytes if there is no RSS eviction
Top in Backend & APIs
Related Repositories
Discover similar tools and frameworks used by developers
Laravel
Full-stack PHP framework with ORM and dependency injection.
Evolution API
Node.js REST API for programmatic WhatsApp control.
PHPMailer
SMTP client and MIME message builder for PHP.
Spring Framework
Comprehensive framework for building enterprise Java applications with infrastructure support.
Ruby on Rails
Convention-driven Ruby framework for full-stack web applications.