Answer the question
In order to leave comments, you need to log in
What scheme to use for auto-updating a web application?
Hello.
On the front - React, on the backend - Django.
Which stack is more suitable for automatically getting changes from the server?
Long Polling or Web Sockets?
I looked through the console how todoist works - through long polling.
But, I'm more inclined towards setting up web sockets (Django-channels).
Who faced a similar problem and who solved it.
Thank you in advance.
Answer the question
In order to leave comments, you need to log in
Sockets. Long Polling for synchronous jung is so-so in general. And channels fits perfectly next to synchronous views.
If you need interaction only in one direction (server-> client), then you can assign this task to a separate service on nodejs.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question