lundi 4 octobre 2021

10k API Requests in max 5minutes in JS/TypeScript

I am making an app that scans an NFT collection via API requests in JS/TypeScript.

Atm, it is working 1 by 1 with Axios, causing each request to take 70~milliseconds.

This means that an entire collection takes between 20-30minutes. I want to take it down to a max of 5 minutes.

Is this possible with JS/TypeScript? If yes, how?

Will there be a way to send from 2.5k to 10k api requests (In a rate of 1-3 milliseconds each request) in JS/TypeScript without getting blocked by DDoS protection etc?…

I am gathering the data from a public api. Each item has an id and a different api URL:

For example:

https://api.cool-project/1
https://api.cool-project/2

Etc.. upto 10k ids

Ty for the help! :)




Aucun commentaire:

Enregistrer un commentaire