Node.js for intensive cpu operations

There is something that I really don’t understand about Node.js: almost everywhere you can read that node.js is not recommended for HPC (high performance computing) because of its asynchronous, but single-threaded nature.

You can find Node.js, which is always explained using Express.js to create a really fast web server or service, which also allows you to send HTML or JSON in your response after some query to a SQL or NoSQL database.

But here is what.

You can also find many packages in npm for time-consuming and intensive operations , such as fluent-ffmpeg for video encoding. Or you can use request and cheerio and create a web scraper.

Npm, also a complete command line application written for Node.js (in Node.js). Are all applications used for time-saving operations?

We can also find many frameworks, such as next.js , which, at least for me, do not look as if they are doing something very light.

So what can we do with Node.js?

What does "intensive cpu operation" mean?

node javascript -, , , Node.js.

+4
1

ffmepeg package, , :

, , ffmpeg.

, . ffmpeg, API ffmpeg.

, , spawn ffmpeg . " node".

, ffmpeg, ? , , , , . , , node HTML -, - , .

, " " "? . :

  • - 2011 . javascript. , . , , .

  • I/O:

    /

    -, , " /"

  • . , . , , .

  • "CPU-", . , node, , , , . , , , ffmpeg.

, ? , . , , , , javascript. API . , , ! , .

+2

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