Node.js Architecture - is Node single threaded? multi threaded?
Автор: academeez
Загружено: 2024-11-26
Просмотров: 470
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
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: