You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support for using Valkey as a message transport or as a result backend. #9092
[ X ] I have checked the issues list
for similar or identical feature requests.
[ X ] I have checked the pull requests list
for existing proposed implementations of this feature.
[ X ] I have checked the commit log
to find out if the same feature was already implemented in the
main branch.
[X ] I have included all related issues and possible duplicate issues
in this issue (If there are none, check this box anyway).
Related Issues and Possible Duplicates
Related Issues
None
Possible Duplicates
None
Brief Summary
A few weeks ago, the company behind Redis published a blog post announcing that future versions of the Redis project were moving from BSD-3 clause, a well-accepted and understood open source license, to dual RSALv2 (Redis Source Available License 2.0) / SSPLv1 (Server Side Public License). The blog post plainly states “we openly acknowledge that this change means Redis is no longer open source under the OSI definition”. For more context read see here
Just as there is a bundle for celery[redis] there should be a celery[valkey]. For context, the valkey fork of redis Python interface has recently had their first release on June 14, 2024. The Valkey team intends to add no new features to 7.2.x. Only bug fixes coming as patch releases will occur in the future. All new changes are going in 8.x.
Design
Architectural Considerations
None
Proposed Behavior
Users currently specifying bundle celery[redis] as a dependency should be able to transition to specifying celery[valkey].
Proposed UI/UX
Diagrams
N/A
Alternatives
None
Reacted by ericdain, shamu332, Jeremy Mayeres, Yelin Zhang, andreasc-kuehn, Leo Kim, nikartix, Marco Giuliano, Anthony DeSantis, Peter Czegledy and 27 more
valkey is not guaranteed to be a redis replacement
the current problem that we are seeing here is about valkey itself (well, it's about celery, but valkey has an effect) so switching to redis backend won't fix this
which in itself means valkey doesn't behave same as redis anymore, and needs a backend
Valkey maintainer here. Just to comment in about our compatibility story. We intend to be API compatible with Redis 7.2 forever, but we don't guarantee we will support any features after that. We will try to be API compatible when it makes sense.
Reacted by Alejandro Perez, dpdoughe, Edward Jones, Roelof Kallenkoot, Youngtae Kim, Peter Czegledy, Dmytro Litvinov, Versus, Berkay Ozturk, Alfonso Montero López and 4 more
Reacted by Tomer Nosrati, Edward Jones and Alfonso Montero López
Hi @auvipy ,
As a user of managed cache service, I see that DigitalOcean has planned migration from Redis to Valkey when that story with license is started.
Right now they have next statement:
All Managed Caching clusters will automatically convert to Valkey clusters by 30 June 2025
We still are seeing a lot of interest in Valkey. Some of the our backers would prefer not to have an AGPL license (most of them are managed providers like AWS, Aiven, Digital Ocean, GCP, but also some folks that distribute the software like Ericsson). Folks also prefer the more open governance of Valkey (having maintainers from multiple companies and backed by the Linux Foundation).
I think having Valkey as a supported backend probably still makes sense, as I think people will continue to use it. It's great to see Redis choose an OSS license though.
Reacted by Joffrey Bienvenu, Alfonso Montero López, Evan Kim, Sergio Soto, VBobCat, Álvaro Justen, Luis Miguel Marmolejo Peña and martinwe-adfinis
I think having Valkey as a supported backend probably still makes sense, as I think people will continue to use it. It's great to see Redis choose an OSS license though.
It's worth noting that AWS actively promotes Valkey over other Elasticache backend options like Redis OSS, including 20-33% lower pricing. As such, Celery support for Valkey will also make it significantly more budget-friendly in AWS environments.
Reacted by VBobCat, Álvaro Justen and Dmitriy Drenkaliuk
yes we can easily support it using alias. as the code is just same for any redis like drop in replacement. it is already supported, just need alias. and we have that alias pr already under review.
Reacted by Madelyn Olson, Vasileios Anagnostopoulos and Andrey
We should be clear that valkey is not intended to be a drop in replacement for redis and both projects have already diverged. It may be the case that the functionality currently used by celery doesn't differ but there's no guarantee that will always be the case.
Reacted by dpdoughe, beary, McRaZick, Juan Pablo Mallarino, Maciej "RooTer" Urbański, VBobCat, Hans and 神楽坂·喵
Hi @auvipy , As a user of managed cache service, I see that DigitalOcean has planned migration from Redis to Valkey when that story with license is started. Right now they have next statement:
All Managed Caching clusters will automatically convert to Valkey clusters by 30 June 2025
Render has also moved to Valkey and dropped new Redis instances too. Old instances up to Redis 6.2.14 will continue to run but new instances are all Valkey.
Using Valkey as a drop-in does indeed work for the time being. Celery will just think that it is communicating with a Redis service, but it is really Valkey.
Reacted by alegtk, dan-cbm, Marty Cochrane and Álvaro Justen
yes we can easily support it using alias. as the code is just same for any redis like drop in replacement. it is already supported, just need alias. and we have that alias pr already under review.
What is the current status of this PR/Valkey support from Celery perspective @auvipy?
;)
Reacted by Marc Zeeb, Luis Miguel Marmolejo Peña, Patrick Fenelon, VBobCat, Dmitry Korotkov and Yurii K.
@parasiteoflife can you clarify what do you mean by extension? Do you just mean a fork/branch of Celery? IMO, a Valkey bundle celery[valkey] as mentioned in the Description seems to be what most developers would want. And the approach in #9300 seems to be working.
Reacted by 93578237, Bakasura, Omar El Oubari and Thomas PERROT
Did the pull request #9300 get deleted or removed?
Alos, I'm confused about what the current status of this issue ticket is and Valkey support more generally is. Is there a growing consensus about what approach to support Valkey in Celery going forward?
Reacted by 93578237, VBobCat, Andrii Penchuk, akarmes-xperi, iamtomek and Andrii Kravets
Activity
dpdoughe commentedon Aug 19, 2024
Update: Python client for Valkey forked from redis-py has made their first stable release v6.0.0 on Aug 13, 2024.
https://pypi.org/project/valkey/6.0.0/
auvipy commentedon Aug 20, 2024
what about https://www.dragonflydb.io?
dpdoughe commentedon Aug 20, 2024
I would think DragonflyDb would be a separate ticket and request. This ticket is about Valkey. Valkey is the one backed by Linux Foundation and it's what Fedora and so RedHat/IBM are moving to. https://thenewstack.io/linux-foundation-forks-the-open-source-redis-as-valkey/ . Looks like the initial developers are from Oracle, AWS, Google
amirreza-sf80 commentedon Sep 18, 2024
as mentioned #9295
i'll do it if you want
auvipy commentedon Sep 18, 2024
you can come with a PR.
vuonglv1612 commentedon Nov 12, 2024
For those who need ValKey backend support right now, I've created a standalone package that you can use while waiting for the official integration:
celery-valkey-backend - A custom Celery result backend for ValKey
Quick setup:
Usage:
The package is:
Feel free to try it out or contribute!
amirreza-sf80 commentedon Nov 12, 2024
hi @vuonglv1612
did you overcome the problem we have at #9300 ?
alejandro-perez commentedon Feb 13, 2025
Why is this needed? It seems as though a valkey instance just can be used as a drop-in replacement for redis. Am I missing anything?
amirreza-sf80 commentedon Feb 13, 2025
hi
valkey is not guaranteed to be a redis replacement
the current problem that we are seeing here is about valkey itself (well, it's about celery, but valkey has an effect) so switching to redis backend won't fix this
which in itself means valkey doesn't behave same as redis anymore, and needs a backend
alejandro-perez commentedon Feb 13, 2025
Thank you for the explanation. I thought valkey was a drop-in replacement, but seems that's only for 7.2...
madolson commentedon Apr 7, 2025
Valkey maintainer here. Just to comment in about our compatibility story. We intend to be API compatible with Redis 7.2 forever, but we don't guarantee we will support any features after that. We will try to be API compatible when it makes sense.
auvipy commentedon May 19, 2025
redis is now open source again!
DmytroLitvinov commentedon May 19, 2025
Hi @auvipy ,
As a user of managed cache service, I see that DigitalOcean has planned migration from Redis to Valkey when that story with license is started.
Right now they have next statement:
More details: https://docs.digitalocean.com/products/databases/valkey/getting-started/convert/
madolson commentedon May 19, 2025
We still are seeing a lot of interest in Valkey. Some of the our backers would prefer not to have an AGPL license (most of them are managed providers like AWS, Aiven, Digital Ocean, GCP, but also some folks that distribute the software like Ericsson). Folks also prefer the more open governance of Valkey (having maintainers from multiple companies and backed by the Linux Foundation).
I think having Valkey as a supported backend probably still makes sense, as I think people will continue to use it. It's great to see Redis choose an OSS license though.
thegreatjedi commentedon Jun 4, 2025
It's worth noting that AWS actively promotes Valkey over other Elasticache backend options like Redis OSS, including 20-33% lower pricing. As such, Celery support for Valkey will also make it significantly more budget-friendly in AWS environments.
auvipy commentedon Jun 4, 2025
yes we can easily support it using alias. as the code is just same for any redis like drop in replacement. it is already supported, just need alias. and we have that alias pr already under review.
rowanseymour commentedon Jun 13, 2025
We should be clear that valkey is not intended to be a drop in replacement for redis and both projects have already diverged. It may be the case that the functionality currently used by celery doesn't differ but there's no guarantee that will always be the case.
marty0678 commentedon Aug 14, 2025
Render has also moved to Valkey and dropped new Redis instances too. Old instances up to Redis 6.2.14 will continue to run but new instances are all Valkey.
anuar12 commentedon Sep 2, 2025
What would be the recommendation for developers? using valkey as redis replacement in Celery?
dpdoughe commentedon Sep 2, 2025
Using Valkey as a drop-in does indeed work for the time being. Celery will just think that it is communicating with a Redis service, but it is really Valkey.
VBobCat commentedon Oct 7, 2025
This is a much welcome project, but I'm facing this issue when trying to use it.
eilgin commentedon Nov 3, 2025
What is the current status of this PR/Valkey support from Celery perspective @auvipy?
;)
ryanovas commentedon Jan 8, 2026
Any updates on this?
parasiteoflife commentedon Jan 14, 2026
@amirreza8002 would you consider making the PR an extension at least for the time being?
dpdoughe commentedon Jan 14, 2026
@parasiteoflife can you clarify what do you mean by extension? Do you just mean a fork/branch of Celery? IMO, a Valkey bundle
celery[valkey]as mentioned in the Description seems to be what most developers would want. And the approach in #9300 seems to be working.spawn-guy commentedon Jun 3, 2026
there is also https://github.com/valkey-io/valkey-glide
dpdoughe commentedon Jun 5, 2026
Did the pull request #9300 get deleted or removed?
Alos, I'm confused about what the current status of this issue ticket is and Valkey support more generally is. Is there a growing consensus about what approach to support Valkey in Celery going forward?