---
title: Deploy Valkey with AI on Blossom
url: "/deploy/valkey/"
canonical_url: https://blossom88.com/deploy/valkey/
markdown_url: https://blossom88.com/deploy/valkey.md
summary: Use append-only persistence to keep a small Valkey queue through a Container
  update.
categories:
- deployment
- databases
stack:
- C
- Redis protocol
---

# Deploy Valkey with AI on Blossom

[Valkey](https://valkey.io/) is an in-memory data store that uses the
Redis protocol. You can use it to cache values, store lists, and
build simple queues.

## Ask Your Agent

> **Ask your AI agent:** Deploy Valkey on Blossom and help me make a small queue that survives updates.
>
> Follow this guide: https://blossom88.com/deploy/valkey/

[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 |
|---|---|---|
| Valkey | Store queue state and append changes to disk | Private Persistent Service |
| Redis-compatible client | Add, consume, and check sample messages | Blossom Job |

## Deploy Valkey

Use the [official Container image](https://valkey.io/download/9.2/).
Keep Valkey private, configure a strong password, and enable
[append-only persistence](https://valkey.io/docs/topics/persistence/).

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

Use a [Persistent Service Volume](/docs/apps/persistent-services/)
at `/data`. Create a Valkey configuration with `appendonly yes`
and `appendfsync everysec`. Use Blossom Variables and Links to
supply the password. Check the private connection on port `6379`.

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

</details>

## Queue Two Messages

Put two test messages on a list and consume the first. Check that
the second message is still pending.

> **Ask your AI agent:** Help me queue two sample messages, consume the first, and find the message still waiting.

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



![Consume the welcome message from a queue of two.](/deploy/assets/images/valkey/queue-before-update.webp)

## Check the Queue After an Update

Replace the Container on the same Volume. Confirm the pending
message still exists and the consumed message is absent.

> **Ask your AI agent:** Replace Valkey and confirm the sample queue kept exactly the message I haven't consumed.

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



![Confirm that only the follow-up remains after replacing Valkey.](/deploy/assets/images/valkey/queue-after-replacement.webp)

## What You Get

A private Valkey instance with a sample queue and a way to keep it
through a Container update.

## What You Get

- A private Valkey instance with authentication
- A sample queue saved to an append-only file
- A pending message after replacing the database Container

Tested on Blossom: Valkey kept exactly the pending message after replacing its Container.
