What is the performance for Node.js' http.request ? How many concurrent request it can handle?

后端 未结 1 1473
[愿得一人]
[愿得一人] 2021-01-02 08:37

My node.js server is making a call to another server using the latest (0.4.8) http.request call.

I use jMeter to run load testing. with 50-100 concurrent threads pe

相关标签:
1条回答
  • 2021-01-02 09:17

    The max concurrent connections should depends on your hardware. This article said node.js can support tens of thousands of concurrent connection. However, most linux systems only allow you open 1024 files/sockets on same time by default. For that case, you can run as root and then set ulimit as a big number(e.g., 100000), then run a stress test with your hardware for getting the accurate capacity of concurrent connection.

    0 讨论(0)
提交回复
热议问题