Skip to content

Support for using Valkey as a message transport or as a result backend. #9092

Open

Description

@dpdoughe

Checklist

  • [ 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

Activity

  1. dpdoughe commented on Aug 19, 2024

    @dpdoughe
    ContributorAuthor

    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/

  2. dpdoughe commented on Aug 20, 2024

    @dpdoughe
    ContributorAuthor

    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

  3. amirreza-sf80 commented on Sep 18, 2024

    @amirreza-sf80

    as mentioned #9295
    i'll do it if you want

  4. auvipy commented on Sep 18, 2024

    @auvipy
    Member

    you can come with a PR.

  5. vuonglv1612 commented on Nov 12, 2024

    @vuonglv1612

    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:

    pip install celery-valkey-backend

    Usage:

    from celery import Celery
    
    app = Celery('your_app', backend='valkey://localhost:6379/0')

    The package is:

    • Lightweight and easy to integrate
    • Compatible with Celery 4.4.0+
    • Supports Python 3.8+
    • Sentinel Support: Not yet(You could contribute)
    • MIT licensed

    Feel free to try it out or contribute!

  6. amirreza-sf80 commented on Nov 12, 2024

    @amirreza-sf80

    hi @vuonglv1612

    did you overcome the problem we have at #9300 ?

  7. alejandro-perez commented on Feb 13, 2025

    @alejandro-perez

    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?

  8. amirreza-sf80 commented on Feb 13, 2025

    @amirreza-sf80

    hi

    1. valkey is not guaranteed to be a redis replacement

    2. 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

  9. alejandro-perez commented on Feb 13, 2025

    @alejandro-perez

    Thank you for the explanation. I thought valkey was a drop-in replacement, but seems that's only for 7.2...

  10. madolson commented on Apr 7, 2025

    @madolson

    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.

  11. auvipy commented on May 19, 2025

    @auvipy
    Member

    redis is now open source again!

  12. DmytroLitvinov commented on May 19, 2025

    @DmytroLitvinov
    Contributor

    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

    More details: https://docs.digitalocean.com/products/databases/valkey/getting-started/convert/

    Image
  13. madolson commented on May 19, 2025

    @madolson

    redis is now open source again!

    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.

  14. thegreatjedi commented on Jun 4, 2025

    @thegreatjedi

    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.

  15. auvipy commented on Jun 4, 2025

    @auvipy
    Member

    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.

  16. rowanseymour commented on Jun 13, 2025

    @rowanseymour

    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.

  17. marty0678 commented on Aug 14, 2025

    @marty0678

    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

    More details: docs.digitalocean.com/products/databases/valkey/getting-started/convert

    Image

    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.

  18. anuar12 commented on Sep 2, 2025

    @anuar12

    What would be the recommendation for developers? using valkey as redis replacement in Celery?

  19. dpdoughe commented on Sep 2, 2025

    @dpdoughe
    ContributorAuthor

    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.

  20. VBobCat commented on Oct 7, 2025

    @VBobCat

    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:

    pip install celery-valkey-backend

    This is a much welcome project, but I'm facing this issue when trying to use it.

  21. eilgin commented on Nov 3, 2025

    @eilgin

    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?

    ;)

  22. ryanovas commented on Jan 8, 2026

    @ryanovas

    Any updates on this?

  23. parasiteoflife commented on Jan 14, 2026

    @parasiteoflife

    @amirreza8002 would you consider making the PR an extension at least for the time being?

  24. dpdoughe commented on Jan 14, 2026

    @dpdoughe
    ContributorAuthor

    @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.

  25. dpdoughe commented on Jun 5, 2026

    @dpdoughe
    ContributorAuthor

    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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions