You'll have to design your own consumption architecture if you want to reliably handle 100 messages a second - since it's UDP, channels won't be handling it natively so you'll need to terminate and process the UDP yourself. I'd recommend either getting a UDP loadbalancer if you have messages coming in from multiple sources, or do your own work queue if it's a single source and you can't process them fast enough.
Andrew On Mon, Jan 14, 2019 at 7:31 AM Sahil Mangotra < sahil.mango...@utradesolutions.com> wrote: > I am facing a problem in my django web server. > > We are using python3, django2, django-rest-framework3.8 and channels2.x > > Scenario is we are receiving DATA from a UDP connection at very fast rate > (~100 messages per second). The data revived is in proto format (you can > say we are receiving byte data). some data gets starved in this process as > *Rate > of production >>> rate of consumption* we are implementing throttling but > still at 100 concurrent users data starves again. Can anyone help us in > this scenario. > > If anyone has any new architecture idea please share. > > *This is surely an interesting problem. This is about stock market feed* > > PS :- I cannot post any code as it is my companies. but i can help any > time you need clarification on any point. > > -- > 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+unsubscr...@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/02c1735d-dc05-44b3-b0a0-d343aa59f8ef%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/02c1735d-dc05-44b3-b0a0-d343aa59f8ef%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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+unsubscr...@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/CAFwN1uqFZ%3DKe4yyPdG8-LTGRYLHYegotao9JbQNWOVWLJLoPcA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.