M
M
mr_drinkens2017-07-27 16:10:24
Django
mr_drinkens, 2017-07-27 16:10:24

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

2 answer(s)
R
Roman Kitaev, 2017-07-27
@deliro

Sockets. Long Polling for synchronous jung is so-so in general. And channels fits perfectly next to synchronous views.

D
davidnum95, 2017-07-27
@davidnum95

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 question

Ask a Question

731 491 924 answers to any question