Axios latency

Snipe 39 - Oct 5 - - Dev Community

Hi all,

I have a big problem with Axios request. I am using this component to communicate with an external API (100+ requests per second). More than 98% of the requests are done within 20 milliseconds. Some requests take several seconds (not a problem of the API side) and I don't know why. Below is a piece of code:

Image description

Sometimes the time difference between t2 and t is too huge and everything slows down. Can you please help me.

Thank you.

.
Terabox Video Player