# Redis changed its licence, and the fork was already warm

> Redis left BSD in March and Valkey existed within weeks, under the Linux Foundation with the cloud providers behind it. Watching it happen a second time, what stood out was how much faster it went.

- Author: Deyan Peev (https://deyanpeev.com)
- Published: 2024-07-20
- Tags: Redis, Valkey, Open Source, Databases, AWS
- URL: https://deyanpeev.com/posts/redis-changed-its-licence

I wrote about [Valkey appearing](https://deyanpeev.com/posts/valkey-exists-now) two days after the
Linux Foundation announced it, which was eight days after Redis left BSD. That
post was written inside the event and could only describe what had happened.

Four months on there's enough distance to say what it meant. This was the third
time in a year I had watched the same sequence (after the
[Terraform relicensing](https://deyanpeev.com/posts/the-licence-changed-under-the-state-file) and
[the fork that followed it](https://deyanpeev.com/posts/the-fork-shipped)), and this one went much
faster.

# The same sequence in eight days

The Terraform sequence took from August to January: relicensing, manifesto, fork
announced, repository public, foundation, and then four months of work to a
stable release. Redis to Valkey got to a foundation with three cloud providers
behind it in eight days. It skipped the manifesto and the request for a
reversal entirely.

Four months later the gap has widened, it hasn't closed. Valkey has shipped
releases and is accumulating changes of its own, and I think that's about when
a fork stops being a copy and becomes a project.

# What actually changed for me

Very little, and for the same reason as last time. The restriction is aimed at
people offering the software as a service. People who just use it aren't the
target.

So what decides this is the distribution you get, and for most of us that is not
a decision we make directly. The version behind a managed cache is chosen by the
cloud provider, and the three providers who sponsored Valkey have an obvious
answer there. The version in a Docker image is chosen by whoever publishes the
the image, and the version a client library is tested against by its
maintainers.

So the practical question is "which one am I going to end up on without
choosing", and the answer is arriving gradually, through infrastructure. There's
no meeting where somebody decides it.

# The compatibility window

Valkey started as a fork of Redis 7.2.4, so at the moment of the fork the two
were the same program with different names.

They won't stay that way. Two codebases with separate roadmaps diverge, and not
maliciously, it's just that features get built in different orders by different
people. What matters for anyone with Redis in production is how long "a Redis
client works against either" stays true.

For the things I use it for, that window is long. I have written about
[choosing BullMQ over a Mongo-backed queue](https://deyanpeev.com/posts/bullmq-and-the-mongo-queue-i-did-not-use),
and that depends on blocking list operations, sorted sets and Lua scripts.
Those primitives have been stable for a decade and they aren't where divergence
will show up first. Anything that depends on newer server-side features, or on
the modules that were never BSD to begin with, has a much shorter window.

That gives a reasonable way to assess exposure without reading any licence. How
old are the Redis features this code uses? If the answer is "all of them
predate 2015", the fork is somebody else's problem for a long time.

# The pattern I am now watching for

After three of these in a year I treat them as a category and not as news.

They all go the same way. A company builds an open-source project, a commercial
ecosystem grows on top, the company concludes that the ecosystem captures value
it created, and it relicenses to stop that specifically. Ordinary users are not
the target and are told so, truthfully. The ecosystem then forks.

For any dependency that matters I now ask what would happen if it stopped being
open source. Does the licence at the time of the last release permit a fork? Is
there a party with both the capability and the commercial motivation to
maintain one? And how much of my usage depends on features new enough to
diverge.

That won't come out well for everything in a dependency list. For Redis all
three answers were comfortable, so this was interesting and not alarming: a
last release that could be forked, three cloud providers with a reason to
maintain the fork, and my own usage sitting on primitives that have been
stable for a decade.
