Scaling your Node.js app using the 'cluster' module

preview_player
Показать описание

📚 Resources:
Check out Stanley Ulili's article that this video is based on:

======⚡⚡⚡======
Consider supporting the channel by clicking the "Thanks" button ❤️

======⚡⚡⚡======

And don't forget to subscribe for more videos like this 😊
Рекомендации по теме
Комментарии
Автор

from version 18.14.0, it is advised to use os.availableParallelism() instead of os.cpus().length

AshrafulFerdousFariv
Автор

GOSH, I love this channel! And how your deliver the concept clearly and precisely.
Thanks!!

maximus
Автор

Bro, I love it when I find a gem like this. Thank you, I was looking for a quality this channel has to offer for very long time. I'm definitely going to subscribe!

mowmiadrian
Автор

Very clean and good explanation! You're good! Keep going! Thanks!

AViStudioMoldova
Автор

Looks really great! Thanks for the video!

PaweGradziel
Автор

Man i love your videos, you're a very good teacher, you teach advanced topics clearly and with ease. thank you for teaching me! keep going!

kooshaforoughi
Автор

Hi!
Your approach by identifying a problem and then solving it is blazingly great 😃
But please make a video on
Difference between Cluster and Multi threads? As both utilizing all cpu cores
I am looking forward to hear from you

AbdulHannan-orql
Автор

it is the best video of advanced nodejs i ever seen, keep going

chafroudiyed
Автор

Ok this is very awesome. I have been watching all of other videos on your channel and trust me your videos convinced me to subscribe to your channel.

I can't wait to see more topics like this. And many many thanks for taking your time to make these videos.

code_react
Автор

Thanks a lot, This is what I looking for.

wasankds
Автор

your videos are awesome man! i usually don't write comments but your channel is so undersubscribed!

anton
Автор

My team lead explained me about clustering a few times and i didn't get shit, it sounded like a super complex thing when he talked about it.
Your explanation was super easy to understand!!
Thanks alot!

alphacentauri
Автор

thank you for your sharing master, I have a question 'if I have 3 servers, running index.js from each server, how to execute index.js from different server?'
any response will be highly appreciated

fendipratama
Автор

Keep in mind cluster is not core-pinning.. It just run on whatever core/thread it would like. Also you can still combine the nodejs cluster feature with workers, which in bigger calculations might help to un-block the main thread. Since nodejs is semi-multithreaded by default.

MelroyvandenBerg
Автор

Can we use cluster module for "SMPP Protocol" faster performance?

SMPP is stateful connections, so I am not getting the full output using cluster, any hint?

ranadenish
Автор

hi, i have a problem here, I've done everything like in the video but the workers wont work? the loadtest was arguably the same as the first time, so to check by myself i made another route without any load to check if i could make a get from that one while the heavy one was still loading and the answer was no, it waits for heavy get to complete before actually doing the main get, its like everything was going to the same worker instead of trying to use different workers, i have 12 cores so it should work...

tryzack
Автор

Thank you for the clear explanation.

One thing to note is that a single instance still utilizes multithreading for asynchronous operations with libuv.
Cluster is advantageous for synchronous operations, as shown in your example.

hashcode
Автор

Hi, Thanks I am looking something similar, just want to understand, making clustering this way, or having replica instances via docker, is there any difference between or better as compared to other what is the recommended way ?

vaibhavm
Автор

If we have 8 cpu, the primary script use 1 cpu and remain 7 for the application?
Conclusion, if we have 2 cpu - it's doesn't work?

prokhorov_sergey_igorevich
Автор

Thanks nice.... I just want to ask in one core there are multiple processes....or processes is equal to core.
??? Thanks

saurabhtalele