Why does HTTP continue to be turned off by default in Node.js?

This is the first time I have implemented a back-end in Node.js, and I have discovered that the keep alive option is disabled by default for the HTTP Agent . For me, this affects performance because I work with the AWS SDK , creating tons of requests for its services. In fact, my load testing helped to find that this option is disabled - so I turned it on and got much better performance. I wonder if anyone knows why it is disabled by default? Is it consistent with compatibility (AFAIK this parameter was added several years ago) or for some other reason? Maybe I missed something? Found commit where it was added -https://github.com/nodejs/node/commit/9fc9b87472806147b83c24d85b303c4f75d3021c

Nazar

+4
source share

Source: https://habr.com/ru/post/1676541/


All Articles