Skip to content

Why not use Redis Pub/Sub? #245

@acu192

Description

@acu192

I began studying RedisChannelLayer because I was trying to fix this issue (related, this issue). I was surprised by the complexity of RedisChannelLayer. I expected it would use Redis Pub/Sub, but it does not.

We went ahead and implemented our own Channels Layer that does use Redis Pub/Sub. It has been in production for a few days, no issues yet. In fact, it's going better than we could have hoped! For one, it fixes that bug (linked above) but it also has decreased the CPU load on our application server and on our Redis server. Woot.

We'd love to contribute it to this project. So, a few questions for the maintainers: First, is that of interest? If so, should we completely replace the current RedisChannelLayer? Or should we add our implementation as an alternative, perhaps naming it RedisPubSubChannelLayer to distinguish the two implementations?

Let me know. 👍

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions