Linked Questions

9 votes
2 answers
9k views

Surprisingly google had trouble returning the result for this question. I'm wondering how many promises can or should be ran in parallel before queuing them and waiting for the next one to finish. I ...
Larry's user avatar
  • 425
7 votes
1 answer
9k views

I've got a rate limiter for an API I am using which allows 20 requests per second. All requests are promise based and the promise will be resolved with the API data once there is a response. The ...
kentor's user avatar
  • 18.8k
1 vote
1 answer
4k views

I have a script to scrape ~1000 webpages. I'm using Promise.all to fire them together, and it returns when all pages are done: Promise.all(urls.map(url => scrap(url))) .then(results => ...
Boyang's user avatar
  • 2,586
0 votes
1 answer
8k views

I have a function that: 1. gets an array of 3000 'id' properties from mongoDB documents from collection foo. 2. Creates a GET request for each ID to get 'resp' obj for id, and stores it in another ...
Moshe's user avatar
  • 2,672
1 vote
1 answer
6k views

I need help implementing a file downloader in nodejs. So i need to download over 25'000 files from a server. Im using node-fetch but i don't exactly know how to implement this. I tried using Promise....
magic88's user avatar
  • 11
2 votes
1 answer
1k views

I'm running a knex seed in Node and need to batch an additional query to my database due to restrictions on my server. I'm starting to get the hang of promises and async/await, but I'm having trouble ...
user6647072's user avatar
1 vote
2 answers
4k views

I'm building a NodeJs App using Express 4 + Sequelize + a Postgresql database. I'm using Node v8.11.3. I wrote a script to load data into my database from a JSON file. I tested the script with a ...
Benjamin D.'s user avatar
0 votes
1 answer
2k views

I have an array with a length of one million. Each element is a string. I have a cloud function that takes a string and processes it. What is the fastest way to POST all million strings in my array to ...
J. Doe's user avatar
  • 179
2 votes
1 answer
2k views

I have am making 400ish requests to a server - and putting each inside promises. When running all 400 requests in a single promise.all - the system falls over. I've split my requests into batches of ...
Ollie's user avatar
  • 1,134
1 vote
1 answer
2k views

I have a bulk create participants function that using Promise.allSettled to send 100 axios POST request. The backend is Express and frontend is React. That request is call a single add new participant ...
Moon's user avatar
  • 890
2 votes
2 answers
1k views

I have an array of users where each user has an IP address. I have an API that I send an IP as a request and it returns a county code that belongs to this IP. In order to get a country code to each ...
Y F's user avatar
  • 25
1 vote
1 answer
3k views

I should login and call http some api points by nodejs, var mins = 150; var url = require('url'); const domainim= 'example.com'; const request = require('requestretry').defaults({ jar : true, ...
Mustafa Marsli Topaloğlu's user avatar
1 vote
2 answers
2k views

I am trying to call CompaniesHouse API and fetch companies registered between November and February. The approach I took is to pick a starting index(a company registered in November) and a stop index(...
imraj's user avatar
  • 33
0 votes
4 answers
984 views

I'm trying to download a list of files generated by an internal processing system via HTTP get method in node js. For a single files or for a few files it works fine and there is an answer for that ...
Arun Kumar's user avatar
0 votes
2 answers
1k views

I have a node express/ socket application where my express server makes several API calls with node-rest-client looping through elements in var jobs and when each finishes, it sends the data via ...
BLang's user avatar
  • 1,000

15 30 50 per page