I am using native fetch at the google chrome browser. Trying to send multiple API requests to the same domain.
const parallel = 100
Promise.all(Array(parallel).fill('').map(() => fetch(url, {method: 'POST', body: JSON.stringify(data) })))
data
variable by itself is about 41802kb.
Debugging network, I realize that Request sent
takes the longest time
Comparing the same requests but when parallel=10
Anything I can do to improve this? The same behaviour with nodejs using the node-fetch
package. Is there any solution to run multiple requests to the same domain in parallel without loosing fast response time?