Non-blocking I/O and how Node uses it, in friendly terms: blocking vs async IO, CPU vs IO

Поділитися
Вставка
  • Опубліковано 26 вер 2024

КОМЕНТАРІ • 169

  • @amstud
    @amstud 3 роки тому +110

    This is easily the best programming video I've ever seen. You took a subtle and tricky concept (one which I suspect most software engineers don't actually understand), and explained it simply enough that a child could understand. Not to mention excellent production values. Super excited to have found this channel, and I can't wait to see what you make next!

  • @fourteensierra
    @fourteensierra 3 роки тому +41

    Thought you did a fantastic job explaining Non-blocking I/O. I was super bummed when I saw you only had two other videos. Makes some more vids!!!

  • @sepg6266
    @sepg6266 2 роки тому +6

    Great job
    One suggestion: try a background video with less volume, no lyrics (human sound), and slower beats. That music is not just supposed to make the viewer excited or attracted, just makes it a lill colorful. Thanks

  • @LyadhKhorEngineer
    @LyadhKhorEngineer 3 роки тому +23

    Great video. Cleared up a lot of confusion regarding how javascript works as a single threaded server. 👍🏼

  • @ninthsun
    @ninthsun Рік тому +1

    Seriously, this video should be the must for every beginner learning nodejs. Super important concept, but in super easy words and animations.

  • @jordanbtucker
    @jordanbtucker 3 роки тому +11

    Loved the analogies and animations!

  • @sid6576
    @sid6576 Рік тому +8

    Just found this video, great work man.
    My 2 cents: I think the conversation about asynchronousity is incomplete without thinking about how threads and context switching are handled at the OS level. Without the concepts of yielding, interrupts and a priority queue for threads, I was confused for the longest on time on how the computer just magically knows when to switch from one task to another and when it knows that an IO task is complete. I feel like the next step after this video would be to tackle scheduling in OSes because I feel like a lot of programmers on the internet find it to be impenetrable when it's really not that hard!

    • @wafikiri_
      @wafikiri_ Рік тому

      I agree. I watched the video expecting a more advanced explanation. I'm currently amateurly designing the scheduler of a multi-tasking processor and wanted to learn of current solutions.

  • @iganic7574
    @iganic7574 6 місяців тому +1

    Great explanation , finally I understood what is non blocking I/O .
    🙌

  • @avgsteve
    @avgsteve 3 роки тому +2

    This is how the knowledge should be taught. Thanks for sharing

  • @RebienKani
    @RebienKani 2 роки тому +10

    Dude amazing video and excellent job on explaining this topic because it was true hassle for me too understand. Just a couple of tips for in the future:
    1: Choose a different music with lower BPM and lower it by 20%
    2: A better microfoon or remove static noise in post production
    For the rest killer video!!!

  • @IvanBilan-ty9jw
    @IvanBilan-ty9jw 3 місяці тому

    It's a great explanation of complex concept. Divinding work time into CPU and IO time is a realy great concept for understanding this. Now I understand why Node.js is so popuar for web development. Thanks!

  • @vertikasrivastava1186
    @vertikasrivastava1186 3 роки тому +7

    This was super helpful, thank you!

  • @rafaelfigfigueiredo2988
    @rafaelfigfigueiredo2988 24 дні тому

    Thank you. Almost 10y fiddling with web dev and never bothered to check this, sounds awesome to implement

  • @asepulven2768
    @asepulven2768 4 місяці тому

    Excellent Video! best explanation so far with visual representation.

  • @julianhu
    @julianhu 4 місяці тому

    This is absolutely the best explanation video about async I've ever seen. Amazing work!

  • @flucksy119
    @flucksy119 3 роки тому +1

    i think this is the best computer science video ive ever watched with regards to visually understanding due to the graphics

  • @Priyanka-hs5jk
    @Priyanka-hs5jk Рік тому

    This is the most crisp and clear explanation for non blocking I/O in layman terms, thanks a lot

  • @dark_lord98
    @dark_lord98 Рік тому +1

    This is the best video I watched regarding the I/O and CPU tasks. The code example cleared many things for me. Thanks a lot man. Please keep making videos on software engineering topics.

  • @matthewoluwafisayoadeniyi9803
    @matthewoluwafisayoadeniyi9803 2 місяці тому +1

    Just what I needed. Thanks mehn

  • @MyAminedz
    @MyAminedz Рік тому

    Absolutely mind-blowing video, hats off to you sir

  • @nathanielkswas
    @nathanielkswas 3 роки тому +7

    This was super well presented and produced. Keep up the good work!!

  • @brandonhunter2074
    @brandonhunter2074 10 місяців тому

    This is one of the best explanations of this concept I've ever seen. Well done!

  • @souravsharma6092
    @souravsharma6092 10 місяців тому

    Thank you! Really glad I landed on this video, I don't remember the last time someone explained things as simply and effectively as this. Keep up the good work! Will regularly check your channel for any doubts.

  • @theace9562
    @theace9562 3 роки тому +2

    Super helpful. Thanks

  • @brettwines6812
    @brettwines6812 3 роки тому +1

    wow, each of these is better than the last. Your hard work really shows!!!

  • @alaaroumeeh2752
    @alaaroumeeh2752 Рік тому

    Thank you very much no one explains this topic well, or they don't explain it at all!

  • @wichaisawangpongkasame9237
    @wichaisawangpongkasame9237 3 роки тому +1

    You're great at explaining things. It's much clearer to me now. Thanks.

  • @congdao7484
    @congdao7484 3 роки тому +2

    Good work, hope you have more similar video.

  • @whitebeardpirates7551
    @whitebeardpirates7551 Рік тому

    Man that's HUGE, i finally understand this heavy topic as if it was a piece of cake, you're the GOAT ♥♥ Thanks for your effort ♥

  • @minhtaile3572
    @minhtaile3572 3 роки тому +1

    Thanks for making this video, it's easy to understand

  • @tayyibulhassan6227
    @tayyibulhassan6227 9 місяців тому

    I HAVE NEVER SEEN A BETTER TUTORIAL THAN THIS ONE DUUUUUDDDEEEE, YOU ARE AMAZING!!!

  • @imaazk
    @imaazk 10 місяців тому

    I usually don't comment. but you really make things very simple to understand. Thank you!

  • @ainharansubramaniam2910
    @ainharansubramaniam2910 3 роки тому +1

    Great video I hope you keep them coming

  • @dhruvpurwar6642
    @dhruvpurwar6642 2 роки тому

    One of the best videos for the concept!!!

  • @muhammadsalikin3886
    @muhammadsalikin3886 3 роки тому +1

    Thank you so much for this video. Best explanation ever !

  • @Finn-jp6pn
    @Finn-jp6pn 3 роки тому +1

    Found this on Reddit. This was really helpful. Thanks 👍

  • @georgemarwanqana3478
    @georgemarwanqana3478 Рік тому

    BEST EXPLANATION OF THE YEAR

  • @mars_bold
    @mars_bold 2 роки тому

    BROTHER, YOU ARE THE BEST!!! You oooh really helped me!! THANK YOU VERY MUCH!This is cool, well done!

  • @cvramankishore4u
    @cvramankishore4u 2 роки тому

    Great explanation saw couple of your videos and both are awesome keep up the good work

  • @indoor-adventurer
    @indoor-adventurer 3 місяці тому

    dude, make more videos! Such high quality stuff 👏

  • @mandaputtra
    @mandaputtra 2 роки тому +1

    Thanks, all of your video are easily digested! Maybe you can decrease the background music volume to 10% or 20%.

  • @teerapatprommarak2070
    @teerapatprommarak2070 3 роки тому +1

    Fantastic video! Thank you Alex

  • @sandeepkosta5750
    @sandeepkosta5750 Рік тому

    I just wanted to break the like button by clicking on it many times.
    What a great explaination sir
    Thanks so much

  • @ckim0324
    @ckim0324 2 роки тому

    Fantastic video, Alex. Your channel is VERY underrated.

  • @saurabh95mishra
    @saurabh95mishra Рік тому

    amazing explanation, I learned redis uses similar model as nodejs, would love your video on that!

  • @nicholasaine7756
    @nicholasaine7756 2 роки тому

    Best explanation I have come accross, on this topic.

  • @yooog
    @yooog 3 роки тому +1

    Excellent explanation!

  • @island_rhythms
    @island_rhythms 11 місяців тому

    This is a treasure! Such a great and simple explanation! Thank you

  • @lgodlike2324
    @lgodlike2324 Рік тому

    You just explain it so well !
    This is exactly the video I need.

  • @karthiks-he4wh
    @karthiks-he4wh Рік тому

    Beautifully explained 👌

  • @ashishchiluka8912
    @ashishchiluka8912 2 роки тому

    Great explaination , one of the best videos

  • @yashkumar-jv2cf
    @yashkumar-jv2cf 2 роки тому

    I was struggling with this concept for months. you cleared my doubt. thanks man

  • @aramaiskhachatryan553
    @aramaiskhachatryan553 3 роки тому +1

    Great one! Keep it up Alex.

  • @Karpefilm
    @Karpefilm 2 роки тому

    By far the best explanation! Keep up the fine work

  • @rollercoasterer
    @rollercoasterer 2 роки тому

    Very top notch quality!

  • @samartajshaikh2601
    @samartajshaikh2601 2 роки тому

    Great explanation. Simple and precise. Exactly what I needed. Thanks.

  • @ytrkptl
    @ytrkptl 3 роки тому +1

    Great explanation.

  • @saurabh0241
    @saurabh0241 11 місяців тому

    thank you soo much for this video brother . love from INDIA

  • @morphos2
    @morphos2 Рік тому

    Bravo!!! Excellent explanation!! 👏👏👏

  • @Juan_lauretta
    @Juan_lauretta 2 роки тому

    Wow this video was amazing, thank you so much

  • @Frozd
    @Frozd Рік тому

    Great video! The explanation was on-point and easy to understand, and the animations made it easy to follow.

  • @cuongtrinhminh
    @cuongtrinhminh 2 роки тому

    Great video because it explains a hard thing simple

  • @arjunbhat6502
    @arjunbhat6502 3 роки тому

    Keep on doing such kind of videos. That really helped.

  • @utkarshtripathi2349
    @utkarshtripathi2349 3 роки тому

    Best explanation, Thanks for the video

  • @jmro7
    @jmro7 3 роки тому

    top notch content. i can already envision this being a big education channel. Keep it up !

  • @vunu.
    @vunu. 3 роки тому

    Your voice is perfect for these videos! You've come so far in the last decade, awesome stuff! Works like clockwork...wink wink nudge nudge. Anyway, I enjoyed this. I'm subscribing and hitting the bell!

  • @JanetTheDev
    @JanetTheDev 2 роки тому

    Thanks so much, this was super helpful!

  • @mohamedchebbi1154
    @mohamedchebbi1154 2 роки тому

    That's huge, great job, u saved my life.

  • @RunxiDing
    @RunxiDing Рік тому

    nice explanation! Thank you! Alex!

  • @carolinafransiscalopezpaca541
    @carolinafransiscalopezpaca541 2 роки тому

    you make great content, don't stop until the top

  • @waniarifrasool
    @waniarifrasool Рік тому

    This is wonderful!

  • @raimundoladrondeguevara8597

    Thank you so much for this video.

  • @icns01
    @icns01 2 роки тому

    It was super helpful. Thanks much for clarifying.

  • @ShaikSameer549
    @ShaikSameer549 3 роки тому

    Thanks for making it simple and more understandable

  • @henriquesenadev2194
    @henriquesenadev2194 Рік тому

    Incredible video!

  • @vyasrajjoshi6059
    @vyasrajjoshi6059 2 роки тому

    Very well presented. Waiting for more of such content 😊

  • @howards5205
    @howards5205 Рік тому

    This is the best explanation I've seen on non-blocking I/O. Thank you SOOOO much for this video! It clarified so many questions I had.
    @4:20 of your video, you listed three examples of I/O (inactive time):
    - reading from filesystem
    - making network requests
    - waiting for time to pass
    Would executing a long-running database query qualify as a I/O or CPU? The database would be doing all the heavy compute. Would NodeJS be able to move onto other active tasks while the database query is running? Or will a thread be tied to the database query?

  • @oladipupooladele3647
    @oladipupooladele3647 2 роки тому

    Great video!!!!! i loved it so much

  • @Belkiii88
    @Belkiii88 2 роки тому

    Really great video!

  • @salvadorgonzales1566
    @salvadorgonzales1566 3 роки тому

    Wow you did very good on this video! well explained! hope you make many more on all topics lol

  • @michaelciyke
    @michaelciyke 2 роки тому

    awesome explanation!

  • @DharanAditya
    @DharanAditya 2 роки тому

    Thanks for the video ❤

  • @flavioneto1081
    @flavioneto1081 3 роки тому

    Great video and animations, very explicative, thank you

  • @arnabgoswami8971
    @arnabgoswami8971 3 роки тому

    Thanks you so much for the wonderful explanation It really helped me clearing the concept

  • @afshinshoja2026
    @afshinshoja2026 2 роки тому

    Great video, Thanks

  • @idanqwe1
    @idanqwe1 3 роки тому

    Great explanation! Thank you.

  • @t2a392
    @t2a392 Рік тому

    Amazing video !

  • @Developerish
    @Developerish 3 роки тому

    My gosh, where have you been my whole life.

  • @neilclay5835
    @neilclay5835 2 роки тому

    Well explained.

  • @randomguy59420
    @randomguy59420 3 роки тому +1

    awesome, well done!

  • @Simplicity4711
    @Simplicity4711 2 роки тому

    Really great video, but I highly recommend using background music without vocals, or it gets much harder following what you say. 😊😉

  • @xtremewolve
    @xtremewolve 3 роки тому

    too good, I am subscribing

  • @prabhat9274
    @prabhat9274 7 місяців тому

    great explanation...

  • @ayushmanvashishtha8180
    @ayushmanvashishtha8180 3 роки тому

    Great video man

  • @byronkenoly
    @byronkenoly 2 роки тому

    great work!

  • @elliekong712
    @elliekong712 2 роки тому

    THANK YOU SO MUCH this video helps a lot! subscribed

  • @mohamedsharkawey3847
    @mohamedsharkawey3847 3 роки тому

    that's a nice one mate thank you!

  • @אסףשפיגלר
    @אסףשפיגלר 2 роки тому

    awesome video bro!

  • @elianavalos9605
    @elianavalos9605 9 місяців тому

    Tome su like, buen señor

  • @alveol85
    @alveol85 3 роки тому

    ty so much finally i got it