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 channels and hopefully will submit it to official examples.
Contributing will take more time and effort I guess, so I will get back once I am ready.
Thanks for the great work.
Kr Deepak
On Fri, Mar 30, 2018 at 10:21 PM, Andrew Godwin <andrew@aeracode.org> wrote:
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 <deepak.iit@gmail.com> wrote: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 listening to this message and then broadcasting that message to all the channels in that group?Which process is consuming messages in channel layer?Seems I am missing some details on how redis implements pub-sub.Thanks,Kr Deepak
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com .
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users .
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/d8018f8e-614e .-4456-b534-b8bb17d5bf3f%40goog legroups.com
For more options, visit https://groups.google.com/d/optout .
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/ .MnOAGlEpbGc/unsubscribe
To unsubscribe from this group and all its topics, send an email to django-users+unsubscribe@googlegroups.com .
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users .
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/ .CAFwN1uqDa0e5SfMtW_ 4EXKbJ9y82ubA_ Ym7dZ5HgvSkMXaw12g%40mail. gmail.com
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2BMB2Tgi4ASOxnm6JE3ZD8f_ZC8O9g%2B46-vwxzMAQQ2sPiwVyQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment