this is like the most in-depth video on Eventloop and working of Node.js I found, Need a course like this.
@ajmaln739 ай бұрын
Thank you, I was looking for Nodejs Internal Working explanation for the last one year, This one is more Helpful kudos
@engineerslab166410 ай бұрын
Ye koi nhi samjhaya h avi tk , i have searched a lot , thanks buddy for this wonderful explanation 😅
@shababsha563310 ай бұрын
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-coder10 ай бұрын
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?
@manishbhardwaj458710 ай бұрын
@@unemployed-coder agree, virtually it do make sense but physical core is what matter the most.
@xiaoshen19410 ай бұрын
Shabash but video mein to 4 threads hi dikhaya h default
@@xiaoshen194 Default 4 hi hai bhai... Maximum pehle 128 tha and then increased to 1024
@adityamahla11 күн бұрын
I dont usually comment on videos. I can guarantee that no other youtuber has explained this topic in such an amazing way. Totally understood it. Thank you for this video. Liked and Subscribed.
@raunakhajela10 ай бұрын
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.
@Akhil_NK9 ай бұрын
Best Explination and the simplest one so Far Thanks Bhaiya
@sundaramjha177610 ай бұрын
Very well explained really. Have seen lot of other event loop video but this is special. Please continue creating this types of videos.
@tanishqmanuja10 ай бұрын
Best node architecture video i have seen so far, keep up the good work 💯
@manojbhamre60624 ай бұрын
Can't believe u have only 5 year of experience....ur knowledge is way above who has experienced of 10-15 years
@pratikshyapoudel733728 күн бұрын
Your explanation hits me like a bolt of genius ⚡-straight to the brain! 💥 You're absolutely AMAZING! 🌟 You're my #1 FAVORITE KZbinr right now! 🎥❤ Keep shining and growing
@Khedhar10810 ай бұрын
"08:05"- Thread Pool "12:27"- IO polling "21:30" - undefinite behaviour of setTimeout and setInterval in main thread
@prigo3334 ай бұрын
This is the best explanation of nodesjs working so far
@lucky-laxmi47999 ай бұрын
Awesome explanation. Keep making more of these in depth videos. 😍
@kiranmohare627610 ай бұрын
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
@AsifAli-cp7uj9 ай бұрын
Content is pure gold straight from heaven mann I am craving for more wisdom from this guy thanks piyush bhaiya
@rakeshbhetariya4 ай бұрын
This video will help me to understand the node js and most important part of the video is at the end time where and in which situation we can use node js and any multi threaded languages so thank you so much for such nice and simply but depth explanation
@raahultrivedimusic4 ай бұрын
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! 🔥🔥
@KeshariPiyush2415 күн бұрын
Two things I would like to point out: - IO or Reading from files are not CPU intensive tasks (modern CPU architecture have hardware like DMA (Direct memory access) that does not require any interventions from the cpu) - Not just promises but also we have to consider Process.nextTick() they have the highest priority even higher than the promises.
@neerajsoni6350Ай бұрын
This video is GEM i must say nothing more left to read after this.
@krishna040519847 ай бұрын
Thanks piyush🎉. Best video for this topic, no one explained like this in KZbin 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-oh5ln6 ай бұрын
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.
@thisravigangwar10 ай бұрын
Yes, aur videos chahiye, and what session bhaiya, bhaiya poora din barbaad krdiya faltu me ab neend achhi aayegi yh video dekhne ke baad.❤❤
@mayanksh2199 ай бұрын
Thank you Piyush for this amazing video. I learned a lot from this video like EventLoop and under the hood working of Node.js.
@darshanpandya10872 ай бұрын
thank you so much piyush sir for keep delivering this high knowledge videos with brief discussions ... i am loving it...
@xtan-ioАй бұрын
36:14 its not top level code, expressions that have the global execution context are pushed into a call stack, and it's not executed directly the execution context of nested functions are then stored on top of that call stack and non primitive data structures are stored to the heap. Now the js call stack executes in FILO method. Thats why closures are possible in js, the nested function has access to the execution context of its parent function ( it gets that within the call stack )
@MythicEchoАй бұрын
I'm also confused about fs task, Once he said they are taken care by thread pool as they are cpu extensive task And he had also shown them in event loop execution. Not sure where fs belongs.
@xtan-ioАй бұрын
@MythicEcho it uses libuv ( a c library) as an API, it must be thread pool ig.
@vikaas.sharmaАй бұрын
@@MythicEcho For async fs tasks, Node.js uses the thread pool but keeps the event loop non-blocking. For sync fs tasks, the event loop gets blocked until the task completes, which is usually not recommended in a non-blocking environment like Node.js.
@algobuddy10 ай бұрын
Nice one bro, good to see you grow❤
@greeneryman10 ай бұрын
42:45 Yes cha hi hai aise video
@rohanraj2604Ай бұрын
Damn Man You're teaching in a very beautiful way
@shivansh9016 ай бұрын
Excellent explanation, extensive details & good pace. Worth a subscribe bro.
@NilanjanH10 ай бұрын
I really liked the way you explained, thanks for the easy explanation. I have never been understood better before watching this video. 👏
@ibrahimshaikh36422 ай бұрын
Lakho me Ek video h, mast h
@amanninave95203 ай бұрын
Great Video Thank you so much for creating such valuable content
@jatinchavan53602 ай бұрын
Summary - The sync tasks are run on the main thread by the v8 engine, the async tasks are taken care of by the libuv library. Libuv has event loop, which monitors 6 different queues and executes their callback by pushing to call stack whenever empty. Libuv uses the kernal/o.s threads (i.e. thread pool) to handle these async tasks and never blocks the main thread. Also, if there CPU intensive tasks on main thread (sync tasks) then they are offloaded to the thread pool straight away. That’s how Node/js being a single-threaded env, runs like multi-threaded.
@rohitpatel267110 ай бұрын
i need this types of videos. please sir... to be continue............
@KamleshSahu-qy2fw4 ай бұрын
Thankyou Piyush brother for the deep explanation 👍
@akshaykatrodiya614910 ай бұрын
"great explanation of how the Node.js event loop works", WD 👌🏽
@hasnainmalik964410 ай бұрын
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.❤❤
@ajaypatidarmusic10 ай бұрын
@piyushgargdev what happens to the blocking or synchronous operation.
@krishna040519847 ай бұрын
Plz make more video like this . Thanks from my bottom of heart❤
@manojbhamre60624 ай бұрын
U r gem man...just found ur channel ❤
@pranayraj894510 ай бұрын
What an OP explanation!! ❤❤❤
@AryanGupta-x2mАй бұрын
I believe before the top level code gets executed, the modules imported using require() are resolve first and then only it proceeds as require is synchronous in nature.
@VishalYadav-gk1kg7 ай бұрын
Very nice explanation sir, Thank you!
@anujeetswain736810 ай бұрын
Awesome video man!. I was very confused about differentiating the timers and io execution timings.
@Baljeetkaur-tu8qx8 ай бұрын
Such a detail video . Quite interesting and helps understanding deep concept of Node.js
@silentsagateller10 ай бұрын
This video was very helpful, thank you for the wonderful explanation of node.js architecture 😊
@niraz970110 ай бұрын
How can I thank you for being upload such a great video 😍
@ratneshsingh81226 күн бұрын
Very informative video, loved it and thanks🙏
@SandeepSingh-px3sw10 ай бұрын
Ultimate😮 video, we want more videos like this.....
@me-16ayushverma4010 ай бұрын
outstanding way of explanation bhaiya
@vivekchavan99265 ай бұрын
one of the best best explainations
@Kiran-khadka10 ай бұрын
Informative as usual❤
@anikettripathi11609 ай бұрын
Gem 💎content, bhaiya. Keep it up 👍Thank you!
@OmkarChebale10 ай бұрын
i see the full video as well as coded with you . and thnx for this beautiful video . good work
@rahul-m2e8r4 ай бұрын
yes please create this type of videos.
@namanrajput76865 күн бұрын
i am confused in one thing that u said that php creates a new thread for every single task, so how 39:45 at one particular time, all threads are busy because it is creating the new thread everytime
@roshanaswal722110 ай бұрын
Amazing sir, i would like to see more of these kind videos from you. Thank you for your content
@meghnasrivastava5688 ай бұрын
Hands down the best video!
@rudrikasingh28929 ай бұрын
Best explaination ever!
@rishabhkedia930410 ай бұрын
put more videos like this. it'll help you build core audience.
@shreyajoshi38865 ай бұрын
Very informative video💯 Thank u sir😄
@parv27425 ай бұрын
Very good explanation, sir 👏🏻
@shaileshkamble873010 ай бұрын
Very indepth concept clearing video..... Thanks Sir...💌
@suryagupta199910 ай бұрын
Nice explanation 😃....Easy explanation for beginners.
@hatimtekri494910 ай бұрын
Excellent explanation man Hats off Please create such videos, in nodejs only More insight about node js
@mohdaqib363810 ай бұрын
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!!
@bhavnishpatel9903Ай бұрын
Great Explanation 💯
@PramodSharma-dq3pi7 ай бұрын
@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?
@punitpubggaming753110 ай бұрын
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 😂😂
@sumitkachare66285 ай бұрын
nice explanation, thanks for such detailed video
@Ayush3726210 ай бұрын
Sir your NodeJS playlist >>> All paid + free courses 🗿
@shadabb200110 ай бұрын
which theme is he using do you know ?
@unemployed-coder10 ай бұрын
Nicely explained ❤❤
@someshkumarmishra82795 ай бұрын
bhai maza agaya thank you sir ji
@RahulChaudhary-hi2zo8 ай бұрын
Very Nice Video man, keep doing like this .
@abirsinha9237 ай бұрын
excellent explanation 👌 👏 👍
@mohitpatel7134 ай бұрын
Great explaination for event loops. sir can you please make a video on memory leaks and how to prevent them?
@643kanavguleria910 ай бұрын
amazing explanation , learned alot 👍
@shortflicks836 ай бұрын
Amazing Explanation.
@supravatsarkar58667 ай бұрын
Never seen like that explanation .... Thank you so much Piyush Vai 💌. Create courses (Paid) regarding System Design /DSA / Devops/Microservice . All the best.
@arbabhere-h6s4 ай бұрын
Great Explanation sir
@sreeharshaudayshankar72176 ай бұрын
Excellent explanation
@r_lyricals_620110 ай бұрын
Genius brother 🎉
@praveshpal964410 ай бұрын
perfect explanation sir 💯💯
@chidambarjoshi347010 ай бұрын
Next level explaination
@mridulchourasia-r1h10 ай бұрын
❤ Thankyou for explaning
@rohansinghrathore501210 ай бұрын
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💫
@AvinashSingh-tr5vt10 ай бұрын
Awesome explanation 💚💚
@shaikhali536410 ай бұрын
Nice explanation! ❤
@sameergaikwad22210 ай бұрын
Nice And Detailed Explanation. Quite Impressed.😍 Can you please also share those Notes.👍👍👍 Thanks👍👍👍
@adityacholkar142110 ай бұрын
Very well explained👍
@JitendraLodhi-ei6vs10 ай бұрын
Very knowledgeable video🎉🎉🎉
@bincebee10 ай бұрын
Hello Piyushbro, Please make video on transaction in mongoose… Your teaching method is very helpful..
@mohd06066 ай бұрын
Kudos to you piyush
@shivashukla789410 ай бұрын
@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.
@pavankulal93113 ай бұрын
where does the async and promise been executed . the callback that is returned in promise is executed in between the phase i got to know but does it run's in the different thread?
@harshmehrotra121410 ай бұрын
reallly like to watch the explation of js working please make a video on that
@aditimahabole176110 ай бұрын
Aap best ho !!!
@sutharjay110 ай бұрын
Need more video like such
@divyarajsinhrana60455 ай бұрын
Good explanation of Node.js architecture. Is there any playlist for Node.js with express.js and mongo DB ?