In the Valkey vs Redis question, Valkey is the Linux Foundation-governed fork of Redis 7.2.4, created after Redis changed its license in March 2024. For most self-hosters, Valkey (BSD-licensed) and Redis 8 (AGPL, added in May 2025) behave the same for caching, queues and sessions. Pick Valkey if you want a permissive license, Redis if you rely on Redis-only modules.
What Is Valkey and Why Does It Exist?
Valkey is an in-memory key-value store. It speaks the Redis protocol, so your clients, your libraries and most of your muscle memory carry over. It exists because of a license fight, not a technical one.
In March 2024 Redis moved away from its BSD license. Within days a group of maintainers forked the last BSD release, 7.2.4, and the Linux Foundation took over governance of the new project. That’s the whole Valkey Redis fork story, and it explains why the two projects are still so close.
They’re drifting, though. Valkey 9.2 shipped on 19 November 2026 with features Redis doesn’t have, and Redis 8 has its own additions. So “drop-in” is a statement about today, and you should check it again before a major upgrade.
Valkey vs Redis: License and Governance
Licensing is the real difference, so start there. Here’s how the two compare as of late November 2026.
| Topic | Valkey | Redis 8 |
|---|---|---|
| License | BSD 3-clause (as a fork of Redis 7.2.4) | AGPL since Redis 8 (May 2025); Redis 7.4 to 7.x used RSAL/SSPL |
| Governance | Linux Foundation, multi-vendor | Redis Ltd. |
| Origin | Fork of Redis 7.2.4 (2024) | Original project |
| Latest release we checked | Valkey 9.2 (19 Nov 2026) | Redis 8.x line |
| Managed offerings | AWS ElastiCache, Google Memorystore, Heroku | Redis Cloud and others |
License summaries are not legal advice. Ask your legal team about the AGPL if you offer Redis as part of a hosted service.
If you run Redis privately for your own app, the AGPL rarely bites. The question changes if you hand access to a datastore to your customers as part of a product. I’m not a lawyer, and you shouldn’t treat this paragraph as legal advice. Ask one.
Redis also moved back toward open source with Redis 8, which closed some of the gap that opened in 2024. People still look for a Redis alternative, though: about 1,000 searches a month worldwide.
Valkey vs Redis Performance and Memory
Here’s the honest part. I haven’t found a neutral benchmark of Valkey against Redis 8 on identical hardware, and I haven’t run one myself. So treat any “X is 30% faster” headline with suspicion, and that goes for the numbers below too, which come from the Valkey project.
What Valkey 9.2 added, per the Linux Foundation release (vendor-reported numbers):
- Forkless snapshots. Snapshots run on a background thread, so you don’t get the memory spike you’d see when a forked child duplicates pages. On a busy cache that used to mean sometimes doubling memory use.
- Continuous stream compression. Replication traffic drops by roughly 50% to 65%, and new replicas sync about 35% faster for 2% to 4% of one CPU core per replica.
- B+ tree sorted sets. Updates are up to 105% faster and memory use falls 36% to 43% on sets with millions of entries.
- Distributed KV caching for AI inference, built with LMCache. The project claims up to 40% lower inference cost. That’s a vendor figure.
The forkless snapshot is the one a VPS owner should care about. A 20 GB dataset on a 24 GB box is awkward when every save can need extra memory. Less fork overhead means you can run closer to the limit, though I wouldn’t push it.
How to Run Valkey with Docker on a VPS
You only need Docker and a Linux box. This setup pins a major version, stores data on a volume and requires a password. Replace the password, and don’t skip it: an open Redis-protocol port on a public IP gets found within hours.
mkdir -p ~/valkey && cd ~/valkey
cat > compose.yaml <<'EOF'
services:
valkey:
image: valkey/valkey:9
container_name: valkey
restart: unless-stopped
command: ["valkey-server", "--requirepass", "change-me-please", "--appendonly", "yes"]
ports:
- "127.0.0.1:6379:6379"
volumes:
- ./data:/data
EOF
docker compose up -d
docker exec -it valkey valkey-cli -a change-me-please ping
You should get PONG. The port is bound to 127.0.0.1, so only apps on the same machine can reach it. If your app lives on another server, put both on a private network or a VPN instead of opening 6379.
The appendonly flag turns on the append-only file, so a restart doesn’t wipe your data. For a pure cache you can drop it. For queues or sessions you probably want it, because losing them is annoying.
Moving From Redis to Valkey
Migration is boring, which is the point. If you’re on Redis 7.2 or older with no Redis-only modules, you can usually swap the server and keep the clients. Python, Node and PHP clients, the Laravel Redis driver among them, talk the same protocol.
- Check what you run. Run INFO server and INFO modules on the old instance. If you use RedisJSON, RediSearch or other Redis modules, stop here and test replacements first.
- Start Valkey beside Redis on a new port or host. Don’t touch production yet.
- Copy the data. Either make Valkey a replica of the old instance, or save an RDB snapshot and load it into Valkey. Compare the key count on both sides with DBSIZE.
- Point a staging client at Valkey and run your test suite.
- Switch the production endpoint, keep Redis running for a day, then shut it down.
If you come from Redis 7.4 or later, don’t assume the RDB file loads cleanly. Test the restore on a throwaway box first.
Why Run Valkey on a Contabo VPS
An in-memory store is mostly a RAM purchase, so the cost question is gigabytes per euro. The Contabo Cloud VPS line gives you a lot of RAM for the money: Cloud VPS 8 has 8 vCPU and 24 GB RAM at €13.33 a month, and Cloud VPS 12 has 12 vCPU and 48 GB RAM at €23.80. Those are the plans I’d look at for a self-managed cache, and prices are for a 24-month term including VAT and change, so check the pricing page.
| Dataset in memory | Suggested plan | RAM | Monthly price |
|---|---|---|---|
| Up to about 4 GB | Cloud VPS 6 | 12 GB | €7.14 |
| Up to about 10 GB | Cloud VPS 8 | 24 GB | €13.33 |
| Up to about 24 GB | Cloud VPS 12 | 48 GB | €23.80 |
Leave at least a third of RAM free for the OS, replication buffers and snapshots.
These are my own rules of thumb. If you need one datastore for several services, take the larger plan, because resizing a busy cache is more work than paying for some unused RAM. Contabo plans are unmanaged, so you handle patching, backups and monitoring yourself.
FAQ: Valkey vs Redis
How does Valkey compare to Redis?
Valkey started as a fork of Redis 7.2.4, so the commands and clients match for everyday use. The differences are the license (BSD for Valkey, AGPL for Redis 8), governance (Linux Foundation versus Redis Ltd.) and a growing list of features each project adds on its own.
Which companies offer Valkey support?
AWS offers Valkey through ElastiCache, Google through Memorystore for Valkey, and Heroku through its Key-Value Store. The Linux Foundation hosts the project itself. If you self-host, support is community-based unless you buy it from a vendor.
Is Valkey a drop-in replacement for Redis?
For Redis 7.2 and older without Redis-only modules, mostly yes: same protocol, same commands, same client libraries. Newer Redis 8 features and modules may not exist in Valkey, so test your workload before you switch.
Is Valkey free for commercial use?
Yes. Valkey uses a permissive BSD-style license that allows commercial use. Read the license file in the project repository for the exact terms, and ask your legal team if you have unusual requirements.
Disclaimer: Product specifications, features, and prices mentioned in this article are subject to change and may vary by region, billing term, and active promotions. Please check each provider’s or brand’s official website for current figures, pricing, and local currency rates.