How NodeJS Works? - You don't Know NodeJS

  Рет қаралды 43,892

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

Пікірлер: 199
@shababsha5633
@shababsha5633 5 ай бұрын
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 5 ай бұрын
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 5 ай бұрын
@@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
@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.
@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.
@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.
@vamsimudaliar7931
@vamsimudaliar7931 5 ай бұрын
One of the finest and in-depth explaination. Thanks Piyush❣
@engineerslab1664
@engineerslab1664 4 ай бұрын
Ye koi nhi samjhaya h avi tk , i have searched a lot , thanks buddy for this wonderful explanation 😅
@kiranmohare6276
@kiranmohare6276 5 ай бұрын
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
@ajmaln73
@ajmaln73 3 ай бұрын
Thank you, I was looking for Nodejs Internal Working explanation for the last one year, This one is more Helpful kudos
@Akhil_NK
@Akhil_NK 4 ай бұрын
Best Explination and the simplest one so Far Thanks Bhaiya
@NilanjanH
@NilanjanH 4 ай бұрын
I really liked the way you explained, thanks for the easy explanation. I have never been understood better before watching this video. 👏
@algobuddy
@algobuddy 5 ай бұрын
Nice one bro, good to see you grow❤
@hasnainmalik9644
@hasnainmalik9644 5 ай бұрын
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.❤❤
@mayanksh219
@mayanksh219 3 ай бұрын
Thank you Piyush for this amazing video. I learned a lot from this video like EventLoop and under the hood working of Node.js.
@anujeetswain7368
@anujeetswain7368 4 ай бұрын
Awesome video man!. I was very confused about differentiating the timers and io execution timings.
@mohdaqib3638
@mohdaqib3638 5 ай бұрын
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!!
@user-ec4sx6gg5w
@user-ec4sx6gg5w 5 ай бұрын
i see the full video as well as coded with you . and thnx for this beautiful video . good work
@lucky-laxmi4799
@lucky-laxmi4799 4 ай бұрын
Awesome explanation. Keep making more of these in depth videos. 😍
@suryagupta1999
@suryagupta1999 5 ай бұрын
Nice explanation 😃....Easy explanation for beginners.
@Kiran-khadka
@Kiran-khadka 5 ай бұрын
Informative as usual❤
@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
@Baljeetkaur-tu8qx
@Baljeetkaur-tu8qx 3 ай бұрын
Such a detail video . Quite interesting and helps understanding deep concept of Node.js
@me-16ayushverma40
@me-16ayushverma40 5 ай бұрын
outstanding way of explanation bhaiya
@silentsagateller
@silentsagateller 5 ай бұрын
This video was very helpful, thank you for the wonderful explanation of node.js architecture 😊
@rohitpatel2671
@rohitpatel2671 5 ай бұрын
i need this types of videos. please sir... to be continue............
@roshanaswal7221
@roshanaswal7221 5 ай бұрын
Amazing sir, i would like to see more of these kind videos from you. Thank you for your content
@thisravigangwar
@thisravigangwar 5 ай бұрын
Yes, aur videos chahiye, and what session bhaiya, bhaiya poora din barbaad krdiya faltu me ab neend achhi aayegi yh video dekhne ke baad.❤❤
@krishna04051984
@krishna04051984 Ай бұрын
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
@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.
@shaileshkamble8730
@shaileshkamble8730 5 ай бұрын
Very indepth concept clearing video..... Thanks Sir...💌
@shivansh901
@shivansh901 21 күн бұрын
Excellent explanation, extensive details & good pace. Worth a subscribe bro.
@hatimtekri4949
@hatimtekri4949 5 ай бұрын
Excellent explanation man Hats off Please create such videos, in nodejs only More insight about node js
@user-fo7qz5vo3v
@user-fo7qz5vo3v 5 ай бұрын
❤ Thankyou for explaning
@shaikhali5364
@shaikhali5364 5 ай бұрын
Nice explanation! ❤
@unemployed-coder
@unemployed-coder 5 ай бұрын
Nicely explained ❤❤
@SandeepSingh-px3sw
@SandeepSingh-px3sw 5 ай бұрын
Ultimate😮 video, we want more videos like this.....
@dhrubohootowl7579
@dhrubohootowl7579 5 ай бұрын
very well explained thank you
@anikettripathi1160
@anikettripathi1160 4 ай бұрын
Gem 💎content, bhaiya. Keep it up 👍Thank you!
@niraz9701
@niraz9701 5 ай бұрын
How can I thank you for being upload such a great video 😍
@krishna04051984
@krishna04051984 Ай бұрын
Plz make more video like this . Thanks from my bottom of heart❤
@VishalYadav-gk1kg
@VishalYadav-gk1kg 2 ай бұрын
Very nice explanation sir, Thank you!
@praveshpal9644
@praveshpal9644 5 ай бұрын
perfect explanation sir 💯💯
@greeneryman2699
@greeneryman2699 5 ай бұрын
42:45 Yes cha hi hai aise video
@pranayraj8945
@pranayraj8945 5 ай бұрын
What an OP explanation!! ❤❤❤
@643kanavguleria9
@643kanavguleria9 4 ай бұрын
amazing explanation , learned alot 👍
@dhruvdeora9781
@dhruvdeora9781 5 ай бұрын
very imformatiive video. loved it
@chidambarjoshi3470
@chidambarjoshi3470 5 ай бұрын
Next level explaination
@Khedhar108
@Khedhar108 5 ай бұрын
"08:05"- Thread Pool "12:27"- IO polling "21:30" - undefinite behaviour of setTimeout and setInterval in main thread
@adityacholkar1421
@adityacholkar1421 5 ай бұрын
Very well explained👍
@meghnasrivastava568
@meghnasrivastava568 3 ай бұрын
Hands down the best video!
@veerendrashukla
@veerendrashukla 5 ай бұрын
very nice. nice drawing, nice explanation.
@azimkhan3927
@azimkhan3927 4 ай бұрын
great video, nicely explained
@RahulChaudhary-hi2zo
@RahulChaudhary-hi2zo 3 ай бұрын
Very Nice Video man, keep doing like this .
@najimali32
@najimali32 2 ай бұрын
Great Video. Enjoyed it a lot.
@AvinashSingh-tr5vt
@AvinashSingh-tr5vt 5 ай бұрын
Awesome explanation 💚💚
@shortflicks83
@shortflicks83 23 күн бұрын
Amazing Explanation.
@rudrikasingh2892
@rudrikasingh2892 4 ай бұрын
Best explaination ever!
@akshaykatrodiya6149
@akshaykatrodiya6149 5 ай бұрын
"great explanation of how the Node.js event loop works", WD 👌🏽
@shreyajoshi3886
@shreyajoshi3886 4 күн бұрын
Very informative video💯 Thank u sir😄
@sreeharshaudayshankar7217
@sreeharshaudayshankar7217 24 күн бұрын
Excellent explanation
@sutharjay1
@sutharjay1 5 ай бұрын
Need more video like such
@TanmaySarkar
@TanmaySarkar 5 ай бұрын
Very informative 💪🏻
@parv2742
@parv2742 20 күн бұрын
Very good explanation, sir 👏🏻
@vivekchavan9926
@vivekchavan9926 Сағат бұрын
one of the best best explainations
@coderkashif
@coderkashif 4 ай бұрын
This is amazing....Thank you....
@devangsharma8937
@devangsharma8937 4 ай бұрын
Thanks a lot for the video
@waleed28ful1
@waleed28ful1 4 ай бұрын
Amazing Thankyou soo much for amazing content
@JitendraLodhi-ei6vs
@JitendraLodhi-ei6vs 5 ай бұрын
Very knowledgeable video🎉🎉🎉
@rishabhkedia9304
@rishabhkedia9304 5 ай бұрын
put more videos like this. it'll help you build core audience.
@houseofcoding101
@houseofcoding101 5 ай бұрын
Thank you sir!
@mohd0606
@mohd0606 22 күн бұрын
Kudos to you piyush
@sumirandahal76
@sumirandahal76 5 ай бұрын
THank you so much I enjooyed and understand
@abirsinha923
@abirsinha923 Ай бұрын
excellent explanation 👌 👏 👍
@Zaheer__zk40
@Zaheer__zk40 3 ай бұрын
Nice explanation ❤❤
@GunjanShrimali
@GunjanShrimali 5 ай бұрын
Great video best ever explain
@aditimahabole1761
@aditimahabole1761 5 ай бұрын
Aap best ho !!!
@ayandippaul3108
@ayandippaul3108 2 ай бұрын
Bro really greattt❤❤
@mukulyadav3770
@mukulyadav3770 5 ай бұрын
Absolute stunner
@harshmehrotra1214
@harshmehrotra1214 5 ай бұрын
reallly like to watch the explation of js working please make a video on that
@shahzadmujtaba1725
@shahzadmujtaba1725 5 ай бұрын
I love it make more videos on docker
@r_lyricals_6201
@r_lyricals_6201 4 ай бұрын
Genius brother 🎉
@rishiraj2548
@rishiraj2548 5 ай бұрын
Great thanks
@gujaratinimoj3845
@gujaratinimoj3845 5 ай бұрын
Good sir..👍👍
@RohitRaj-od3be
@RohitRaj-od3be 5 ай бұрын
very interesting video.
@sameergaikwad222
@sameergaikwad222 5 ай бұрын
Nice And Detailed Explanation. Quite Impressed.😍 Can you please also share those Notes.👍👍👍 Thanks👍👍👍
@abhisheknavgan6829
@abhisheknavgan6829 5 ай бұрын
nice video
@punitpubggaming7531
@punitpubggaming7531 5 ай бұрын
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 😂😂
@sidhant251
@sidhant251 3 ай бұрын
Great video 😇
@_Blackwolf_01
@_Blackwolf_01 5 ай бұрын
Thanks bhai ❤
@Ayush37262
@Ayush37262 5 ай бұрын
Sir your NodeJS playlist >>> All paid + free courses 🗿
@shadabb2001
@shadabb2001 5 ай бұрын
which theme is he using do you know ?
@smartguy3k
@smartguy3k 3 ай бұрын
great! Thanks
@user-dd6zl4kg9d
@user-dd6zl4kg9d 5 ай бұрын
bro some are some thing diff bro great work
@vrutilkjadav1030
@vrutilkjadav1030 3 ай бұрын
informative video!
@atanumojumdar
@atanumojumdar 4 ай бұрын
Thankyou 💜
@Thechetankumar
@Thechetankumar 5 ай бұрын
Thanks man
@bincebee
@bincebee 4 ай бұрын
Hello Piyushbro, Please make video on transaction in mongoose… Your teaching method is very helpful..
@vinitjain7
@vinitjain7 5 ай бұрын
Thank u sir
@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.
@rohansinghrathore5012
@rohansinghrathore5012 5 ай бұрын
Hello Piyush Sir , I am being following your nodejs series , and currently i am on authentication. Sir my question is .. what is the best way to revise the concepts in nodejs or any other backend technologies .. so that my i can master the concepts properly ... BTW your nodejs series is awesome💫
@codewithsyedmqasim
@codewithsyedmqasim 5 ай бұрын
helpful video
How to Crack Any System Design Interview | Scalable System Design
27:20
What is Nginx?
11:45
Piyush Garg
Рет қаралды 51 М.
DEFINITELY NOT HAPPENING ON MY WATCH! 😒
00:12
Laro Benz
Рет қаралды 50 МЛН
Heartwarming moment as priest rescues ceremony with kindness #shorts
00:33
Fabiosa Best Lifehacks
Рет қаралды 11 МЛН
WHAT’S THAT?
00:27
Natan por Aí
Рет қаралды 6 МЛН
Does size matter? BEACH EDITION
00:32
Mini Katana
Рет қаралды 18 МЛН
What are Message Queues? | BullMQ Queues NodeJS
44:12
Piyush Garg
Рет қаралды 27 М.
Why I Chose Rust Over Zig
33:18
ThePrimeTime
Рет қаралды 22 М.
How to use Multithreading with "worker threads" in Node.js?
19:34
Software Developer Diaries
Рет қаралды 52 М.
Do NOT Learn Kubernetes Without Knowing These Concepts...
13:01
Travis Media
Рет қаралды 249 М.
How SSL Certificate Works?  - HTTPS Explained
20:42
Piyush Garg
Рет қаралды 190 М.
Apache Kafka Crash Course | What is Kafka?
1:17:04
Piyush Garg
Рет қаралды 424 М.
DEFINITELY NOT HAPPENING ON MY WATCH! 😒
00:12
Laro Benz
Рет қаралды 50 МЛН