Node.js Event Loop Explained

  Рет қаралды 11,639

Software Developer Diaries

Software Developer Diaries

Күн бұрын

Пікірлер: 16
@GoRannization
@GoRannization Ай бұрын
This is kind of tutorial I am looking for. Subscribed for more.
@rushingwp
@rushingwp 4 ай бұрын
wow. I read the official doc and was perplexing for an hour straight. and you smashed it in 10 mins. just wow. you've earn 1 more sub.
@SoftwareDeveloperDiaries
@SoftwareDeveloperDiaries 4 ай бұрын
Happy to hear that! 😊
@olehmikadze3653
@olehmikadze3653 5 ай бұрын
every time I look such videos, I discover more and more, and understanding it better and better. so thanks a lot for your work!!! really best explanation maybe "on the market"
@SoftwareDeveloperDiaries
@SoftwareDeveloperDiaries 5 ай бұрын
Thanks a lot, amigo! ❤️
@ehSamurai3483
@ehSamurai3483 Ай бұрын
setTimeout 1 nextTick 1 Promise 1 Promise 2 queueMT 1 setTimeout 2 setTimeout 3
@tigranbalayan6521
@tigranbalayan6521 3 ай бұрын
The most important discovery for me is the following: When we think about event loop, we are trying to define one point of view and order things depending on that, but in fact, this diagram shows, that there are at least two of them. Let me explain what I mean: So from the application point of view, your loop starts from TIMERS step, it executes Timers, Pending callbacks, idle + prepare, and only after that your app is ready for POLL But when we think on request processing level, our event loop first step is POLL and moves forward to check and close callbacks, then loops back to timers. That's why we think that timers are under prioritized by the system, because our point of view in most cases stands on poll stage. And from that point of view that's correct, your set timeout will be handled later. Close callbacks, per my understanding needs more examples. Because how the regular http request works? We open connection, and then we close the http connection, not only socket connection. So by keeping that in mind, we can understand that our timers will execute when we already sent response and closed the connection. P.S. Guys, this is how I understand this, and my thoughts can be mistaken, so please improve me if I'm wrong.
@vinayakporwal9885
@vinayakporwal9885 5 ай бұрын
Great explaining try to make a video on worker threads and clusters too that can help to understand use of multi core for optimization
@SoftwareDeveloperDiaries
@SoftwareDeveloperDiaries 5 ай бұрын
Already have, check out the Node.js playlist 😉
@prashlovessamosa
@prashlovessamosa 5 ай бұрын
When you dropped a video on Event Driven Architecture I asked for implementation some of its parts please do consider my request make something on implementation of EDA
@yadneshkhode3091
@yadneshkhode3091 5 ай бұрын
Thanks❤
@TheAbiGeorge
@TheAbiGeorge 5 ай бұрын
Thank you
@spartondon1010
@spartondon1010 4 ай бұрын
Bruh your voice 😮‍💨🔥
@NguyenNgoc-b3e
@NguyenNgoc-b3e 5 ай бұрын
great content
@axel_huth
@axel_huth 5 ай бұрын
Under the Huth 😁
@MusaAytmamatov
@MusaAytmamatov 4 ай бұрын
So cool!
All you need to know about "child_process" in Node.js
12:38
Software Developer Diaries
Рет қаралды 10 М.
JavaScript Event Loop -- Visualized!
29:43
ColorCode
Рет қаралды 26 М.
My scorpion was taken away from me 😢
00:55
TyphoonFast 5
Рет қаралды 2,7 МЛН
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 42 МЛН
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 158 МЛН
Node.js Tutorial - 42 - Event Loop
14:21
Codevolution
Рет қаралды 131 М.
JavaScript Visualized - Event Loop, Web APIs, (Micro)task Queue
12:35
Node JS Event Loop: The One Thing Most Developers Overlook!
9:33
Monsterlessons Academy
Рет қаралды 4,9 М.
The Node.js Event Loop: Not So Single Threaded
31:54
node.js
Рет қаралды 168 М.
Scaling your Node.js app using the "cluster" module
13:44
Software Developer Diaries
Рет қаралды 51 М.
How to use Multithreading with "worker threads" in Node.js?
19:34
Software Developer Diaries
Рет қаралды 79 М.
Transformers (how LLMs work) explained visually | DL5
27:14
3Blue1Brown
Рет қаралды 4,3 МЛН
Dependency Injection, The Best Pattern
13:16
CodeAesthetic
Рет қаралды 908 М.
JavaScript Visualized - Promise Execution
8:42
Lydia Hallie
Рет қаралды 198 М.
My scorpion was taken away from me 😢
00:55
TyphoonFast 5
Рет қаралды 2,7 МЛН