Node.js Tutorial - 61 - Cluster Module

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ต.ค. 2024
  • ⚡️Syncfusion components: syncf.co/3Emhvnv
    📘 Courses - learn.codevolu...
    💖 Support UPI - support.codevo...
    💖 Support Paypal - www.paypal.me/...
    💾 Github - github.com/gop...
    📱 Follow Codevolution
    Twitter - / codevolutionweb
    Facebook - / codevolutionweb
    📫 Business - codevolution.business@gmail.com
    Cluster Module
    Node.js Tutorial
    Node.js Tutorial for Beginners

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

  • @xenky0
    @xenky0 10 หลายเดือนก่อน +9

    I think the whole course has an extremely deep explanation that a senior must know, it's not just for a beginner. Super nice tutorials and many thanks to the authors.

  • @mysuperemecy
    @mysuperemecy ปีที่แล้ว +5

    This series is by far one of the best to understand and work on nodejs. Thank you for teaching nodejs

  • @jm.sarmiento
    @jm.sarmiento ปีที่แล้ว +5

    precise and concise explanation. This is how all video tutorials should be. Thank you very much and congratulations for the content.

  • @AnimeEditsMemes
    @AnimeEditsMemes ปีที่แล้ว +10

    For users with windows OS please include cluster.schedulingPolicy='rr' to round robin, by default for windows the clusters scheduling policy will be set to none and works will not be distributed among the child process no matter the number of logical cores child process created the master handles all the load and blocks other requests.

    • @akashmittal2155
      @akashmittal2155 ปีที่แล้ว +3

      cluster.schedulingPolicy = cluster.SCHED_RR ; adding this worked for me, don't know why but 'rr' gives out error on my system

    • @AnimeEditsMemes
      @AnimeEditsMemes ปีที่แล้ว

      @@akashmittal2155 yes it's SCHED_RR just used short form rr😮‍💨

    • @akashmittal2155
      @akashmittal2155 ปีที่แล้ว +1

      Bro, any idea on how to change the clustering policy while running pm2 on windows?

    • @srl123-u7z
      @srl123-u7z ปีที่แล้ว

      Thanks

    • @redblue17
      @redblue17 ปีที่แล้ว

      @@akashmittal2155 Thanks friend. I literally spent 5+ hrs figuring it. Tried 100+ methods. I thought it is power saving mode fault/ Os fault but every time Os shows 8 processors but never worked..

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

    oh dude each second of this tutorial is so important and beginner friendly, just loved it 😍

  • @RaianDexter
    @RaianDexter ปีที่แล้ว +2

    Clear, accurate and useful. Thanks

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

    so good stuff , you cant find these type of good nodejs content outthere , thank you for
    your time

  • @mykola2173
    @mykola2173 ปีที่แล้ว +2

    Excellent series! Thank you!

  • @arnabdas2967
    @arnabdas2967 ปีที่แล้ว

    GOD LEVEL VIDEO ..... salute SIR ..... WAY WAY BETTER THAN UDEMY COURSES

  • @mohammedashiq2720
    @mohammedashiq2720 ปีที่แล้ว +1

    Outstanding presentation😍. Can understand quicly, Keep going👍

  • @Lerndemy
    @Lerndemy ปีที่แล้ว +2

    legend teacher!!

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

    Thanks for the video, I'd like to point out that using workers in the example doesn't actually solve the problem of blocking event loop. Whether you have a single-core process or multiple-core processes you're still blocking the event loop. Worker threads may have been useful here.

  • @adehenry9591
    @adehenry9591 ปีที่แล้ว

    Legendary stuffs Vishwas 👏🏻

  • @axelfuzzi1532
    @axelfuzzi1532 ปีที่แล้ว +1

    Hermoso tutorial, es todo lo que necesitaba leer

  • @odntht
    @odntht ปีที่แล้ว +1

    If you are using Node v18.14.0 or newer version at the NodeJS docs they say to not use 'os.cpus().length' but use 'os.availableParallelism()' instead.

  • @ahsanmumtaz2918
    @ahsanmumtaz2918 ปีที่แล้ว

    Very nice explanation Vishwas 💌

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

    I keep learning alot

  • @shineLouisShine
    @shineLouisShine ปีที่แล้ว +3

    An impressive teaching, ALTHOUGH......
    It could have been really impressive if it was completely working.
    I run no-cluster.js with pm2 and an identical code as the one in the video-
    And while not loading as slow as "/slow-page" - the home page does load quite slower,
    Which makes me wonder about the pm2 capabilities (/optimization).

  • @thecartoonworld2301
    @thecartoonworld2301 ปีที่แล้ว

    Amazing Content 🎉

  • @coadingwithpandeyji
    @coadingwithpandeyji ปีที่แล้ว

    i am so gratefull to you even my mentors are secretly studying from you may be can you provide express i dont want to study from them

  • @raviwebdeveloper8517
    @raviwebdeveloper8517 ปีที่แล้ว

    I have a doubt, like in video 41(Network I/O) you said that network Input/Output opeartions are job of OS kernel,and thread pool does not effect the performance, so in that case why here we are seeing low performance in page requests, wont the OS kernel takes responsibility of the incoming requests

  • @sairam-du7ip
    @sairam-du7ip ปีที่แล้ว

    thank you sir 🙏

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

    Thanks

  • @promiseihunna4714
    @promiseihunna4714 ปีที่แล้ว

    Superb.

  • @frontend_ko
    @frontend_ko ปีที่แล้ว

    thanks teacher 61

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

    I'm confused on this tutorial use case. javascript is single threaded, so we need node.js to act like async communication using libuv. but node will comes under single threaded. it occupied single core of cpu.

  • @bibashkatel1090
    @bibashkatel1090 24 วันที่ผ่านมา

    How do you manage database connection for each cluster? I tried using middleware and check if the cluster is already connected to database or not and if not then establish the connection but the problem is the initial request would take time and result in time out and if the connection is established as soon as the worker are online then each worker gets connected to the database, this also includes creating indexes operation which in deed would cause more load to the databse. Can you provide a solution for this ?

  • @rajajairamrameshbabu7605
    @rajajairamrameshbabu7605 ปีที่แล้ว

    Please make viedo javascript input and output setup in vs code for codeforce competitive programming

  • @nermeenghanem4309
    @nermeenghanem4309 ปีที่แล้ว +1

    For those who are js, React front-end developers, which track is preferable ; node js or php for starting backend?

    • @pooyaestakhry
      @pooyaestakhry ปีที่แล้ว

      I was a PHP developer for years but after starting a react project, choice of PHP as back end caused an extra overhead because of constantly changing programing language that i was working with. at the end i switched to NodeJS and rewrote the PHP code.

    • @nermeenghanem4309
      @nermeenghanem4309 ปีที่แล้ว

      @@pooyaestakhry
      How long does it take to study node js and start working with it?

    • @pooyaestakhry
      @pooyaestakhry ปีที่แล้ว +1

      @@nermeenghanem4309 learning is not a one time thing to do and be done with it but in order to start you can just start with one of the tutorials on Node with Express and start from there.

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

    So far I have observed one thing. After all the things and new implementations everything becomes like PHP😂

  • @uncleiroh3616
    @uncleiroh3616 ปีที่แล้ว

    The threads work at the same time on a single request. Is it possible to distribute work between threads

  • @ctcsys
    @ctcsys ปีที่แล้ว

    Can that be run fully on client side too? Thinking of a client / shared with other clients cluster of JS - only starting in browser - never hit server?

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

    I have a question that why the log show `Server is running on port 8000` 2 times but we don't encounter with the error "the address 8000 is already used ..."

    • @MayurKasliwal-l7r
      @MayurKasliwal-l7r 6 วันที่ผ่านมา

      If carefully listen to the lecture, you will get to know that Cluster module creates and run the workers on the same PORT as master node. Hope it answers your question :)

  • @krish_techaadimulam2243
    @krish_techaadimulam2243 ปีที่แล้ว

    sir,can u tell me how much parts,latest is 61,tell me how many parts r there approximate,pls rply to me sir

    • @iamsantoshmallick
      @iamsantoshmallick ปีที่แล้ว

      He already mentioned that this is last module may be max to max 10 videos and this course will be over.

    • @simple8810
      @simple8810 ปีที่แล้ว +1

      @@iamsantoshmallick hope he start express next to this series'

  • @abdulrazaqharoon2733
    @abdulrazaqharoon2733 ปีที่แล้ว +1

    Nodejs is beginnign to scare me, I thought the series would be finished by now. I stopped at 35 waiting for the series to end, its been 2 months now. Scaryyyy!!

    • @sanjarcode
      @sanjarcode ปีที่แล้ว

      Actually, he's splitting down videos into byte sized chunks. The whole event loop and queues video (10 videos) are mostly taught in one single video.

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

    5:22

  • @korkut31
    @korkut31 ปีที่แล้ว

    why u strect out every every word at the end of the sentence. do u think that u are speaking a good hearing English ? it is so annoying..

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

      korkut kapat çeneni adam nodejs ile ilgili derin konseptleri güzel açıklamış takıldığın şeye bak