How NodeJS Works? - You don't Know NodeJS

  Рет қаралды 45,522

Piyush Garg

Piyush Garg

Күн бұрын

Hey Everyone, In this video, we will understand How NodeJS internally works? We'll deep dive into the concepts of Event Loop, Worker Threads, and Single Threaded Architecture of NodeJS.
Quick Links
Full Stack Twitter Clone learn.piyushgarg.dev/learn/tw...
Docker Course learn.piyushgarg.dev/learn/do...
Master NextJS 14 learn.piyushgarg.dev/learn/ne...
NodeJS Event Loop nodejs.org/en/guides/event-lo...
Timestamps
00:00 Introduction
01:25 NodeJS Architecture
04:00 How NodeJS Code Executes?
08:05 Thread Pool
11:05 Event Loop in NodeJS
15:00 Understand Event Loop with Code
29:55 Worker Threads in NodeJS
34:33 Increasing Worker Threads
37:08 NodeJS vs Other Programming Languages
41:15 Promise Handling in NodeJS
42:32 Outro
Video Titles
- How NodeJS work?
- Internal Architecture of NodeJS
- what is Event Loop?
- How NodeJS Handles Requests
- NodeJS Single Threaded Architecture
- Multi-threading with NodeJS
Hashtags
#nodejs #javascript #backendwebdevelopment #fullstackwebdevelopment #webdevelopment #engineering #webdevelopment #opensource #reactjs

