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
Hello,
I am trying to use AWS Elasticache Redis cluster as backend with channels_redis for connecting to websocket. However, I am unable to configure that as container get restarted every time try making connection. It works well if i connect the single host redis instead of cluster one.
I think we are not able to support AWS Elasticache Cluster mode with channels_redis. As it does not have native support for Redis clusters. It can connect to a single Redis instance or a simple setup with multiple Redis instances configured as separate hosts, but it cannot handle Redis cluster features like key distribution and MOVED responses out-of-the-box.
redis-py-cluster <- This Python library is specifically designed to work with Redis clusters and will handle the MOVED redirection automatically. But it cannot be direct integrated with channels_redis
I'm not sure, probably as a workaround we need to create a custom backend using RedisChannelLayer to add redis cluster client from redis-py-cluster to work with Redis Cluster for AWS Elasticache.
Hello,
I am trying to use AWS Elasticache Redis cluster as backend with channels_redis for connecting to websocket. However, I am unable to configure that as container get restarted every time try making connection. It works well if i connect the single host redis instead of cluster one.
This is the configuration i am using:
Version of channels-redis:
AWS elasticache redis working well with django channels
I am using uvicorn to run the channel.
The text was updated successfully, but these errors were encountered: