Thursday 30 April 2020

Read data in real time from API service... ?

Hello everyone,​I'm currently developping I'm currently developing an application which reads JSON data from an API web service and stores it in a database, now all the data is read using 'node-fetch' module and 'node-schedule' which reads data every minute, but relying on this method produces a lag of 10 seconds because it reads data every minute even if it catches new data or not.​At this point, I'd like to know if I can make use of socket.io and 'wait' for the API service to update the data array when it's released instead of reading it every minute?

Submitted April 30, 2020 at 10:04PM by condrove10

No comments:

Post a Comment