Node.js Architecture - is Node single threaded? multi threaded?

Опубликовано: 08 June 2026
на канале: academeez
550
25

In this lesson we are going to talk about Node.js Architecture, and while doing so we will try to answer the question: Is Node.js single-threaded or multi-threaded?

Understanding Node.js architecture, and the job of the main thread will help you understand why your Node.js server is slow, it will also help you answer the question: Is Node.js the right tool for the job?

Here is a few links that we visited during the lecture:
Nodejs worker_threads module: https://nodejs.org/docs/latest/api/wo...
Node.js example of main thread starvation that originates from the C++ section: https://nodejs.org/en/learn/getting-s...
image of the architecture is available here:   / nodejs-architecture  

Step by step guide of this lecture including all the source code is available in academeez: https://www.academeez.com/courses/nod...

#nodejs #expressjs

0:00 Introduction
1:39 Lesson plan
3:56 What is a Process? What is a Thread?
6:48 JS, JS Engine, JS Runtime
13:29 Node.js is multi-threaded
26:05 Why is it important to understand Node.js architecture
29:24 Main thread starvation example
45:40 Best practice tips to avoid main thread starvation
51:00 Summary