I am currently sending a GET request to an API using promises 200 times. Not surprisingly, there is a max number of connections allowed within such a short time span.
I am using axios to do this:
const memberPromises = members.map(member => axios.get(`players/%23${member.tag}`))
axios.all().then().catch() // etc
..where members can be up to 200 elements.
There doesn't seem a way to rate-control these requests natively within axios, but how would I use async's (or another library if there is better) queue method with a concurrent parameter to limit the number of simultaneous requests?