# Django Channels - Redis Alternatives

**URL:** <https://forum.djangoproject.com/t/django-channels-redis-alternatives/33246>\
**Category:** Async/Channels\
**Created:** [July 24, 2024, 6:36pm UTC](https://forum.djangoproject.com/t/django-channels-redis-alternatives/33246 "2024-07-24T18:36:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aDramaQueen](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/adramaqueen/32/18375_2.png) [@aDramaQueen](https://forum.djangoproject.com/u/aDramaQueen)\
**Post date:** [July 24, 2024, 6:36pm UTC](https://forum.djangoproject.com/t/django-channels-redis-alternatives/33246/1 "2024-07-24T18:36:22Z")

</div>

Since Redis changed their License model, I am not really keen on using Redis in production any longer. They said, it’s only been done to make Cloud-Providers pay their fees, but in such situations I always rememember Star Wars Episode 5 - Vader to Lando Calrissian: “_I am altering the deal, pray I don’t alter it any further._”

Therefore I searched for an alterantive backend. To my surprise, unlike Django, there is only one official backend for Django Channels: Redis. On the [**community project list**](https://channels.readthedocs.io/en/stable/community.html), there was a Postgres backend. This is not really comprehensible to me, since Postgres is not an in-memory DB, therefore you had an additional delay for your websocket connections.  
Therefore the question: Are there any alternatives to the Redis Backend for a in-memory database? Alternative example for Redis would be something like: [**Valkey**](https://valkey.io/)

---

<div class="post-metadata">

**Author:** ![carltongibson](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/carltongibson/32/267_2.png) [@carltongibson](https://forum.djangoproject.com/u/carltongibson)\
**Post date:** [July 24, 2024, 8:20pm UTC](https://forum.djangoproject.com/t/django-channels-redis-alternatives/33246/2 "2024-07-24T20:20:10Z")

</div>

You can just use redict, which is a copy left fork

> **[Redict is an independent, copyleft fork of Redis®](https://redict.io/posts/2024-03-22-redict-is-an-independent-fork/)**
>
> Like many of you, I was disappointed when I learned that Redis®1 was changing to a non-free licensing model. This is a betrayal of the free software community, but perhaps not an entirely surprising one. Forks are likely to start appearing in the...

---

<div class="post-metadata">

**Author:** ![amirreza8002](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/amirreza8002/32/27683_2.png) [@amirreza8002](https://forum.djangoproject.com/u/amirreza8002)\
**Post date:** [November 4, 2024, 12:04am UTC](https://forum.djangoproject.com/t/django-channels-redis-alternatives/33246/3 "2024-11-04T00:04:30Z")

</div>

hi  
sorry to unbury this  
just for future refrence

as i understand it, at least for now, you can use redis-py to connect to any relid-like server, well i’ve only seen it work with valkey buut i assume it works with others.  
but this could change if the said servers make some breaking changes.

you can use django’s redis backend to connect to valkey, `channels_redis` ro connect to valkey, even celery’s redis backend will connect to valkey (tho this one breaks, but it’s a celery bug)

that being said, i packaged `channels_valkey`, which is an exact copy of `channels_redis` and it’ll stay an exact copy unless forced otherwised.
