Valkey is now available

Valkey is now available

April 16, 2025· Rémi Lejeune
Rémi Lejeune
·Reading time: 5 minutes

We’re excited to announce the availability of Valkey, a high-performance, open-source key/value database, now offered as a managed service on Upsun. Valkey serves as a drop-in alternative to Redis, particularly relevant following recent licensing changes to the Redis project.

If you’re looking for a seamless transition from Redis or starting a new project requiring a fast key-value store, Valkey is ready for you.

Why a Redis Alternative? The licensing context

On March 20, 2024, Redis Ltd. announced a shift to a dual-license model: RSALv2 (Redis Source Available License v2) and SSPL (Server Side Public License v1). Similar moves were previously made by MongoDB and Elasticsearch.

The SSPL, in particular, poses challenges for cloud providers like Upsun and Platform.sh. It requires providers offering the software as a service to release the source code of all management and supporting software. This would include substantial parts of the Upsun platform stack, which is not feasible for us.

This licensing change left us with two potential paths:

  1. Offer newer Redis versions under a premium commercial license.
  2. Provide an open-source alternative (a “fork”).

We explored a commercial agreement with Redis Ltd. that would have allowed us to offer newer versions, but we were not able to find a solution. Therefore, we focused on identifying the best open-source alternative for our users.

Choosing Valkey

The landscape of Redis alternatives includes projects like Valkey, Redict, KeyDB, Dragonfly, and Garnet, each with its own strengths. Our decision process prioritized several key factors:

  • License: Must be genuinely open-source and compatible with our service model.
  • Governance & Community: Strong backing from a diverse community and major tech companies ensures longevity and vendor neutrality. A transparent governance model is crucial.
  • Project Vitality: Active development, regular releases, and responsiveness to security issues.
  • Compatibility: Minimal to no code changes required for applications currently using Redis. Compatibility with existing infrastructure (like Redis Sentinel for High Availability) is a major plus.

After careful evaluation and monitoring the developments following the Redis license change, Valkey emerged as the clear choice.

  • Open Source & Governance: Valkey is licensed under the permissive BSD 3-Clause license and is part of the Linux Foundation.
  • Strong Backing: It has garnered support from major industry players including AWS, Google Cloud, Oracle, Ericsson, and Snap Inc., ensuring robust development and a healthy future.
  • Compatibility: Valkey originated as a fork of Redis 7.2.4, ensuring a high degree of compatibility with the Redis API and client libraries. It aims to be a drop-in replacement for many use cases.

Valkey on Upsun and Platform.sh: key details

Valkey is available now across all Upsun and Platform.sh. Here’s what you need to know:

  • Availability: Ready to use on all Upsun and Platform.sh projects.
  • Two services:
    • valkey: An ephemeral, in-memory store where data is lost on restart (equivalent to redis).
    • valkey-persistent: Stores data on disk, ensuring data persistence across container restarts (equivalent to redis-persistent).
  • Supported Version: We currently offer Valkey 8.0.x. Minor versions (e.g., 8.0.1, 8.0.2) will be updated automatically to include the latest security patches and bug fixes.

Getting Started with Valkey

Using Valkey in your Upsun or Platform.sh project is straightforward.

First define the Valkey service in your .upsun/config.yaml configuration file and add a relationship from your app to the Valkey service:

.upsun/config.yaml
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
services:
  # Define a persistent Valkey cache service
  myvalkeycache:
    type: valkey-persistent:8.0
  # Or define an ephemeral Valkey service
  # myephemeralcache:
  #   type: valkey:8.0
applications:
  app:
    relationships:
      # Name the relationship endpoint as needed by your application
      valkeycache: "myvalkeycache:valkey"
      # Or for the ephemeral service:
      # ephemeralcache: "myephemeralcache:valkey"

You then need to deploy your updates on your preview environment, using the following command line:

Terminal
git add .upsun/config.yaml
git commit -m "Add Valkey service"
upsun push

First add a Valkey service in your platform/services.yaml with the following:

.platform/services.yaml
1
2
3
4
5
6
7
# Define a persistent Valkey cache service
myvalkeycache:
    type: valkey-persistent:8.0
    disk: 256 # Specify disk size in MB for persistent storage
# Or define an ephemeral Valkey service
# myephemeralcache:
#     type: valkey:8.0

And add the corresponding relationship in your .platform.app.yaml

.platform.app.yaml
1
2
3
4
5
relationships:
    # Name the relationship endpoint as needed by your application
    valkeycache: "myvalkeycache:valkey"
    # Or for the ephemeral service:
    # ephemeralcache: "myephemeralcache:valkey"

You then need to deploy your updates on your preview environment, using the following command line:

Terminal
git add .platform/services.yaml .platform.app.yaml
git commit -m "Add Valkey service"
platform push

Your application can then connect using standard Redis clients, pointing to the relationship defined (e.g., valkeycache).

Migrating from Redis persistent

It’s possible to switch from redis-persistent to valkey-persistent , as detailed in the Upsun documentation and the Platform.sh documentation.

The Future of Redis on Upsun and Platform.sh

Due to the licensing changes, Upsun and Platform.sh will not be offering Redis versions newer than 7.2 (e.g., Redis 7.4, 8.0, etc.).

However, Redis 7.2 will remain available as a service option on Upsun and Platform.sh for the foreseeable future. We will continue to apply security patches and minor updates to the 7.2 branch as long as they are provided upstream under the old license.

There are no immediate plans to deprecate the Redis 7.2 service or force migrations.

Conclusion

Valkey provides a robust, performant, and truly open-source alternative to Redis, backed by a strong community and major industry players. By offering Valkey as a managed service, Upsun and Platform.sh ensures you have access to a leading key-value store solution without navigating complex licensing issues.

We encourage you to explore Valkey for your caching and data store needs on Upsun or Platform.sh. Check our Upsun Valkey documentation (or Platform.sh Valkey documentation) for more configuration details and keep an eye out for updates on the persistent data migration tool.

If you have any questions, please don’t hesitate to reach out to contact us on our Discord server.

Last updated on