Answer the question
In order to leave comments, you need to log in
How to organize data update?
For example, there is an application with currency data. It is necessary to pull the API for a certain time.
Stack : node, express, vue
What is the best way to do this?
Answer the question
In order to leave comments, you need to log in
Here is a good solution suitable for append-only data: https://habr.com/post/423737/ https://habr.com/post/424415/
instead of a backend - statics into which data is added by some service, frontend requests data with content-range. It is very fast, simple and reliable, and it can work without a server part, especially if the hosting has ssh, through which the statics can be updated. And on the client, setInterval or setTimeout, it doesn't matter.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question