Friday, May 18, 2018

Django channel 2 - Provide seperate feeds to each users every 5 second

Hello,

I am implementing a websocket application for live data feed updates to each client according to their watchlist in every 5 second. Here I am explaining my requirement:

  1. Once user register with my application, he can view list of currency pairs e.g (ETH, BTC etc)
  2. From that list, user can add one or more pairs into his watchlist.
  3. And based on user's watchlist, user should get only that data through "Channel" which is in his watchlist in every 5 second

Possible approach as per me:

  1. Should i create multiple channel for each user ? or
  2. Is there possibility to create multiple events in single channel to handle each user separately to send different feeds to each user

Note: Every feed will fetch its results from another exchange website, then the end user will get that feed into their watchlist. How can i run my script continuously for each user seprately


Please kindly suggest, what is the right approach to implement this kind of situation.

--
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/d9386e9c-35eb-473f-a456-8187eb79142f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment