Why Dragonfly DB Claims 25× Redis Speed and How to Get Started
Dragonfly DB is a high‑performance, Memcached‑ and Redis‑compatible in‑memory database that reportedly delivers up to 25× Redis throughput, with a shared‑nothing, multithreaded architecture; this guide shows quick Docker deployment on Linux/macOS, client access methods, Spring cache integration, and key usage notes.
Dragonfly DB is a high‑performance, Memcached and Redis API compatible in‑memory database that claims 25× the performance of Redis and supports up to a million QPS per instance.
Quick Start
On Linux
docker run --network=host --ulimit memlock=-1 docker.dragonflydb.io/dragonflydb/dragonflyOn macOS
docker run -p 6379:6379 --ulimit memlock=-1 docker.dragonflydb.io/dragonflydb/dragonflyOn macOS the host network mode is not supported. See the related issue for details.
Windows version not supported
Using Client Access
Browser HTTP endpoint
http://127.0.0.1:6379
redis-cli access
Use redis-cli to query server version and other info.
~ redis-cli
127.0.0.1:6379> info
# Server
redis_version:df-v0.13.1
redis_mode:standalone
arch_bits:64
multiplexing_api:iouring
tcp_port:6379
uptime_in_seconds:11
uptime_in_days:0Spring Cache (Lettuce) client
Maven dependency
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
</dependency>Application configuration
spring:
data:
redis:
host: 127.0.0.1
port: 6379RedisTemplate operations with DragonflyDB
@Autowired
private RedisTemplate redisTemplate;
redisTemplate.opsForValue().set(key, value);Summary
Since version 0.13, Dragonfly fully implements compatibility with all Redis server commands and protocols, allowing applications to connect to Dragonfly using the existing Redis ecosystem.
References
[1] Dragonfly DB: https://github.com/dragonflydb/dragonfly
[2] Related issue: https://github.com/docker/for-mac/issues/1031
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
Java Architecture Diary
Committed to sharing original, high‑quality technical articles; no fluff or promotional content.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
