# Valkey exists now

> Redis left BSD on the twentieth of March. Eight days later the Linux Foundation announced a fork, carrying on from 7.2.4 with AWS, Google Cloud and Oracle behind it. Notes written while it is still a name and a repository.

- Author: Deyan Peev (https://deyanpeev.com)
- Published: 2024-03-30
- Tags: Redis, Valkey, Open Source, Databases, AWS
- URL: https://deyanpeev.com/posts/valkey-exists-now

On the twentieth of March, Redis moved off the three-clause BSD licence it had
used since 2009 and onto a dual arrangement: the Redis Source Available License
v2 and the Server Side Public License v1. Neither is an open-source licence.

On the twenty-eighth, eight days later, the Linux Foundation announced Valkey.
It's a fork continuing from Redis 7.2.4 under BSD-3-Clause, with AWS, Google
Cloud, Oracle, Ericsson and Snap behind it, and several of the people who had
been maintaining Redis moving across to it.

I'm writing this two days after that second announcement, so most of what I can
usefully say is about what has happened, not how it ends.

# Who the new licences are aimed at

Both licences aim at the same target, which is offering Redis to third parties
as a managed service. RSALv2 forbids that outright for the covered software.
SSPL permits it only if you publish the source of everything you use to provide
the service, and I don't think anybody has ever met that condition
deliberately.

If you run Redis for your own application (in a container, on a machine, behind
your own API) you are not the target and nothing changes for you. That was true
of the
[Terraform relicensing](https://deyanpeev.com/posts/the-licence-changed-under-the-state-file) last
year too, and it gets lost in the noise every time.

Releases already published stay under the licence they were published with. A
licence change isn't retroactive, and that's why a fork is available at all.
Redis 7.2.4 was BSD when it shipped, and it stays BSD.

# Why the response was so fast

Seven months ago I watched the same thing play out with Terraform. That sequence
ran from August to January: relicensing, a manifesto asking for a reversal, a
fork announced a fortnight later, a repository, a foundation, and then four
months of work before [anything shipped](https://deyanpeev.com/posts/the-fork-shipped).

This one skipped the asking. There was no manifesto and no campaign for a
reversal. The fork was announced eight days after the licence change, already
inside the Linux Foundation, already with three cloud providers named.

I think the reason is that the question had already been answered once in
public. The legal ground was surveyed last autumn and the governance pattern
existed. And the companies with a commercial stake had, I assume, worked out in
advance what they'd do the next time this happened to something they resell.

# A name and a repository, no release

A name, a repository, a foundation, a set of sponsors, and a group of
maintainers. There is no release.

That's the same position OpenTofu was in last September, and the same caveat
applies. If you choose Valkey today you're choosing a well-funded promise, there
is no binary yet.

This one is easier than the Terraform case because the starting point is a
drop-in. Valkey begins as Redis 7.2.4 with a different name on it, so on day
one there's no compatibility question at all. Clients, commands and the
protocol are all unchanged.

That will not last. Two codebases with separate roadmaps and separate
maintainers diverge. It doesn't take malice, features just get built in
different orders by different people. So "Valkey is a drop-in replacement" is a
statement with a shelf life, and what you want to work out is how long yours is.

# The shelf-life question, which is the one I would actually ask

"Which licence do you prefer" has no consequences for most people. The question
that does have consequences is how old the Redis features your code uses are.

The things I use Redis for (blocking list operations, sorted sets, Lua scripts,
the pub/sub primitives underneath a [job
queue](https://deyanpeev.com/posts/bullmq-and-the-mongo-queue-i-did-not-use)) all predate 2015.
Behaviour that old isn't where two forks diverge first. A codebase built on it
can probably ignore this entire story for years.

Code that depends on recently added server-side behaviour, or on the Redis
modules that were never BSD in the first place, has a much shorter window.
Better to know that now than at the the point where a version bump forces it.

# What I am doing

Nothing, which is becoming a habit with these.

I wouldn't make a hurried decision in the first fortnight of a fork. What will
decide this is which distribution ends up in the managed services, which version
the client libraries test against, and whether the divergence stays cosmetic,
and you cant know any of those yet. They should be visible in about a year.

The one thing I'd do now is cheap. Write down which Redis features the codebase
depends on and roughly when each of them was introduced. That list turns this
from a question about licences into a question about compatibility, and that's
the form it will arrive in.
