Dear Colleagues,
I am playing with Channels for some time already.
Now, I am trying to establish "sticky" channel to one of available workers. I thought I can create single-reader channel from consumer and somehow fix the routing to make this particular worker handle this single-reader channel. I can use
-- I am playing with Channels for some time already.
Now, I am trying to establish "sticky" channel to one of available workers. I thought I can create single-reader channel from consumer and somehow fix the routing to make this particular worker handle this single-reader channel. I can use
channels.channel_layers[channels.DEFAULT_CHANNEL_LAYER].new_channel("my_exclusive_channel?")
in consumer core to create single-reader channel, but I cannot understand how to setup routing properly in such case. I tried to implement router object from scratch, but as I see its method `channel_names` invoked only one time per worker. In other words, the problems reduces to the question if it is possible to attach some consumer to dynamically created single-reader channel.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/be4c787f-1abc-4ece-8b74-ad13ce7180eb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment