Three Concepts Every Node.js Developer Should Understand

แชร์
ฝัง

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

  • @mguay
    @mguay  11 หลายเดือนก่อน +7

    Want to learn more about these concepts and how to build production-grade Node.js Microservices? Check out my highly-rated course with this discount code: michaelguay.dev/udemy/

  • @johnisutsa1641
    @johnisutsa1641 11 หลายเดือนก่อน +4

    I decided to take the time this month to really try and understand JS and its various runtimes like nodejs, and how it works. Then, this video comes up. Literally perfect timing. Thank you. Excellent teaching as always.

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

    A new fan is coming right away, please make more videos on scaling and building production level code logics and optimisation, cause no one is doing that except Copy Pasting 🎉❤
    Request: please make a video on how to setup typescript for production react app.

  • @cesargamer1231
    @cesargamer1231 11 หลายเดือนก่อน +2

    Insane, make more courses, yours explanations are soo good

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

      For sure, stay tuned. Thank you!

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

    Great video, really helped to understand core concepts of js and async code in js, thanks!
    wanted to mention that better to use Promise.allSettled instead of Promise.all
    allSettled handles a little differently (returns status and value) but doesnt stop if rejected promises occur

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

    15:32 and C#. Even with async await syntax utilizses multiple threads. Thank you for the video.

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

    Thank you!!
    Very informative lecture and looking for further concepts.

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

    Awesome content as always, One question though, if I have a limited knowledge on dockers and k8s, is it a good approach to go with node clusters instead??

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

    This is gold, thanks a lot.
    Can we achieve multi threading by using a message broker/queue system instead of workers ?

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

      Still one thread, but we can scale horizontally by distributing the work to several applications - so it is very similar.

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

    Excellent tutorial Michael , been following your channel for a while now . thought i'd throw in a couple of nuggets .
    I know for one that pm2 can be used to scale NodeJs processes , although K8s is a production grade solution it also requires quite a bit of an overhead , could we get alternatives ?
    I've also hear interesting stuff about Worker threads , maybe you could help us unpack that .
    Keep up the good work !

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

      I love the idea of a future video with PM2 and Worker Threads! Stay tuned.

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

    Thanks Michael! Your content is amazing, i've learned a lot from you!

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

    My note: @13:00 how promise does not block it. (it is async sleep rather than being blocked)

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

    Thanks for these useful videos. I love your tuts

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

    Nice explanation

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

      Yes exactly, check out my video on Horizontal Pod Autoscaling to have this happen automatically based on CPU & Memory usage metrics!

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

    your content is a gem, thank you

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

    Hi @mguay, i wonder in this what theme are you using in vs code?

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

    Impressive

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

    Wait. When we have I/O-bound tasks, aren't they passed to a thread pool and then executed on a separate thread by the kernel?

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

      Only for very specific tasks: DNS lookup, file-system I/O, Crypto & ZLIB
      The actual network I/O is completely async and handled by the kernel. Node (the event loop) simply moves onto other tasks while it awaits the response from the kernel
      stackoverflow.com/questions/51653440/does-node-js-use-libuv-thread-pool-for-network-i-o

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

    keep it up! you are doing a great JOB!!!

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

    Very helpful, Thanks!

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

    14:55 is there other way to write a non-blocking code? Rather than returning new Promise(), could I return just a function which contains a setTimeout inside?

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

    Thank you for this masterpiece

  • @nikhilsrivastava-i2y
    @nikhilsrivastava-i2y 11 หลายเดือนก่อน

    Thanks for your amazing work !!👌🙂

  • @mr.daniish
    @mr.daniish 11 หลายเดือนก่อน

    This content is so fresh and different that the cookie cutter dev content being produced out there! keep it coming Micheal

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

    Many thanks

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

    Hi Michael thank for the nice video can you make a course for nestjs graphql microservice i mean even a paid course is fine i really want to know more about that

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

      Yes stay tuned for my next course :)

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

    Promise.all is concurrent, meaning they start executing in parallel, but, JavaScript being single-threaded, only one line of code is executed at a time (code inside callbacks)

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

      Node.js is designed for concurrent, not parallel, execution of operations, with a focus on non-blocking, event-driven tasks primarily suited for I/O-bound workloads

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

      now its capable of parallel excecution through worker nodes @@ofuochi

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

      Yea, and I think it's important to distinguish between the 2 terms for new developers that are learning instead of just deciding to use the term parallel when in fact all code execution is concurrent unless utilizing worker threads. The I/O network events can happen in parallel, but the actual code execution will always be concurrent.

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

    Thank you Michael, And thank you for amazing Udemy micro-services neste course. It makes really big difference at my career 👍. Hope if there is more about could (Kubernetes, helm ) and how to manage clusters.

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

      For sure, stay tuned. Thank you!

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

    Amazing Thanks!

  • @Hero-pw3es
    @Hero-pw3es 29 วันที่ผ่านมา

    really nice.

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

    Why can't we use pm2 for cluster mode?

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

      Stay tuned for a video on it!

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

    Brilliant

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

    I am using Nuxt atm

  • @Alex-bc3xe
    @Alex-bc3xe 9 หลายเดือนก่อน

    You are a really good developer maybe you should refine your branding and marketing strategy cause you have talent.

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

    Why does the function non blocking need to be asynchronous? You are returning a promise and not awaiting for anything

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

      It doesn’t need to be since we’re already returning a Promise like you said

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

    "Promo SM"

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

    Thank you so much!