Why is node.js not suitable for heavy CPU apps?

前端 未结 4 1983
故里飘歌
故里飘歌 2020-12-12 17:04

Node.js servers are very efficient concerning I/O and large number of client connection. But why is node.js not suitable for heavy CPU apps in comparison to a traditional mu

4条回答
  •  情深已故
    2020-12-12 17:38

    You can have a look at this package, the-computer, which may help you do some cpu intensive works in a single instance of node.js app in a simple way.

    Definitely it is not as effective as raw c++ libs, but it can cover most general computing cases, keeping you in node.js garden while allowing you leverage the cores of the cup.

提交回复
热议问题