How NodeJS Works? - You don't Know NodeJS
Вставка
- Опубліковано 9 чер 2024
- 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
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
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?
@@unemployed-coder agree, virtually it do make sense but physical core is what matter the most.
Shabash but video mein to 4 threads hi dikhaya h default
@@manishbhardwaj4587video mein 4 kyu dikhaya h default agr default 128 h?
@@xiaoshen194 Default 4 hi hai bhai... Maximum pehle 128 tha and then increased to 1024
Ye koi nhi samjhaya h avi tk , i have searched a lot , thanks buddy for this wonderful explanation 😅
One of the finest and in-depth explaination. Thanks Piyush❣
Best node architecture video i have seen so far, keep up the good work 💯
this is like the most in-depth video on Eventloop and working of Node.js I found, Need a course like this.
Very well explained really. Have seen lot of other event loop video but this is special. Please continue creating this types of videos.
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.
Best Explination and the simplest one so Far Thanks Bhaiya
Thank you, I was looking for Nodejs Internal Working explanation for the last one year, This one is more Helpful kudos
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
Thank you Piyush for this amazing video. I learned a lot from this video like EventLoop and under the hood working of Node.js.
I really liked the way you explained, thanks for the easy explanation. I have never been understood better before watching this video. 👏
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.❤❤
Awesome video man!. I was very confused about differentiating the timers and io execution timings.
Thanks piyush🎉. Best video for this topic, no one explained like this in UA-cam 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
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!!
Content is pure gold straight from heaven mann I am craving for more wisdom from this guy thanks piyush bhaiya
Such a detail video . Quite interesting and helps understanding deep concept of Node.js
Very nice explanation sir, Thank you!
i see the full video as well as coded with you . and thnx for this beautiful video . good work
This video was very helpful, thank you for the wonderful explanation of node.js architecture 😊
Awesome explanation. Keep making more of these in depth videos. 😍
Informative as usual❤
outstanding way of explanation bhaiya
Very indepth concept clearing video..... Thanks Sir...💌
Hands down the best video!
Amazing sir, i would like to see more of these kind videos from you. Thank you for your content
Yes, aur videos chahiye, and what session bhaiya, bhaiya poora din barbaad krdiya faltu me ab neend achhi aayegi yh video dekhne ke baad.❤❤
Plz make more video like this .
Thanks from my bottom of heart❤
Best explaination ever!
Nice explanation 😃....Easy explanation for beginners.
Nice one bro, good to see you grow❤
Excellent explanation man
Hats off
Please create such videos, in nodejs only
More insight about node js
Gem 💎content, bhaiya. Keep it up 👍Thank you!
i need this types of videos. please sir... to be continue............
Very Nice Video man, keep doing like this .
How can I thank you for being upload such a great video 😍
Ultimate😮 video, we want more videos like this.....
Great Video. Enjoyed it a lot.
great video, nicely explained
very well explained thank you
amazing explanation , learned alot 👍
What an OP explanation!! ❤❤❤
perfect explanation sir 💯💯
❤ Thankyou for explaning
Nice explanation! ❤
Nicely explained ❤❤
Amazing
Thankyou soo much for amazing content
excellent explanation 👌 👏 👍
Very well explained👍
"great explanation of how the Node.js event loop works", WD 👌🏽
Need more video like such
very imformatiive video. loved it
This is amazing....Thank you....
Awesome explanation 💚💚
Nice explanation ❤❤
very nice. nice drawing, nice explanation.
Next level explaination
Sir your NodeJS playlist >>> All paid + free courses 🗿
which theme is he using do you know ?
put more videos like this. it'll help you build core audience.
Very knowledgeable video🎉🎉🎉
Thanks a lot for the video
Great video best ever explain
THank you so much I enjooyed and understand
I love it make more videos on docker
Aap best ho !!!
42:45
Yes cha hi hai aise video
Bro really greattt❤❤
Genius brother 🎉
Absolute stunner
Very informative 💪🏻
reallly like to watch the explation of js working please make a video on that
Thank you sir!
"08:05"- Thread Pool
"12:27"- IO polling
"21:30" - undefinite behaviour of setTimeout and setInterval in main thread
bro some are some thing diff bro great work
Great video 😇
Good sir..👍👍
very interesting video.
Nice And Detailed Explanation. Quite Impressed.😍 Can you please also share those Notes.👍👍👍 Thanks👍👍👍
Hello Piyushbro,
Please make video on transaction in mongoose…
Your teaching method is very helpful..
informative video!
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 😂😂
Never seen like that explanation .... Thank you so much Piyush Vai 💌. Create courses (Paid) regarding System Design /DSA / Devops/Microservice . All the best.
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💫
nice video
Thanks bhai ❤
Please make on video on how await works in this internally
great! Thanks
Thankyou 💜
helpful video
loved it piyush, just curious to know that how js on browser and js on nodejs differs to work , like how the asynchronous operations execution differs on both ,is it same ? is it different ?
Thank u sir
sir please one video on all the vs code extensions you use please
Great thanks
@piyushgargdev : How will the thread pool handle dynamic cryptographic requests? For example, if 1000 users requests password encryption at same time, how can the Node server manage these requests, given that we can't predict their origin?
hey piyush one doubt as you said ki, for cpu intensive tasks we should go for multithreaded languages, but that too can be done using NODEjs right?
Yes we want more videos like this, very helpful and interesting 🫡
Thanks man
Please make a video series on Typescript
@0.3s why I am getting the output same in both the cases? console of the setTimeout functin is getting printed first and later console of setImmidiate is printed, and this is same for both the cases.