Re: [django-channels] Which process sends message to all channels in a group during group_send?

2018-03-30 Thread kumar deepak
Thanks Andrew. I looked at the code and was able to figure out how it is being done (including the comment to use lua scripts in the future). The deep dive into codebase keeps getting deeper (channels, channels_redis, aioredis, asgiref, twisted, asyncio ...). I am building a chat based game using

Re: [django-channels] Which process sends message to all channels in a group during group_send?

2018-03-30 Thread Andrew Godwin
When you do a group send, the message doing the sending fans out the send to all the target channels (currently using individual commands, and soon with a Lua script inside Redis). We're not using redis pub-sub - we use lists instead. Andrew On Fri, Mar 30, 2018 at 2:26 AM, krdeepak wrote: > Hi

[django-channels] Which process sends message to all channels in a group during group_send?

2018-03-30 Thread krdeepak
Hi, I was doing a deep dive in django channels and related projects, and plan to use it in my project along with contributing to it in the future. I understood most of the details, but still not clear about one things. During a group_send in channel_layer, which process is responsible for liste