Thursday, 1 February 2018

Slowdown between calls.

My app is making a series of API calls. Right now it is trying to do all 40 calls at once. I need to make them happen over 20 seconds (basically 2 calls per second). The calls are all slightly different based off an array of information.My code is basicallyfor(var item in array) { API call with array[item]; } /edit: A lot of what I found online is referencing older ways of doing it using some 3rd party modules. It seems like this is now supported in newer node versions, but I wanted to reach out to people who might be able to explain it a little better, or point me down a good path.

Submitted February 01, 2018 at 08:46PM by azazael13

No comments:

Post a Comment