简体   繁体   中英

Is axios delaying http requests

We are building an interface for a client in which we are doing a high volume of data synchronization, as we are moving forward by activation of multiple levels of interface, we found a unique issue.

The unique issue is when we basically sync the data from one system to another, we are using HTTPS Axios module to do so and while processing the data we found a huge amount of occasional latency coming in from our destination system, by comparing the logs we found that, the HTTP request created at our end reached the destination system with a few minutes delay.Our understanding is that it might be Axios who is adding delay as we found this Git issue

Infra setup: We have a k8 cluster setup. Our interface is built on NodeJs.

Nodejs v15.3.0
Axios v0.19.2

Please guide me on this as it's a bit critical topic.

You mentioned the issue I brought up with the axios repo. It's hard to say if the same thing is causing the problem that you've described, but certainly plausible. You could try forking axios off of my pull request branch and running your code off of that: https://github.com/axios/axios/pull/2702

The branch is off of v0.19.2 axios so you shouldn't run into any compatibility issues.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM