Deploy Dragonfly Service

Dragonfly (opens in a new tab) is a simple, high-performance, low-cost in-memory data storage. Dragonfly is fully compatible with the Redis API but without the complexity of managing Redis.

This article will teach you how to deploy your own Dragonfly service on Zeabur via the Service Market.

Step 1: Create a Project

First, we need to create a project. Go to the Projects (opens in a new tab) page, and you'll see a list of projects.

Click the "Create Project" button at the bottom of the list to create a new project.

Create Project

Step 2: Deploy Dragonfly Service

You can deploy the Dragonfly service with one click in the service market.

Press "cmd + k" or click the "Deploy New Service" button, then choose "Service Market".

Select Prebuilt

Find Dragonfly in the list and click on it to start deploying.

Select Dragonfly

Step 3: Get Connection Info

After you deploy the Dragonfly service, Zeabur will automatically inject the environment variables needed for connection into other services for you.

  • DRAGONFLY_HOST
  • DRAGONFLY_PORT
  • DRAGONFLY_PASSWORD

Sometimes we can use DRAGONFLY_URI instead of the above environment variables, for example:

redis://:${DRAGONFLY_PASSWORD}@${DRAGONFLY_HOST}:${DRAGONFLY_PORT}

We can also find the connection information in the "Instructions" section on the console.

Get Connection Info

Step 4: Start Using

You can use the connection information above to connect to the Dragonfly service in your application or client.

Since Dragonfly is fully compatible with Redis API, you can connect to the Dragonfly service using any client that supports Redis.

Connect Dragonfly