Ritenta

Node.js

How Node.js handles many requests with one thread

Node.js runs your code on a single thread and still serves many requests at the same time. This post follows one HTTP request from the socket to the response, and uses measurements to show which work needs a thread and which work the operating system does for free.

13 min read

Node.js CPU intensive operations

Superficially look at the worker_threads module in Node.js. In this post, we are going to take a look at the most trivial example (counting a big number).

7 min read