In this video, we will explore the NodeJS Cluster Module. Following things have been covered in this video: Why do we need clusters? What are cores within a CPU? How performance of NodeJs is impacted without clusters? With a live code example. How clustering helps in distributing the workload among the clusters and improving the performance? How many clusters can be spawned on a server ? How much HEAP Memory should be allocated to each spawned server / cluster ? Which algorithm is used to distribute the load among the clusters? How to implement clusters in NodeJs JS Code ? 00:00 Introduction 00:08 Why do we need Clusters ? 00:40 What are cores within a CPU ? 01:45 Working of NodeJs application without clusters 02:25 Code Example of performance of NodeJs application without clusters 04:07 How clustering can help improve performance ? 04:57 Referring NodeJs Clusters documentation 05:20 How Clusters work in distributing the workload? 05:45 How many clusters/instances can be spawned ? 06:19 How Primary Cluster works as a load balancer 06:40 Which Algorithm is used to distribute the workload ? 08:18 How much HEAP Memory should be allocated to each cluster ? 09:14 Code Example of performance of NodeJs application with clusters 12:34 Conclusion 📱 Follow TheStandupCoder + Instagram - https://www.instagram.com/thestandupcoder/ 📫 Business / Collaboration - thestandupcoderpvt@gmail.com
In this video, we will explore the NodeJS Cluster Module. Following things have been covered in this video: Why do we need clusters? What are cores within a CPU? How performance of NodeJs is impacted without clusters? With a live code example. How clustering helps in distributing the workload among the clusters and improving the performance? How many clusters can be spawned on a server ? How much HEAP Memory should be allocated to each spawned server / cluster ? Which algorithm is used to distribute the load among the clusters? How to implement clusters in NodeJs JS Code ? 00:00 Introduction 00:08 Why do we need Clusters ? 00:40 What are cores within a CPU ? 01:45 Working of NodeJs application without clusters 02:25 Code Example of performance of NodeJs application without clusters 04:07 How clustering can help improve performance ? 04:57 Referring NodeJs Clusters documentation 05:20 How Clusters work in distributing the workload? 05:45 How many clusters/instances can be spawned ? 06:19 How Primary Cluster works as a load balancer 06:40 Which Algorithm is used to distribute the workload ? 08:18 How much HEAP Memory should be allocated to each cluster ? 09:14 Code Example of performance of NodeJs application with clusters 12:34 Conclusion 📱 Follow TheStandupCoder + Instagram - https://www.instagram.com/thestandupcoder/ 📫 Business / Collaboration - thestandupcoderpvt@gmail.com