architecture – How many queries we can do at a time using the "request" middleware in the nodeJS application

I run a cron job every 5 minutes to get data from a third-party API. It can be a number of N queries at a time from the NodeJS application. You will find below the details and code examples:

1> Running the job cron every 5 minutes:

const cron = require (& # 39; node-cron & # 39;);
const request = require (& # 39; request & # 39;);
const otherServices = require (& # 39; ./ services / otherServices & # 39;);
cron.schedule ("0 * / 5 * * * *", function () {
initiateScheduler ();
});

2> Get the list of items for which I want to launch the request. May receive a number N of items. I called request function (getSingleElementUpdate ()) in the forEach loop

var initScheduler = function () {
// Call database for list of items
otherServices.moduleName ()
.then ((arrayList) => {
arrayList.forEach (function (singleElement, index) {
getSingleElementUpdate (singleElement, 1);
}, ce);
})
.catch ((err) => {
console.log (err);
})
}

3> Start running the request for singleElement. Please note that I do not need a reminder if the answer to the request is accepted (200). I just need to update my database entries if successful.

var getSingleElementUpdate = function (singleElement, count) {
var bodyReq = {
"id": singleElement.elem_id
}
var options = {
method: "POST",
url: & # 39; http: //example.url.com&#39 ;,
body: bodyReq,
dataType: & quot; json & # 39;
json: true,
crossDomain: true
};
request (options, function (error, response, body) {
if (error) {
if (count <3) {
account = account + 1;
initiateScheduler (singleElement, count)
}
} other {
// request for success
// In this: No reminder required
// Just need to update database entries in case of a satisfactory answer
}
});
}

I've already checked this:

request-promised: But, I do not need a reminder after a successful request. So, I have not found any benefit to implementing this in my code. Let me know if you have a good thing to add.

I need your help for the following things:

I've checked the performance when I received 10 items in arrayList from step 2. Now the problem is that I have no clear vision of what will happen when I start to receive 100 and 1000 items in step 2. So I need your help to determine whether or not I need to update my code for this scenario or is there anything that I've forgotten that can degrade performance? Also, how many requests I can do at a time. Any help from you is appreciable.

Thank you!