How it helps your business
Key Benefits
- Performance without Sharding: Scale vertically to handle terabytes of data on a single machine.
- Drop-in Redis Replacement: All your favorite libraries, drivers, and tools work out of the box.
- Superior Memory Efficiency: Store significantly more data in the same amount of RAM compared to Redis.
- Modern Data Types: Power next-gen apps with native support for Vector Search and JSON.
- Simplified Operations: Eliminate the complexity of cluster managers and sentinel setups.
Production Architecture Overview
- Dragonfly Engine: The multi-threaded, statically linked binary.
- Persistent Storage: High-speed SSDs for fast snapshotting and recovery.
- Monitoring: Native Prometheus exporter for real-time performance tracking.
- Load Balancer: Standard proxy (like HAProxy or Nginx) for high available setups.
How we deploy this for you
Security Hardened
Firewalls, SSL, and hardened kernels out of the box.
Performance Tuned
Optimized for speed with cache and DB fine-tuning.
Automated Backups
Daily off-site backups so you never lose your data.
Private Cloud
You own the server and the data. No middleman.
Implementation Blueprint
Prerequisites
sudo apt update && sudo apt upgrade -y
sudo apt install docker.io docker-compose -y
sudo systemctl enable docker
sudo systemctl start dockerDocker Compose Production Setup
version: '3'
services:
dragonfly:
image: docker.dragonflydb.io/dragonflydb/dragonfly:latest
container_name: dragonfly
ports:
- "6379:6379"
volumes:
- dragonfly_data:/data
command:
- --dir=/data
- --dbfilename=dump.rdb
- --memcache_port=11211 # Optional Memcached support
ulimits:
memlock: -1
nofile:
soft: 65535
hard: 65535
restart: always
volumes:
dragonfly_data:Kubernetes Production Deployment (Recommended)
# Install the Operator
helm repo add dragonfly https://dragonflydb.github.io/dragonfly-operator
helm install dragonfly-operator dragonfly/dragonfly-operator --namespace monitoring --create-namespace
# Deploy an instance
kubectl apply -f https://raw.githubusercontent.com/dragonflydb/dragonfly-operator/main/config/samples/simple.yaml- Automated Snapshots: Schedule background snapshots to PVC or S3 buckets.
- Safe Scaling: Vertically scale CPU and memory without interrupting service.
- High Availability: Automatically manages failover and healing.
Scaling Strategy
- Vertical Scaling: Simply increase the CPU cores and RAM allocated to the container. Dragonfly will automatically detect and utilize the new resources.
- Persistence Tuning: For write-heavy loads, adjust the snapshot frequency to balance between recovery time and I/O overhead.
- Network Optimization: In high-throughput settings, use host-networking to minimize Docker bridge overhead.
Security & Reliability
- Password Protection: Always use the
--requirepassflag to secure your instance. - TLS/SSL: Use a sidecar proxy (like Envoy or Nginx) to provide encrypted connections for sensitive traffic.
- Regular Monitoring: Use the built-in Prometheus metrics to track memory usage and evictions to prevent OOM events.
Includes Security & performance standards
Best place to host Dragonfly
We recommend Hostinger for its reliability and low cost. It's the perfect home for your new apps, featuring easy setup and 24/7 support.
Get Started on HostingerCompare Similar Tools
Kubernetes
Kubernetes is a production-grade, open-source platform for automating deployment, scaling, and operations of application containers.
Supabase
Supabase is the leading open-source alternative to Firebase. It provides a full backend-as-a-service (BaaS) powered by PostgreSQL, including authentication, real-time subscriptions, and storage.