Rock8Cloud
Databases & Storage

Dragonfly

Add a Dragonfly (Redis-compatible) in-memory datastore to your project

Dragonfly is a modern, Redis-compatible in-memory datastore. Use it for caching, session storage, queues, and any workload where you'd normally use Redis.

Create a Dragonfly Service

  1. Click Add Service in your project
  2. Select Database
  3. Choose Dragonfly
  4. Select a storage size
  5. Enter a name (e.g., dragonfly-cache, dragonfly-sessions)
  6. Click Create

Rock8Cloud provisions the instance with networking handled automatically.


Environment Variables

After creation, Rock8Cloud exposes these variables for your application to connect:

VariableDescriptionExample
HOSTDragonfly hostname(auto-generated)
PORTDragonfly port6379

Linking to Your Application

  1. Go to your application service → DeploymentsEnv Vars
  2. Add the Dragonfly variables using the names expected by your framework

Common framework patterns:

# Node.js (ioredis / redis)
REDIS_HOST=<HOST>
REDIS_PORT=<PORT>
# or
REDIS_URL=redis://<HOST>:<PORT>

# Python (redis-py)
REDIS_HOST=<HOST>
REDIS_PORT=<PORT>

# Rails (Sidekiq, Action Cable)
REDIS_URL=redis://<HOST>:<PORT>/0

After saving, your application automatically redeploys with the new configuration.


Logs and History

A Dragonfly service has two tabs of its own:

  • Logs - live runtime logs streamed from the database pods. Click Start Logs to stream, scroll up to load older lines, and use copy or export to pull them out
  • History - every deployment of this service with its status, version, storage size, and replica count. The current one is highlighted at the top

Features

  • Redis-compatible - drop-in replacement for Redis, works with any Redis client library
  • High performance - multi-threaded architecture, significantly faster than Redis for many workloads
  • Persistent storage - data survives restarts and redeployments
  • Network-isolated - only accessible from services within the same project
  • Fully managed - automated lifecycle management with zero configuration

Troubleshooting

Connection refused

  • Verify the HOST variable is correct - use the auto-generated hostname provided by Rock8Cloud
  • Ensure your application service is in the same project as Dragonfly
  • Check that the Dragonfly deployment completed successfully

Client compatibility

  • Dragonfly supports the Redis protocol - use any standard Redis client
  • If using advanced Redis features (e.g., Redis Modules), check Dragonfly's compatibility docs

On this page