Y
Y
Yuri Valdis2018-11-25 23:53:14
Node.js
Yuri Valdis, 2018-11-25 23:53:14

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

1 answer(s)
A
Anton Anton, 2018-11-26
@jurapuris

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 question

Ask a Question

731 491 924 answers to any question