Node.js on multi-core machines

前端 未结 15 1312
猫巷女王i
猫巷女王i 2020-11-22 07:46

Node.js looks interesting, BUT I must miss something - isn\'t Node.js tuned only to run on a single process and thread?

Then how does it scale for m

15条回答
  •  情歌与酒
    2020-11-22 08:28

    Multi-node harnesses all the cores that you may have.
    Have a look at http://github.com/kriszyp/multi-node.

    For simpler needs, you can start up multiple copies of node on different port numbers and put a load balancer in front of them.

提交回复
热议问题