Пікірлер: 206
@manojbhamre6062
@manojbhamre6062 Күн бұрын
Can't believe u have only 5 year of experience....ur knowledge is way above who has experienced of 10-15 years
@shababsha5633
@shababsha5633 6 ай бұрын
The worker pool size in Node.js was changed from 128 to 1024 in version 10.5.0. Prior to this version, the default worker pool size was 128. From version 10.5.0 onwards, you can increase the worker pool size up to 1024 by setting the UV_THREADPOOL_SIZE environment variable
@unemployed-coder
@unemployed-coder 6 ай бұрын
what is the significance of increasing it to 1024? It would not help you execute things faster. The ideal value for the thread pool size should be equal to your number of physical cores or if your system system provides hyperthreading then a little more than that too works. @piyushgargdev am I right?
@manishbhardwaj4587
@manishbhardwaj4587 6 ай бұрын
@@unemployed-coder agree, virtually it do make sense but physical core is what matter the most.
@xiaoshen194
@xiaoshen194 5 ай бұрын
Shabash but video mein to 4 threads hi dikhaya h default
@xiaoshen194
@xiaoshen194 5 ай бұрын
​@@manishbhardwaj4587video mein 4 kyu dikhaya h default agr default 128 h?
@prakharsinha6915
@prakharsinha6915 5 ай бұрын
​@@xiaoshen194 Default 4 hi hai bhai... Maximum pehle 128 tha and then increased to 1024
@algobuddy
@algobuddy 6 ай бұрын
Nice one bro, good to see you grow❤
@anujeetswain7368
@anujeetswain7368 5 ай бұрын
Awesome video man!. I was very confused about differentiating the timers and io execution timings.
@tanishqmanuja
@tanishqmanuja 5 ай бұрын
Best node architecture video i have seen so far, keep up the good work 💯
@prvnpn216
@prvnpn216 4 ай бұрын
this is like the most in-depth video on Eventloop and working of Node.js I found, Need a course like this.
@raunakhajela
@raunakhajela 5 ай бұрын
This is the best explanation by far. You explained it so well. I would like to learn more nodejs concepts that no one is talking here.
@sundaramjha1776
@sundaramjha1776 5 ай бұрын
Very well explained really. Have seen lot of other event loop video but this is special. Please continue creating this types of videos.
@NilanjanH
@NilanjanH 5 ай бұрын
I really liked the way you explained, thanks for the easy explanation. I have never been understood better before watching this video. 👏
@user-ec4sx6gg5w
@user-ec4sx6gg5w 6 ай бұрын
i see the full video as well as coded with you . and thnx for this beautiful video . good work
@mayanksh219
@mayanksh219 4 ай бұрын
Thank you Piyush for this amazing video. I learned a lot from this video like EventLoop and under the hood working of Node.js.
@vamsimudaliar7931
@vamsimudaliar7931 6 ай бұрын
One of the finest and in-depth explaination. Thanks Piyush❣
@roshanaswal7221
@roshanaswal7221 5 ай бұрын
Amazing sir, i would like to see more of these kind videos from you. Thank you for your content
@mohdaqib3638
@mohdaqib3638 6 ай бұрын
Thank you for creating such an insightful and engaging video, I truly appreciated the valuable content and your skillful presentation. want more related videos, Thankyou!!
@thisravigangwar
@thisravigangwar 6 ай бұрын
Yes, aur videos chahiye, and what session bhaiya, bhaiya poora din barbaad krdiya faltu me ab neend achhi aayegi yh video dekhne ke baad.❤❤
@hasnainmalik9644
@hasnainmalik9644 6 ай бұрын
Awesome explanation of Node JS Architecture, especially EventLoop which had very confusing for me before watching this detail video. Thank you so much for such awesome video.❤❤
@Kiran-khadka
@Kiran-khadka 6 ай бұрын
Informative as usual❤
@ajmaln73
@ajmaln73 4 ай бұрын
Thank you, I was looking for Nodejs Internal Working explanation for the last one year, This one is more Helpful kudos
@sumitkachare6628
@sumitkachare6628 16 күн бұрын
nice explanation, thanks for such detailed video
@someshkumarmishra8279
@someshkumarmishra8279 16 күн бұрын
bhai maza agaya thank you sir ji
@kiranmohare6276
@kiranmohare6276 6 ай бұрын
Awesome explanation of Node JS Architecture, especially Event Loop which had very confusing for me before watching this detail video. Thank you so much for such awesome video
@Baljeetkaur-tu8qx
@Baljeetkaur-tu8qx 4 ай бұрын
Such a detail video . Quite interesting and helps understanding deep concept of Node.js
@meghnasrivastava568
@meghnasrivastava568 3 ай бұрын
Hands down the best video!
@silentsagateller
@silentsagateller 5 ай бұрын
This video was very helpful, thank you for the wonderful explanation of node.js architecture 😊
@shortflicks83
@shortflicks83 Ай бұрын
Amazing Explanation.
@RahulChaudhary-hi2zo
@RahulChaudhary-hi2zo 3 ай бұрын
Very Nice Video man, keep doing like this .
@vivekchavan9926
@vivekchavan9926 17 күн бұрын
one of the best best explainations
@shivansh901
@shivansh901 Ай бұрын
Excellent explanation, extensive details & good pace. Worth a subscribe bro.
@najimali32
@najimali32 3 ай бұрын
Great Video. Enjoyed it a lot.
@Akhil_NK
@Akhil_NK 5 ай бұрын
Best Explination and the simplest one so Far Thanks Bhaiya
@VishalYadav-gk1kg
@VishalYadav-gk1kg 2 ай бұрын
Very nice explanation sir, Thank you!
@shaileshkamble8730
@shaileshkamble8730 5 ай бұрын
Very indepth concept clearing video..... Thanks Sir...💌
@hatimtekri4949
@hatimtekri4949 6 ай бұрын
Excellent explanation man Hats off Please create such videos, in nodejs only More insight about node js
@krishna04051984
@krishna04051984 2 ай бұрын
Plz make more video like this . Thanks from my bottom of heart❤
@engineerslab1664
@engineerslab1664 5 ай бұрын
Ye koi nhi samjhaya h avi tk , i have searched a lot , thanks buddy for this wonderful explanation 😅
@rudrikasingh2892
@rudrikasingh2892 4 ай бұрын
Best explaination ever!
@me-16ayushverma40
@me-16ayushverma40 6 ай бұрын
outstanding way of explanation bhaiya
@shreyajoshi3886
@shreyajoshi3886 21 күн бұрын
Very informative video💯 Thank u sir😄
@suryagupta1999
@suryagupta1999 6 ай бұрын
Nice explanation 😃....Easy explanation for beginners.
@azimkhan3927
@azimkhan3927 5 ай бұрын
great video, nicely explained
@lucky-laxmi4799
@lucky-laxmi4799 4 ай бұрын
Awesome explanation. Keep making more of these in depth videos. 😍
@anikettripathi1160
@anikettripathi1160 4 ай бұрын
Gem 💎content, bhaiya. Keep it up 👍Thank you!
@sreeharshaudayshankar7217
@sreeharshaudayshankar7217 Ай бұрын
Excellent explanation
@coderkashif
@coderkashif 5 ай бұрын
This is amazing....Thank you....
@dhrubohootowl7579
@dhrubohootowl7579 6 ай бұрын
very well explained thank you
@user-fo7qz5vo3v
@user-fo7qz5vo3v 6 ай бұрын
❤ Thankyou for explaning
@waleed28ful1
@waleed28ful1 4 ай бұрын
Amazing Thankyou soo much for amazing content
@devangsharma8937
@devangsharma8937 4 ай бұрын
Thanks a lot for the video
@AsifAli-cp7uj
@AsifAli-cp7uj 4 ай бұрын
Content is pure gold straight from heaven mann I am craving for more wisdom from this guy thanks piyush bhaiya
@SandeepSingh-px3sw
@SandeepSingh-px3sw 6 ай бұрын
Ultimate😮 video, we want more videos like this.....
@krishna04051984
@krishna04051984 2 ай бұрын
Thanks piyush🎉. Best video for this topic, no one explained like this in KZfaq and I saw many video to clear this concept. Watch ing this video I got the concept, need to watch more this video to clear more
@parv2742
@parv2742 Ай бұрын
Very good explanation, sir 👏🏻
@niraz9701
@niraz9701 5 ай бұрын
How can I thank you for being upload such a great video 😍
@pranayraj8945
@pranayraj8945 5 ай бұрын
What an OP explanation!! ❤❤❤
@643kanavguleria9
@643kanavguleria9 5 ай бұрын
amazing explanation , learned alot 👍
@dhruvdeora9781
@dhruvdeora9781 6 ай бұрын
very imformatiive video. loved it
@rohitpatel2671
@rohitpatel2671 6 ай бұрын
i need this types of videos. please sir... to be continue............
@mohd0606
@mohd0606 Ай бұрын
Kudos to you piyush
@shaikhali5364
@shaikhali5364 6 ай бұрын
Nice explanation! ❤
@sutharjay1
@sutharjay1 5 ай бұрын
Need more video like such
@PawanGupta-oh5ln
@PawanGupta-oh5ln Ай бұрын
Really loved the way you explained the entire architecture. You are a great teacher, you know what is going on in students mind and you answer them methodically. Please let me know if you have any video for V8.
@unemployed-coder
@unemployed-coder 6 ай бұрын
Nicely explained ❤❤
@abirsinha923
@abirsinha923 2 ай бұрын
excellent explanation 👌 👏 👍
@manojbhamre6062
@manojbhamre6062 Күн бұрын
U r gem man...just found ur channel ❤
@adityacholkar1421
@adityacholkar1421 6 ай бұрын
Very well explained👍
@Khedhar108
@Khedhar108 5 ай бұрын
"08:05"- Thread Pool "12:27"- IO polling "21:30" - undefinite behaviour of setTimeout and setInterval in main thread
@raahultrivedimusic
@raahultrivedimusic 5 күн бұрын
Very well structured, and very well explained Piyush! You know when to say what and in what sequence! Thank you so much for all your efforts for all of us. Amazing work, keep it up! 🔥🔥
@praveshpal9644
@praveshpal9644 6 ай бұрын
perfect explanation sir 💯💯
@greeneryman2699
@greeneryman2699 6 ай бұрын
42:45 Yes cha hi hai aise video
@chidambarjoshi3470
@chidambarjoshi3470 6 ай бұрын
Next level explaination
@GunjanShrimali
@GunjanShrimali 6 ай бұрын
Great video best ever explain
@houseofcoding101
@houseofcoding101 6 ай бұрын
Thank you sir!
@Zaheer__zk40
@Zaheer__zk40 4 ай бұрын
Nice explanation ❤❤
@AvinashSingh-tr5vt
@AvinashSingh-tr5vt 6 ай бұрын
Awesome explanation 💚💚
@r_lyricals_6201
@r_lyricals_6201 5 ай бұрын
Genius brother 🎉
@veerendrashukla
@veerendrashukla 6 ай бұрын
very nice. nice drawing, nice explanation.
@shahzadmujtaba1725
@shahzadmujtaba1725 5 ай бұрын
I love it make more videos on docker
@aditimahabole1761
@aditimahabole1761 6 ай бұрын
Aap best ho !!!
@TanmaySarkar
@TanmaySarkar 6 ай бұрын
Very informative 💪🏻
@akshaykatrodiya6149
@akshaykatrodiya6149 6 ай бұрын
"great explanation of how the Node.js event loop works", WD 👌🏽
@mukulyadav3770
@mukulyadav3770 5 ай бұрын
Absolute stunner
@sumirandahal76
@sumirandahal76 6 ай бұрын
THank you so much I enjooyed and understand
@RohitRaj-od3be
@RohitRaj-od3be 5 ай бұрын
very interesting video.
@JitendraLodhi-ei6vs
@JitendraLodhi-ei6vs 6 ай бұрын
Very knowledgeable video🎉🎉🎉
@user-dd6zl4kg9d
@user-dd6zl4kg9d 6 ай бұрын
bro some are some thing diff bro great work
@rishabhkedia9304
@rishabhkedia9304 5 ай бұрын
put more videos like this. it'll help you build core audience.
@sidhant251
@sidhant251 4 ай бұрын
Great video 😇
@vrutilkjadav1030
@vrutilkjadav1030 3 ай бұрын
informative video!
@smartguy3k
@smartguy3k 3 ай бұрын
great! Thanks
@gujaratinimoj3845
@gujaratinimoj3845 6 ай бұрын
Good sir..👍👍
@harshmehrotra1214
@harshmehrotra1214 5 ай бұрын
reallly like to watch the explation of js working please make a video on that
@_Blackwolf_01
@_Blackwolf_01 6 ай бұрын
Thanks bhai ❤
@rishiraj2548
@rishiraj2548 6 ай бұрын
Great thanks
@ayandippaul3108
@ayandippaul3108 3 ай бұрын
Bro really greattt❤❤
@atanumojumdar
@atanumojumdar 5 ай бұрын
Thankyou 💜
@punitpubggaming7531
@punitpubggaming7531 6 ай бұрын
Much needed video, but just a suggestion, Please keep theme costant to dark everywhere, it will look more aesthetic and there will not a flashes in our eyes. Thanks 😂😂
@vinitjain7
@vinitjain7 5 ай бұрын
Thank u sir
@sameergaikwad222
@sameergaikwad222 5 ай бұрын
Nice And Detailed Explanation. Quite Impressed.😍 Can you please also share those Notes.👍👍👍 Thanks👍👍👍
@supravatsarkar5866
@supravatsarkar5866 2 ай бұрын
Never seen like that explanation .... Thank you so much Piyush Vai 💌. Create courses (Paid) regarding System Design /DSA / Devops/Microservice . All the best.
@abhisheknavgan6829
@abhisheknavgan6829 6 ай бұрын
nice video
How SSL Certificate Works?  - HTTPS Explained
20:42
Piyush Garg
Рет қаралды 203 М.
How to Crack Any System Design Interview | Scalable System Design
27:20
Пранк пошел не по плану…🥲
00:59
Саша Квашеная
Рет қаралды 6 МЛН
Получилось у Миланы?😂
00:13
ХАБИБ
Рет қаралды 4,7 МЛН
IQ Level: 10000
00:10
Younes Zarou
Рет қаралды 10 МЛН
Heartwarming Unity at School Event #shorts
00:19
Fabiosa Stories
Рет қаралды 24 МЛН
How to send browser push notifications from a Node.js app
15:05
Javascript Interview Questions
40:02
Piyush Garg
Рет қаралды 28 М.
How Node JS Works?
9:11
Telusko
Рет қаралды 200 М.
What is Langchain and vector databases
21:48
Chai aur Code
Рет қаралды 22 М.
What is Nginx?
11:45
Piyush Garg
Рет қаралды 55 М.
Complete GIT in 1 video
3:43:17
Hitesh Choudhary
Рет қаралды 75 М.
Пранк пошел не по плану…🥲
00:59
Саша Квашеная
Рет қаралды 6 МЛН