Node.js Reactor Pattern & Event Loop | How Node.js Supports Concurrency | Learn Node.js

Опубликовано: 16 Ноябрь 2022
на канале: ProgressiveCoder
3,225
94

Node.js Reactor Pattern | Node.js Event Loop | NodeJS Event Loop Architecture | NodeJS Event Loop Explained | Node.js Event Demultiplexer | NodeJS libuv

#NodeJS #EventLoop #NodeJSTutorial

In this video, I talk about how the Node.js supports concurrency. We take a deep dive in understanding the NodeJS Reactor Pattern and the Event Loop.

During the video, we will understand the consequences of JavaScript’s single-threaded nature and what happens when it has to deal with slow and blocking I/O.

Next, we understand how Non-Blocking I/O works using busy-wait followed by the event demultiplexer approach to handle I/O operations.

Finally, we understand the step-by-step approach of the Reactor Pattern to implement the Node.js Event Loop and the role of libuv in the overall big picture.

— TIMESTAMPS ⏰ —

00:00 - Intro
00:37 - JavaScript is Single-Threaded
03:07 - Slow and Blocking I/O Operations
05:20 - Non-Blocking I/O with Busy-Waiting
06:17 - Introduction to Event Demultiplexer
07:51 - NodeJS Reactor Pattern
10:14 - NodeJS I/O Engine libuv
11:35 - Various Layers of Node.js
12:26 - Outro

— Subscribe to the Newsletter ✉️ —
https://progressivecoder.substack.com/

— Connect with Me 🙌 —
TWITTER -   / progressivecod2  

LINKEDIN -   / saurabh-dashora-b3601173  

GITHUB - https://github.com/dashsaurabh

— Other Platforms 👇👇 —
ProgressiveCoder Blog - https://progressivecoder.com
ProgressiveWebNinja Blog - https://www.progressivewebninja.com
Hashnode - https://saurabhdashora.hashnode.dev/
Dev - https://dev.to/dashsaurabh