How NodeJS Works? - You don't Know NodeJS

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ต.ค. 2024

ความคิดเห็น • 221

  • @mayankjain7910
    @mayankjain7910 5 หลายเดือนก่อน +2

    you are wrong u said that first top level code run then require module run that is wrong u can take example that create fs.readFileSync and console.log its output and then run console.log("0") then output will be return result of fs.readFileSync then 0 will be printed

    • @WizBoyYt
      @WizBoyYt หลายเดือนก่อน

      bro, sync is blocking request. So, It will block the execution

  • @amanninave9520
    @amanninave9520 10 วันที่ผ่านมา +1

    Great Video Thank you so much for creating such valuable content

  • @Ayush37262
    @Ayush37262 8 หลายเดือนก่อน +13

    Sir your NodeJS playlist >>> All paid + free courses 🗿

    • @shadabb2001
      @shadabb2001 7 หลายเดือนก่อน

      which theme is he using do you know ?

  • @PramodSharma-dq3pi
    @PramodSharma-dq3pi 5 หลายเดือนก่อน +1

    @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?

  • @shababsha5633
    @shababsha5633 8 หลายเดือนก่อน +45

    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 8 หลายเดือนก่อน +2

      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 8 หลายเดือนก่อน +4

      @@unemployed-coder agree, virtually it do make sense but physical core is what matter the most.

    • @xiaoshen194
      @xiaoshen194 7 หลายเดือนก่อน +3

      Shabash but video mein to 4 threads hi dikhaya h default

    • @xiaoshen194
      @xiaoshen194 7 หลายเดือนก่อน +2

      ​@@manishbhardwaj4587video mein 4 kyu dikhaya h default agr default 128 h?

    • @prakharsinha6915
      @prakharsinha6915 7 หลายเดือนก่อน +1

      ​@@xiaoshen194 Default 4 hi hai bhai... Maximum pehle 128 tha and then increased to 1024

  • @manojbhamre6062
    @manojbhamre6062 2 หลายเดือนก่อน +1

    U r gem man...just found ur channel ❤

  • @jatinchavan5360
    @jatinchavan5360 3 วันที่ผ่านมา

    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.

  • @AshishGupta-bs6sx
    @AshishGupta-bs6sx 17 วันที่ผ่านมา

    Remember , Nodejs and JavaScript both works differently.

  • @silentHunter123
    @silentHunter123 8 หลายเดือนก่อน +1

    I am pretty sure if you switch to English, your channel will be viewed by international audience

  • @AseemAsghar
    @AseemAsghar 7 หลายเดือนก่อน +1

    Why am I feeling sleepy while watching your tutorial?

  • @engineerslab1664
    @engineerslab1664 7 หลายเดือนก่อน +5

    Ye koi nhi samjhaya h avi tk , i have searched a lot , thanks buddy for this wonderful explanation 😅

  • @Khedhar108
    @Khedhar108 7 หลายเดือนก่อน +3

    "08:05"- Thread Pool
    "12:27"- IO polling
    "21:30" - undefinite behaviour of setTimeout and setInterval in main thread

  • @supravatsarkar5866
    @supravatsarkar5866 4 หลายเดือนก่อน

    Never seen like that explanation .... Thank you so much Piyush Vai 💌. Create courses (Paid) regarding System Design /DSA / Devops/Microservice . All the best.

  • @divyarajsinhrana6045
    @divyarajsinhrana6045 2 หลายเดือนก่อน

    Good explanation of Node.js architecture. Is there any playlist for Node.js with express.js and mongo DB ?

  • @jitendersharma2962
    @jitendersharma2962 7 หลายเดือนก่อน

    Can someone please explain why below order is different from architecture
    console.log("start");
    setTimeout(() => {
    console.log('setTimeout');
    });
    Promise.resolve().then(() => {
    console.log('resolved');
    })
    console.log('end');
    Result order is
    start
    end
    resolved
    setTimeout
    however as per event loop architecture it should be first

  • @_NikhilSharma
    @_NikhilSharma 4 หลายเดือนก่อน

    Then how NodeJS is single threaded if it will generate multiple threads for blocking/CPU Intensive tasks ?

  • @bm9code
    @bm9code 7 หลายเดือนก่อน

    @piyushgargdev
    Piyush can provide link for notes

  • @KamleshSahu-qy2fw
    @KamleshSahu-qy2fw หลายเดือนก่อน

    Thankyou Piyush brother for the deep explanation 👍

  • @ajaypatidarmusic
    @ajaypatidarmusic 7 หลายเดือนก่อน

    @piyushgargdev what happens to the blocking or synchronous operation.

  • @noobchess2516
    @noobchess2516 หลายเดือนก่อน

    is the concept of callstack ,microtask queue ,callback queue is of brower environment and nodejs environment is different?
    i have a doubt as per the video , top level code will be executed first then import modules. but what if top level code uses the modules then how??

  • @harshitagrawal997
    @harshitagrawal997 7 หลายเดือนก่อน

    Number of threads should depend upon system configuration, if it is so .. then how we can manage number of threads??? Number of threads should always be four ...

  • @abhisheknavgan6829
    @abhisheknavgan6829 8 หลายเดือนก่อน +2

    nice video

  • @pavankulal9311
    @pavankulal9311 12 วันที่ผ่านมา

    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?

  • @ratnakiduniya8138
    @ratnakiduniya8138 7 หลายเดือนก่อน

    Bhai aapke CHARAN kahan hain ? So much love from Bengaluru ♥

  • @VishalYadav-gk1kg
    @VishalYadav-gk1kg 4 หลายเดือนก่อน +1

    Very nice explanation sir, Thank you!

  • @FaizShaikh-dt8wp
    @FaizShaikh-dt8wp 7 หลายเดือนก่อน

    same content as Jonas Schedtman instructor on udemy. But Great work for delivring to indian people.

  • @aditimahabole1761
    @aditimahabole1761 8 หลายเดือนก่อน

    bhaiyaaaaaaa please COmputer networks ka basics bhi explain kardooo uske sare levels...kese data jataa hai un levels se guzarke like application , transport , network , data link . . PLEASEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE

  • @SumitRawat-s2x
    @SumitRawat-s2x 6 หลายเดือนก่อน

    Can we really not do CPU intensive tasks in Node??
    because there are cluster modules, worker threads !!!!

  • @BrainwaveDigitalLab
    @BrainwaveDigitalLab 8 หลายเดือนก่อน +1

    You look better in bread... 🤧❤️‍🩹✨

    • @Solo_playz
      @Solo_playz 6 หลายเดือนก่อน +1

      also some butter 🧈 😂

  • @sundaramjha1776
    @sundaramjha1776 7 หลายเดือนก่อน +4

    Very well explained really. Have seen lot of other event loop video but this is special. Please continue creating this types of videos.

  • @swetapandey14
    @swetapandey14 7 หลายเดือนก่อน

    Please Sir make a basic video on Apache Seatunnel please..........................................

  • @ritikgupta1133
    @ritikgupta1133 3 หลายเดือนก่อน

    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 ?

  • @mohitpatel713
    @mohitpatel713 หลายเดือนก่อน

    Great explaination for event loops. sir can you please make a video on memory leaks and how to prevent them?

  • @sumitkachare6628
    @sumitkachare6628 2 หลายเดือนก่อน

    nice explanation, thanks for such detailed video

  • @ajmaln73
    @ajmaln73 6 หลายเดือนก่อน +2

    Thank you, I was looking for Nodejs Internal Working explanation for the last one year, This one is more Helpful kudos

  • @bulbergaming9142
    @bulbergaming9142 4 หลายเดือนก่อน

    i think threadpool doesn't handle cpu intensive tasks,it only handles some cpu intensive tasks.for example:while loop with very long iteration is considered as cpu intensive task but it is not handled by the thread pool.

  • @rishiraj2548
    @rishiraj2548 หลายเดือนก่อน

    High level technical video === Low level details of a tool
    HiLo
    Hila dala na?!!

  • @chameliacharjee2809
    @chameliacharjee2809 6 หลายเดือนก่อน

    Please include the other webapi and handling http request also. You have not mentioned the http calling here how it handles it

  • @shreyajoshi3886
    @shreyajoshi3886 2 หลายเดือนก่อน

    Very informative video💯 Thank u sir😄

  • @raunakhajela
    @raunakhajela 7 หลายเดือนก่อน +4

    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.

  • @rohitpatel2671
    @rohitpatel2671 8 หลายเดือนก่อน +3

    i need this types of videos. please sir... to be continue............

  • @rohansinghrathore5012
    @rohansinghrathore5012 8 หลายเดือนก่อน +1

    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💫

  • @lucky-laxmi4799
    @lucky-laxmi4799 6 หลายเดือนก่อน +1

    Awesome explanation. Keep making more of these in depth videos. 😍

  • @avi_5827
    @avi_5827 8 หลายเดือนก่อน +1

    Content Quality >>>

  • @shameelk-fo1jg
    @shameelk-fo1jg 3 หลายเดือนก่อน

    Isnt setTimeout a webapi?can we use it in express js if its available in node js

  • @jafariqbalchoudhary3926
    @jafariqbalchoudhary3926 7 หลายเดือนก่อน

    Hi Piyush, can you please make a video on Node Js C++ addon.

  • @mohitjindal2036
    @mohitjindal2036 8 หลายเดือนก่อน +1

    Please make on video on how await works in this internally

  • @engineerslab1664
    @engineerslab1664 7 หลายเดือนก่อน

    Need more explanation of setimmediate working at top level and inside eventloop

  • @parv2742
    @parv2742 3 หลายเดือนก่อน

    Very good explanation, sir 👏🏻

  • @Akhil_NK
    @Akhil_NK 7 หลายเดือนก่อน +2

    Best Explination and the simplest one so Far Thanks Bhaiya

  • @harshpandey7970
    @harshpandey7970 หลายเดือนก่อน

    ekdum sexy explaination sir

  • @prakharsinha6915
    @prakharsinha6915 7 หลายเดือนก่อน

    Hey piyush please add link to that whiteboard

  • @RahulChaudhary-hi2zo
    @RahulChaudhary-hi2zo 5 หลายเดือนก่อน

    Very Nice Video man, keep doing like this .

  • @tanishqmanuja
    @tanishqmanuja 7 หลายเดือนก่อน +3

    Best node architecture video i have seen so far, keep up the good work 💯

  • @nobodynobody3709
    @nobodynobody3709 6 หลายเดือนก่อน

    Need same quality content for react js

  • @ibrahimshaikh3642
    @ibrahimshaikh3642 12 ชั่วโมงที่ผ่านมา

    Lakho me Ek video h, mast h

  • @atishdubey7
    @atishdubey7 หลายเดือนก่อน

    If anyone has made notes of this lecture please send it to me. 🙏

  • @shubhamgupta-bl1tr
    @shubhamgupta-bl1tr 8 หลายเดือนก่อน +1

    Hello piyush...jab hum database call krte h to uska callback event loop me kab excute hota h ?

    • @ajiteshmishra
      @ajiteshmishra 8 หลายเดือนก่อน

      db call network call hota hi to shayad wo libuv dwara handle hota hi,

  • @RahulVerma-hn3se
    @RahulVerma-hn3se 7 หลายเดือนก่อน

    Bro can you make a tutorial on API testing ?

  • @ajaykumar-nx7kb
    @ajaykumar-nx7kb 6 หลายเดือนก่อน

    Please make a video series on Typescript

  • @JAINVISHAL-n9e
    @JAINVISHAL-n9e 8 หลายเดือนก่อน

    bro some are some thing diff bro great work

  • @thegamingden4087
    @thegamingden4087 8 หลายเดือนก่อน +1

    does anyone knows the theme name

  • @prigo333
    @prigo333 หลายเดือนก่อน +1

    This is the best explanation of nodesjs working so far

  • @samirandas8388
    @samirandas8388 7 หลายเดือนก่อน

    maza aya

  • @kiranmohare6276
    @kiranmohare6276 7 หลายเดือนก่อน +1

    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

  • @vivekchavan9926
    @vivekchavan9926 2 หลายเดือนก่อน

    one of the best best explainations

  • @algobuddy
    @algobuddy 8 หลายเดือนก่อน +3

    Nice one bro, good to see you grow❤

  • @ayandippaul3108
    @ayandippaul3108 5 หลายเดือนก่อน

    Bro really greattt❤❤

  • @AamirMir-ul7id
    @AamirMir-ul7id 8 หลายเดือนก่อน

    Which theme,file icon packs

  • @azimkhan3927
    @azimkhan3927 6 หลายเดือนก่อน

    great video, nicely explained

  • @coderkashif
    @coderkashif 7 หลายเดือนก่อน

    This is amazing....Thank you....

  • @shortflicks83
    @shortflicks83 3 หลายเดือนก่อน

    Amazing Explanation.

  • @arbabhere-h6s
    @arbabhere-h6s หลายเดือนก่อน

    Great Explanation sir

  • @someshkumarmishra8279
    @someshkumarmishra8279 2 หลายเดือนก่อน

    bhai maza agaya thank you sir ji

  • @vishakad29
    @vishakad29 8 หลายเดือนก่อน

    hy sir node sikne ke liye kya kya ana chaihiye

  • @abirsinha923
    @abirsinha923 4 หลายเดือนก่อน

    excellent explanation 👌 👏 👍

  • @najimali32
    @najimali32 5 หลายเดือนก่อน

    Great Video. Enjoyed it a lot.

  • @HSBTechYT
    @HSBTechYT 7 หลายเดือนก่อน

    Never seen someone use setImmediate

  • @rahul-m2e8r
    @rahul-m2e8r หลายเดือนก่อน +1

    yes please create this type of videos.

  • @mr.penguin_coder
    @mr.penguin_coder 8 หลายเดือนก่อน

    more andvance content we want...

  • @devangsharma8937
    @devangsharma8937 6 หลายเดือนก่อน

    Thanks a lot for the video

  • @GunjanShrimali
    @GunjanShrimali 8 หลายเดือนก่อน

    Great video best ever explain

  • @suryagupta1999
    @suryagupta1999 8 หลายเดือนก่อน +1

    Nice explanation 😃....Easy explanation for beginners.

  • @movie_writes
    @movie_writes 8 หลายเดือนก่อน +1

    First comment 🎉🎉🎉🎉🎉🎉🎉

  • @z1_shivam
    @z1_shivam 8 หลายเดือนก่อน +1

    What's your vs code theme?

  • @Zaheer__zk40
    @Zaheer__zk40 6 หลายเดือนก่อน

    Nice explanation ❤❤

  • @sreeharshaudayshankar7217
    @sreeharshaudayshankar7217 3 หลายเดือนก่อน

    Excellent explanation

  • @sameergaikwad222
    @sameergaikwad222 7 หลายเดือนก่อน

    Nice And Detailed Explanation. Quite Impressed.😍 Can you please also share those Notes.👍👍👍 Thanks👍👍👍

  • @VaibhavSingh-b8r
    @VaibhavSingh-b8r 7 หลายเดือนก่อน

    React architecture please

  • @greeneryman2699
    @greeneryman2699 8 หลายเดือนก่อน +3

    42:45
    Yes cha hi hai aise video

  • @letsstartwithrahul8841
    @letsstartwithrahul8841 7 หลายเดือนก่อน

    please share the link of notes

  • @shahzadmujtaba1725
    @shahzadmujtaba1725 7 หลายเดือนก่อน

    I love it make more videos on docker

  • @r_lyricals_6201
    @r_lyricals_6201 7 หลายเดือนก่อน

    Genius brother 🎉

  • @vrutilkjadav1030
    @vrutilkjadav1030 5 หลายเดือนก่อน

    informative video!

  • @RohitRaj-od3be
    @RohitRaj-od3be 7 หลายเดือนก่อน

    very interesting video.

  • @bincebee
    @bincebee 7 หลายเดือนก่อน

    Hello Piyushbro,
    Please make video on transaction in mongoose…
    Your teaching method is very helpful..

  • @as_if
    @as_if 6 หลายเดือนก่อน

    so was it polling, and not pooling

  • @houseofcoding101
    @houseofcoding101 8 หลายเดือนก่อน

    Thank you sir!

  • @kunal_Jangra
    @kunal_Jangra 7 หลายเดือนก่อน

    ❤❤

  • @raahultrivedimusic
    @raahultrivedimusic 2 หลายเดือนก่อน

    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! 🔥🔥