Node.js Express application taking too much time to process outbound HTTP requests under load testing Node.js Express application taking too much time to process outbound HTTP requests under load testing express express

Node.js Express application taking too much time to process outbound HTTP requests under load testing


I am seeing the same behaviour, I have simple proxy module created. When I call a endpoint directly its taking 50ms, but via proxy server (which internal make another req and pipe to original req) it taking double ~100ms. I have also tried all options what you mentioned here.

I am glad I am not alone having this issue, will be digging into further. Will let you know if found something.

UPDATE

After setting keepAlive=true on agent, I was able to get result for proxied request with ~5ms more than direct call.