LoginSignup
6
4

More than 5 years have passed since last update.

Node.jsで外部への通信がボトルネックになっていそうな場合

Posted at

http://blog.96q.org/2011/12/25/10-tips-for-faster-performance-node-js/
によると、デフォルトでソケットプーリングが有効(5本通信できる)のようなので、これをカットすることでかなり改善できる。

    http.get({
        host:'...',
        path:'...',
        agent: false //これでソケットプーリングOFF。
    }, function (res) {
6
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
4