Tap to unmute

How NodeJS Works? - You don't Know NodeJS

  Рет қаралды 59,911

Piyush Garg

Piyush Garg

Күн бұрын

Пікірлер
@prvnpn216
@prvnpn216 9 ай бұрын
this is like the most in-depth video on Eventloop and working of Node.js I found, Need a course like this.
@ajmaln73
@ajmaln73 9 ай бұрын
Thank you, I was looking for Nodejs Internal Working explanation for the last one year, This one is more Helpful kudos
@engineerslab1664
@engineerslab1664 10 ай бұрын
Ye koi nhi samjhaya h avi tk , i have searched a lot , thanks buddy for this wonderful explanation 😅
@shababsha5633
@shababsha5633 10 ай бұрын
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 10 ай бұрын
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 10 ай бұрын
@@unemployed-coder agree, virtually it do make sense but physical core is what matter the most.
@xiaoshen194
@xiaoshen194 10 ай бұрын
Shabash but video mein to 4 threads hi dikhaya h default
@xiaoshen194
@xiaoshen194 10 ай бұрын
​@@manishbhardwaj4587video mein 4 kyu dikhaya h default agr default 128 h?
@prakharsinha6915
@prakharsinha6915 10 ай бұрын
​@@xiaoshen194 Default 4 hi hai bhai... Maximum pehle 128 tha and then increased to 1024
@adityamahla
@adityamahla 11 күн бұрын
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.
@raunakhajela
@raunakhajela 10 ай бұрын
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_NK
@Akhil_NK 9 ай бұрын
Best Explination and the simplest one so Far Thanks Bhaiya
@sundaramjha1776
@sundaramjha1776 10 ай бұрын
Very well explained really. Have seen lot of other event loop video but this is special. Please continue creating this types of videos.
@tanishqmanuja
@tanishqmanuja 10 ай бұрын
Best node architecture video i have seen so far, keep up the good work 💯
@manojbhamre6062
@manojbhamre6062 4 ай бұрын
Can't believe u have only 5 year of experience....ur knowledge is way above who has experienced of 10-15 years
@pratikshyapoudel7337
@pratikshyapoudel7337 28 күн бұрын
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
@Khedhar108
@Khedhar108 10 ай бұрын
"08:05"- Thread Pool "12:27"- IO polling "21:30" - undefinite behaviour of setTimeout and setInterval in main thread
@prigo333
@prigo333 4 ай бұрын
This is the best explanation of nodesjs working so far
@lucky-laxmi4799
@lucky-laxmi4799 9 ай бұрын
Awesome explanation. Keep making more of these in depth videos. 😍
@kiranmohare6276
@kiranmohare6276 10 ай бұрын
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-cp7uj
@AsifAli-cp7uj 9 ай бұрын
Content is pure gold straight from heaven mann I am craving for more wisdom from this guy thanks piyush bhaiya
@rakeshbhetariya
@rakeshbhetariya 4 ай бұрын
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
@raahultrivedimusic
@raahultrivedimusic 4 ай бұрын
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! 🔥🔥
@KeshariPiyush24
@KeshariPiyush24 15 күн бұрын
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
@neerajsoni6350 Ай бұрын
This video is GEM i must say nothing more left to read after this.
@krishna04051984
@krishna04051984 7 ай бұрын
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-oh5ln
@PawanGupta-oh5ln 6 ай бұрын
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.
@thisravigangwar
@thisravigangwar 10 ай бұрын
Yes, aur videos chahiye, and what session bhaiya, bhaiya poora din barbaad krdiya faltu me ab neend achhi aayegi yh video dekhne ke baad.❤❤
@mayanksh219
@mayanksh219 9 ай бұрын
Thank you Piyush for this amazing video. I learned a lot from this video like EventLoop and under the hood working of Node.js.
@darshanpandya1087
@darshanpandya1087 2 ай бұрын
thank you so much piyush sir for keep delivering this high knowledge videos with brief discussions ... i am loving it...
@xtan-io
@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
@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
@xtan-io Ай бұрын
@MythicEcho it uses libuv ( a c library) as an API, it must be thread pool ig.
@vikaas.sharma
@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.
@algobuddy
@algobuddy 10 ай бұрын
Nice one bro, good to see you grow❤
@greeneryman
@greeneryman 10 ай бұрын
42:45 Yes cha hi hai aise video
@rohanraj2604
@rohanraj2604 Ай бұрын
Damn Man You're teaching in a very beautiful way
@shivansh901
@shivansh901 6 ай бұрын
Excellent explanation, extensive details & good pace. Worth a subscribe bro.
@NilanjanH
@NilanjanH 10 ай бұрын
I really liked the way you explained, thanks for the easy explanation. I have never been understood better before watching this video. 👏
@ibrahimshaikh3642
@ibrahimshaikh3642 2 ай бұрын
Lakho me Ek video h, mast h
@amanninave9520
@amanninave9520 3 ай бұрын
Great Video Thank you so much for creating such valuable content
@jatinchavan5360
@jatinchavan5360 2 ай бұрын
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.
@rohitpatel2671
@rohitpatel2671 10 ай бұрын
i need this types of videos. please sir... to be continue............
@KamleshSahu-qy2fw
@KamleshSahu-qy2fw 4 ай бұрын
Thankyou Piyush brother for the deep explanation 👍
@akshaykatrodiya6149
@akshaykatrodiya6149 10 ай бұрын
"great explanation of how the Node.js event loop works", WD 👌🏽
@hasnainmalik9644
@hasnainmalik9644 10 ай бұрын
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.❤❤
@ajaypatidarmusic
@ajaypatidarmusic 10 ай бұрын
@piyushgargdev what happens to the blocking or synchronous operation.
@krishna04051984
@krishna04051984 7 ай бұрын
Plz make more video like this . Thanks from my bottom of heart❤
@manojbhamre6062
@manojbhamre6062 4 ай бұрын
U r gem man...just found ur channel ❤
@pranayraj8945
@pranayraj8945 10 ай бұрын
What an OP explanation!! ❤❤❤
@AryanGupta-x2m
@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-gk1kg
@VishalYadav-gk1kg 7 ай бұрын
Very nice explanation sir, Thank you!
@anujeetswain7368
@anujeetswain7368 10 ай бұрын
Awesome video man!. I was very confused about differentiating the timers and io execution timings.
@Baljeetkaur-tu8qx
@Baljeetkaur-tu8qx 8 ай бұрын
Such a detail video . Quite interesting and helps understanding deep concept of Node.js
@silentsagateller
@silentsagateller 10 ай бұрын
This video was very helpful, thank you for the wonderful explanation of node.js architecture 😊
@niraz9701
@niraz9701 10 ай бұрын
How can I thank you for being upload such a great video 😍
@ratneshsingh8122
@ratneshsingh8122 6 күн бұрын
Very informative video, loved it and thanks🙏
@SandeepSingh-px3sw
@SandeepSingh-px3sw 10 ай бұрын
Ultimate😮 video, we want more videos like this.....
@me-16ayushverma40
@me-16ayushverma40 10 ай бұрын
outstanding way of explanation bhaiya
@vivekchavan9926
@vivekchavan9926 5 ай бұрын
one of the best best explainations
@Kiran-khadka
@Kiran-khadka 10 ай бұрын
Informative as usual❤
@anikettripathi1160
@anikettripathi1160 9 ай бұрын
Gem 💎content, bhaiya. Keep it up 👍Thank you!
@OmkarChebale
@OmkarChebale 10 ай бұрын
i see the full video as well as coded with you . and thnx for this beautiful video . good work
@rahul-m2e8r
@rahul-m2e8r 4 ай бұрын
yes please create this type of videos.
@namanrajput7686
@namanrajput7686 5 күн бұрын
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
@roshanaswal7221
@roshanaswal7221 10 ай бұрын
Amazing sir, i would like to see more of these kind videos from you. Thank you for your content
@meghnasrivastava568
@meghnasrivastava568 8 ай бұрын
Hands down the best video!
@rudrikasingh2892
@rudrikasingh2892 9 ай бұрын
Best explaination ever!
@rishabhkedia9304
@rishabhkedia9304 10 ай бұрын
put more videos like this. it'll help you build core audience.
@shreyajoshi3886
@shreyajoshi3886 5 ай бұрын
Very informative video💯 Thank u sir😄
@parv2742
@parv2742 5 ай бұрын
Very good explanation, sir 👏🏻
@shaileshkamble8730
@shaileshkamble8730 10 ай бұрын
Very indepth concept clearing video..... Thanks Sir...💌
@suryagupta1999
@suryagupta1999 10 ай бұрын
Nice explanation 😃....Easy explanation for beginners.
@hatimtekri4949
@hatimtekri4949 10 ай бұрын
Excellent explanation man Hats off Please create such videos, in nodejs only More insight about node js
@mohdaqib3638
@mohdaqib3638 10 ай бұрын
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
@bhavnishpatel9903 Ай бұрын
Great Explanation 💯
@PramodSharma-dq3pi
@PramodSharma-dq3pi 7 ай бұрын
@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?
@punitpubggaming7531
@punitpubggaming7531 10 ай бұрын
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 😂😂
@sumitkachare6628
@sumitkachare6628 5 ай бұрын
nice explanation, thanks for such detailed video
@Ayush37262
@Ayush37262 10 ай бұрын
Sir your NodeJS playlist >>> All paid + free courses 🗿
@shadabb2001
@shadabb2001 10 ай бұрын
which theme is he using do you know ?
@unemployed-coder
@unemployed-coder 10 ай бұрын
Nicely explained ❤❤
@someshkumarmishra8279
@someshkumarmishra8279 5 ай бұрын
bhai maza agaya thank you sir ji
@RahulChaudhary-hi2zo
@RahulChaudhary-hi2zo 8 ай бұрын
Very Nice Video man, keep doing like this .
@abirsinha923
@abirsinha923 7 ай бұрын
excellent explanation 👌 👏 👍
@mohitpatel713
@mohitpatel713 4 ай бұрын
Great explaination for event loops. sir can you please make a video on memory leaks and how to prevent them?
@643kanavguleria9
@643kanavguleria9 10 ай бұрын
amazing explanation , learned alot 👍
@shortflicks83
@shortflicks83 6 ай бұрын
Amazing Explanation.
@supravatsarkar5866
@supravatsarkar5866 7 ай бұрын
Never seen like that explanation .... Thank you so much Piyush Vai 💌. Create courses (Paid) regarding System Design /DSA / Devops/Microservice . All the best.
@arbabhere-h6s
@arbabhere-h6s 4 ай бұрын
Great Explanation sir
@sreeharshaudayshankar7217
@sreeharshaudayshankar7217 6 ай бұрын
Excellent explanation
@r_lyricals_6201
@r_lyricals_6201 10 ай бұрын
Genius brother 🎉
@praveshpal9644
@praveshpal9644 10 ай бұрын
perfect explanation sir 💯💯
@chidambarjoshi3470
@chidambarjoshi3470 10 ай бұрын
Next level explaination
@mridulchourasia-r1h
@mridulchourasia-r1h 10 ай бұрын
❤ Thankyou for explaning
@rohansinghrathore5012
@rohansinghrathore5012 10 ай бұрын
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-tr5vt
@AvinashSingh-tr5vt 10 ай бұрын
Awesome explanation 💚💚
@shaikhali5364
@shaikhali5364 10 ай бұрын
Nice explanation! ❤
@sameergaikwad222
@sameergaikwad222 10 ай бұрын
Nice And Detailed Explanation. Quite Impressed.😍 Can you please also share those Notes.👍👍👍 Thanks👍👍👍
@adityacholkar1421
@adityacholkar1421 10 ай бұрын
Very well explained👍
@JitendraLodhi-ei6vs
@JitendraLodhi-ei6vs 10 ай бұрын
Very knowledgeable video🎉🎉🎉
@bincebee
@bincebee 10 ай бұрын
Hello Piyushbro, Please make video on transaction in mongoose… Your teaching method is very helpful..
@mohd0606
@mohd0606 6 ай бұрын
Kudos to you piyush
@shivashukla7894
@shivashukla7894 10 ай бұрын
@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.
@pavankulal9311
@pavankulal9311 3 ай бұрын
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?
@harshmehrotra1214
@harshmehrotra1214 10 ай бұрын
reallly like to watch the explation of js working please make a video on that
@aditimahabole1761
@aditimahabole1761 10 ай бұрын
Aap best ho !!!
@sutharjay1
@sutharjay1 10 ай бұрын
Need more video like such
@divyarajsinhrana6045
@divyarajsinhrana6045 5 ай бұрын
Good explanation of Node.js architecture. Is there any playlist for Node.js with express.js and mongo DB ?
What is Kubernetes? | Kubernetes Explained
48:22
Piyush Garg
Рет қаралды 73 М.
How NodeJS Works?
14:23
Piyush Garg
Рет қаралды 170 М.
How Strong Is Tape?
00:24
Stokes Twins
Рет қаралды 96 МЛН
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
How to Crack Any System Design Interview | Scalable System Design
27:20
JavaScript Visualized - Event Loop, Web APIs, (Micro)task Queue
12:35
How SSL Certificate Works?  - HTTPS Explained
20:42
Piyush Garg
Рет қаралды 293 М.
Every React Concept Explained in 12 Minutes
11:53
Code Bootcamp
Рет қаралды 859 М.
Javascript Interview Questions
41:28
Piyush Garg
Рет қаралды 127 М.
How node JS works | Engineering side
29:15
Hitesh Choudhary
Рет қаралды 83 М.
Bonus Video with Example on relationships
40:10
CodeCrafting with Satyam
Рет қаралды 69
Apache Kafka Crash Course | What is Kafka?
1:17:04
Piyush Garg
Рет қаралды 554 М.