---
title: Deploy Dragonfly with AI on Blossom
url: "/deploy/dragonfly/"
canonical_url: https://blossom88.com/deploy/dragonfly/
markdown_url: https://blossom88.com/deploy/dragonfly.md
summary: Use a Redis client with a private Dragonfly instance and reload sample keys
  from a snapshot.
categories:
- deployment
- databases
stack:
- Dragonfly
- Redis protocol
---

# Deploy Dragonfly with AI on Blossom

[Dragonfly](https://github.com/dragonflydb/dragonfly) is an in-memory
data store that supports the Redis protocol. This recipe writes a
string, a hash, and a sorted set and checks they reload after an update.

## Ask Your Agent

> **Ask your AI agent:** Deploy Dragonfly on Blossom and help me save and reload a few test keys.
>
> Follow this guide: https://blossom88.com/deploy/dragonfly/

[Install the Blossom CLI and skill](https://docs.blossom88.com/learn/getting-started/install/) on your agent's machine and [choose a Location in your cloud account](https://docs.blossom88.com/learn/getting-started/choose-your-cloud/#connect-your-provider).

## How It Runs

| Part | Role | Where |
|---|---|---|
| Dragonfly | Store test values and write snapshots | Private Persistent Service |
| Redis-compatible client | Write, save, and reload test values | Blossom Job |

## Deploy Dragonfly

Use the [official Container image](https://www.dragonflydb.io/install),
keep port `6379` private, and configure a strong password. The
[version 2.1 license](https://github.com/dragonflydb/dragonfly/blob/v2.1/LICENSE.md)
is source-available and allows up to 100 aggregate vCPUs in production
before a commercial license is required.

<details class="optional-reading" markdown="1">
<summary>Notes for your agent</summary>

Mount a [Persistent Service Volume](/docs/apps/persistent-services/)
at `/data`, set the snapshot directory and filename, and store
`DFLY_requirepass` in Blossom Variables and Links. Choose a memory
limit below the Container's allocation.

    blossom environment:deploy --id environment-100 --follow

</details>

## Write and Save Three Keys

Add a release status, a hash of service states, and a sorted list of
priorities. Run `SAVE` and confirm that all three keys can be read.

> **Ask your AI agent:** Help me write and save a sample string, hash, and sorted set with a Redis client.

> Follow this guide: https://blossom88.com/deploy/dragonfly/



![Save a release status, service states and sorted priorities.](/deploy/assets/images/dragonfly/saved-test-keys.webp)

## Reload the Snapshot After an Update

Replace the Container on the same Volume and read the three keys
again.

> **Ask your AI agent:** Replace the Dragonfly Container and confirm the same three keys and values reload.

> Follow this guide: https://blossom88.com/deploy/dragonfly/



![Read all three exact values after replacing the Container.](/deploy/assets/images/dragonfly/test-keys-after-replacement.webp)

## What You Get

A private data store with a saved snapshot and a Redis-compatible
client workflow.

## What You Get

- A private Dragonfly instance with authentication
- A snapshot containing three sample keys
- The same values after replacing the Container

Tested on Blossom: All three Redis-compatible values matched after replacing Dragonfly.
