Тёмный

Node.js Tutorial - 42 - Event Loop 

Codevolution
Подписаться 645 тыс.
Просмотров 102 тыс.
50% 1

⚡️Syncfusion components: syncf.co/3Emhvnv
📘 Courses - learn.codevolution.dev/
💖 Support UPI - support.codevolution.dev/
💖 Support Paypal - www.paypal.me/Codevolution
💾 Github - github.com/gopinav
📱 Follow Codevolution
+ Twitter - / codevolutionweb
+ Facebook - / codevolutionweb
📫 Business - codevolution.business@gmail.com
Event Loop
Node.js Tutorial
Node.js Tutorial for Beginners

Опубликовано:

 

12 янв 2023

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 87   
@watherby29
@watherby29 Год назад
You are literally the only person that, when explaining, makes me remember all I listened and watched. Amazing. Don't know how you do it. Thank you.
@BorgMater
@BorgMater Год назад
Was about to say the same thing!
@bassam.2023
@bassam.2023 9 месяцев назад
What don't you get? Vishvas is a Master teacher, that's why.
@pigra24
@pigra24 Год назад
One of the best high-level explanation of the event loop, ever!! Thank you so much for this.
@shineLouisShine
@shineLouisShine Год назад
Impressed by the flawlessly flowness of teaching.
@dontargetme2416
@dontargetme2416 Год назад
This content is gold, hope you're planning for the cluster module and (exec, spawn, fork) with deep explanation in your next vods
@stanleyhayford6881
@stanleyhayford6881 Год назад
I swear I love you. I'll learn anything you teach. Now I can picture the event loop. I'm happy. I'm just walking around and laughing
@AhmedMohammed-ks8uo
@AhmedMohammed-ks8uo Год назад
Thank you, Vishwas for this fantastic course. you are always the best choice to explain any topic
@nagarjundeepak
@nagarjundeepak 7 месяцев назад
this is by far one of the brilliantly articulated video out there that too for free wrt node js event loop... thanks a ton
@shubhamkareer
@shubhamkareer 7 месяцев назад
The way yo taught this process of event loop amazed me. Hats off to your skills.
@cl-7832
@cl-7832 5 месяцев назад
Hands down the best presentation on this topic! Wow! Thank you.
@owethuweek6283
@owethuweek6283 11 месяцев назад
Thank you, thank you! You are a star and you have earned a subscriber. Well explained and I now have the required confidence to understand as to what is going on the event loop.
@ImAkid-ss5pb
@ImAkid-ss5pb 9 месяцев назад
Best nodejs playlist I ever came across youtube
@huydang277
@huydang277 Год назад
Wonderful work, sir. I read some article in internet and noone more clear than your video. Thank you so much
@mitalisingh533
@mitalisingh533 2 месяца назад
The best explanation i ever watched of this topic. I have been facing a lot of trouble lately understanding javascript's async behaviour. I think i am gonna find the solution here only. Too good. Really appreciable.
@RehanKhan-xf3ml
@RehanKhan-xf3ml 3 месяца назад
You are the best 💡 I saw a lot of vids and tuts but this demonstration is simply amazing
@pradneshkhedekar5279
@pradneshkhedekar5279 Год назад
Really great explanation and on point with visual representation 👍
@AliRaza-ru6fx
@AliRaza-ru6fx Год назад
visual representation is more effective than explaining thing without it. Thanks @vishwas sir.
@skumarwebdev
@skumarwebdev Год назад
Well researched video. No video of event loop on youtube told me that the libuv is just a C program. Nice.
@cryptomambaindia2645
@cryptomambaindia2645 Год назад
Great explaination on event loop!! Thank you.
@swapnil511994
@swapnil511994 2 месяца назад
you are a god in a mortal's body. the best explanation till date
@josephchukwu6088
@josephchukwu6088 Год назад
Thanks a lot sir Vishwas,ypu're an incredible teacher
@HEAVYMETAL80tas
@HEAVYMETAL80tas 5 месяцев назад
Waaaoo!! Is a great experience to watch this just like a good movie.. It is so entertaining and digestable for this articulated concept. Is very enjoyable to have this understanding, how everything fits! 👌🍿🔥
@user-sv2dg7bz8m
@user-sv2dg7bz8m 2 месяца назад
best explanation of event loop to date. no one does better.
@rokckerzzzz6080
@rokckerzzzz6080 Год назад
Very informative video with visual representation and it's explanation. Thank you
@abhishekvishwakarma9045
@abhishekvishwakarma9045 Год назад
really great representation and explanation 😎 awesome as always
@BruceWayne-kw6xm
@BruceWayne-kw6xm 6 месяцев назад
The Only Best Video On RU-vid or in any paid video about the explaination of event loop... hats off to vishwas 🫡🫡🫡🫡
@Quoccute854
@Quoccute854 2 месяца назад
Best nodejs event loop explanation, thank you 😍
@BRUNANAIANMOREIRALIMAGARCIA
@BRUNANAIANMOREIRALIMAGARCIA 2 месяца назад
That was very well explained, thank you
@amolagarwal5336
@amolagarwal5336 8 месяцев назад
The best explanation I have ever had on the event loop. you rock Vishwas. Thanks for the video
@caaltz
@caaltz 7 месяцев назад
this course is a treasure
@gyunseo0311
@gyunseo0311 2 месяца назад
설명 진짜 개쩐다 말이 안됨... 이사람은 신이야
@yotajm1982
@yotajm1982 Год назад
amazing, best explaination ever!...
@frontend_ko
@frontend_ko Год назад
thanks teacher, 42 it was great!
@shantanusinha3609
@shantanusinha3609 20 дней назад
Great explanation!
@lilitmazmanyan1873
@lilitmazmanyan1873 9 месяцев назад
THANK YOU VERY MUCH FOR THE COURSE!! Best explanation yet.
@yashgaur1716
@yashgaur1716 9 месяцев назад
That was some great explanation
@raghavenderkuppireddy7158
@raghavenderkuppireddy7158 Месяц назад
Beautiful explanation ❤❤❤❤❤
@Shivam-sl4sp
@Shivam-sl4sp 7 месяцев назад
Thanks man!!
@adehenry9591
@adehenry9591 Год назад
Thank you Vishwas 🙏🏾
@asifmulla9308
@asifmulla9308 Год назад
Great explanation sir..😍😍😍
@AHMED-nd7zt
@AHMED-nd7zt 2 месяца назад
that was really nice
@gauravbisht1949
@gauravbisht1949 Год назад
Great knowledge sharing video
@vintiray6251
@vintiray6251 Год назад
great explanation
@mostinho7
@mostinho7 Год назад
8:30 the event loop visualization and the different queues inside it
@LearnWithJK03
@LearnWithJK03 11 месяцев назад
Thanks a lot 🙏
@ehza
@ehza 11 месяцев назад
Oh damn! This is useful
@AlaminHossain-hf2gv
@AlaminHossain-hf2gv Год назад
Helpful video
@jasbrar7301
@jasbrar7301 Год назад
Hi Vishwas, thanks for the amazing content. Looking forward to the Express course, when are going to drop it?
@boopfer387
@boopfer387 Год назад
wow thanks again
@muthu1046
@muthu1046 Год назад
Thanks!
@user-jd7ub3tq2b
@user-jd7ub3tq2b Год назад
Many thanks. How many videos are planned for this playlist?
@RajYadav-fy4lm
@RajYadav-fy4lm Год назад
just wanted to ask what would be the last topic fo the event loop playlist?
@rishabh010189
@rishabh010189 Год назад
Hey, I have a question - for any queue other than the Microtask queue will the event loop wait for it to finish with all of its callbacks before checking in with the Microtask queue, or will it check the Microtask queue after when each and every callback is executed and popped off from the call stack. Considering the call-stack is now empty, it should ideally check with the Microtask queue first before picking up any other cb() from the other queues. Hope, I am able to explain my question. Thanks.
@rishabh010189
@rishabh010189 Год назад
I got my answer from the following sessions, so please ignore. Although I think this video @11.37 seconds needs to be corrected as it says in point no #2,#4,#6,#8 seems a bit misleading to me
@js_programmer8423
@js_programmer8423 9 месяцев назад
variables are stored on the call stack, not the memory heap.
@DuckpoolOfficial
@DuckpoolOfficial 4 дня назад
waiting for express js tutorials
@celestenzeza520
@celestenzeza520 2 месяца назад
I think there's a mistake around the 11:32 mark on step number 3. Based on my understanding, If a task in the timer queue (or any macrotask queue) enqueues a microtask (say you have a promise inside a setTimeout callback) the event loop will not execute the other macrotasks in that queue and start executing from the microtask queue until it is empty again.
@celestenzeza520
@celestenzeza520 2 месяца назад
this code snippet prints 1, 2, 3, 4, 5, 6 function main() { console.log('1'); setTimeout(() => { console.log('3'); // this is a microtask within the callback of a macrotask process.nextTick(() => { console.log('4'); }); // this is a macrotask within the callback of a macrotask setTimeout(() => { console.log('6'); }, 0); }, 0); setTimeout(() => { console.log('5'); }, 0); process.nextTick(() => { console.log('2'); }); } main()
@user-yl8jr2sq2m
@user-yl8jr2sq2m 11 месяцев назад
Gooo job however, i will be glad if you can use explain the last-in-first-out principle using the console
@watherby29
@watherby29 Год назад
I am wondering how those tasks in the low-priority queues are executed at all
@DanZ-fq2qs
@DanZ-fq2qs Год назад
Thanks for the video! I need to point out that Execution order is incorrect. The micro task queue will not wait for all callbacks within the timer queue are executed. Instead for Node 11+ nextTick callbacks and microtasks will run between each individual setTimeout and setImmediate callbacks, even if the timers queue or the immediates queue is not empty.
@curios_bot
@curios_bot Год назад
Yes, I tested this.
@RamKumar-es3mp
@RamKumar-es3mp Год назад
Great content. Please upload RXJS videos please
@morpheusmatrix1073
@morpheusmatrix1073 Год назад
Liiiii__Buuuu__V_________ 😀 ! Loved it ! Man thanks for this explaiation ! 👍
@NeuronEnix
@NeuronEnix 22 дня назад
setImmediate seems to run before setTimeout, does that mean check queue is executed first before timer queue ? I'm on node v20.14.0 setTimeout(() => console.log("timeout")) setImmediate(() => console.log("immediate")) ouput: immediate timeout
@nishantsatere9350
@nishantsatere9350 12 дней назад
GODDDDDDDDDDDDD
@jogre900
@jogre900 Год назад
Sr can you do a series about SOLID pirnciples on a react app please?
@user-hx5cs6dh7h
@user-hx5cs6dh7h 13 дней назад
just watched 4:30 and i already your fan sir... you got my sub, my support and lots of love (^_^)
@rishiraj2548
@rishiraj2548 Год назад
🙏🙏
@abdulhashik
@abdulhashik 3 месяца назад
It’s better to show the order of execution or priority in the diagram itself
@onlineofathing9351
@onlineofathing9351 5 месяцев назад
You said javascript is synchronous but the new javascript - ES6 uses async functions? Am a bite confused
@user-jh4be4ig6t
@user-jh4be4ig6t 8 месяцев назад
Great explanation, but isn't it a mistake in 11:20? "All callbacks within the timer queue are executed" - is it true? Not only limited amount of them?
@soumadip_skyy_banerjee
@soumadip_skyy_banerjee 8 месяцев назад
HOW TO GET HOLD OF YOUR SLIDES? PLEASE PLEASE PLEASE REPLY ❤
@user-iq1km3bd9s
@user-iq1km3bd9s Год назад
What about the events created by eventemitter there is no details about it
@hakoona_matatah
@hakoona_matatah 7 месяцев назад
But JavaScript is non blocking Please explain
@lekhiem7572
@lekhiem7572 7 месяцев назад
The cycle diagram appears to be outdated. I would recommend referring to the official site for an updated explanation, which is provided below: - A process.nextTick callback is added to process.nextTick queue. A Promise.then() callback is added to promises microtask queue. A setTimeout, setImmediate callback is added to macrotask queue. - Event loop executes tasks in process.nextTick queue first, and then executes promises microtask queue, and then executes macrotask queue.
@prateek1369
@prateek1369 6 месяцев назад
could you pls point me to some reference that talks about this change. I'm very confused rn
@vinay3191
@vinay3191 11 месяцев назад
you have mentioned setTimeout and setInterval callbacks are given first priority, but actually.......... In the Node.js event loop, the execution of setTimeout and setInterval callbacks is not given first priority. These callbacks are enqueued in the event queue after their specified delay or interval, and they are not immediately executed when their time is up. Instead, they will be executed only when the event loop has the opportunity to process them.
@chetankumar9463
@chetankumar9463 11 месяцев назад
Also he said that synchronus code will always run before async code. That's why call stack needs to run synchronus code first. When stack got empty then event loop will start to push async code.
@loveutube04
@loveutube04 8 месяцев назад
The event loop works in a loop... Recall the diagram..setTimeout and setInterval are given first priority but even loop works in a loop..if it is in the middle of the evvent loop, the timeout events have to wait till loop is complete and their turn comes
@himanshupoddar1395
@himanshupoddar1395 11 месяцев назад
NodeJS be like: Yeh toh Dhoti khol raha hai
@shekhar5051
@shekhar5051 Год назад
Redis Series please 🙂!
@dannnsss8034
@dannnsss8034 11 дней назад
Do you really need to understand all of this? I just have to 'know node' for work. I'm thinking of skipping these Event Loop videos, go straight to the NPM videos.
@ashwathshetty4227
@ashwathshetty4227 11 месяцев назад
What will be the order of execution if we have setImmediate and setTimeout(fn,0) @codeevolution
@user-gb3ms5np5g
@user-gb3ms5np5g 9 месяцев назад
console.log("Start"); setTimeout(() => { console.log("Timer Callback 1"); }, 1000); setTimeout(() => { console.log("Timer Callback 2"); }, 500); const fs = require('fs'); fs.readFile('example.txt', (err, data) => { if (err) { console.error("I/O Callback (Read File) Error:", err); } else { console.log("I/O Callback (Read File)"); } }); setImmediate(() => { console.log("Immediate Callback"); }); console.log("End"); when im trying to run this code timer queue callbacks running after all the callbacks why according to priority timer queue should run first right
@swatijain1809
@swatijain1809 Год назад
Just one word for you AWESOME🥸
Далее
Node.js Tutorials - 43 - Microtask Queues
14:30
Просмотров 41 тыс.
How NodeJS Works? - You don't Know NodeJS
42:52
Просмотров 43 тыс.
Каха и суп
00:39
Просмотров 2,9 млн
ШОКОЛАДКА МИСТЕРА БИСТА
00:44
Просмотров 798 тыс.
AsyncIO and the Event Loop Explained
13:34
Просмотров 23 тыс.
Event loop в Node.js
33:45
Просмотров 42 тыс.
tRPC, gRPC, GraphQL or REST: when to use what?
10:46
Просмотров 72 тыс.
Node.js is a serious thing now… (2023)
8:18
Просмотров 632 тыс.