We have microservices built using node js. One service(say service A) need to make http api call to other service(say service B) to complete its functionality. Load test of service A is giving lower TPS (transactions per second) and the reason for this is the api call is taking time. However when load test is done directly on service B gives very good TPS.
During load test TPS start coming down gradually.
So I think node js or the axios library is causing the performance issue.
Could you please let me know how we could get better performance in the api calls.
I have simple express route method as below , I am using soap ui to do simple load test, where I get TPS of less than 50% when compared to TPS of load test done directly to the ping url used below
router.post("/", async function(req, res) {
await axios.get("http://localhost:3501/ping");
res.status(201).json("completed");
});