Skip to main content

Node JS Cluster with PM2, RabbitMQ, Redis and Nginx

2h 24m 39s
English
Paid

Unlock the potential of Node JS and enhance your application's performance by leveraging multi-core systems. Node JS is inherently single-threaded but with advanced strategies, you can optimize CPU usage across all cores. This course will guide you through the crucial steps needed to run Node JS seamlessly on multiple cores with Node JS Cluster.

Course Overview

This course provides a comprehensive understanding of using Node JS Cluster in conjunction with PM2, RabbitMQ, Redis, and Nginx. Here's what you'll cover:

  1. Importance of Node JS Cluster: Understand why clustering is essential for CPU-bound operations.
  2. Creating Node JS Cluster Applications: Learn how to set up and manage a cluster application.
  3. PM2 for Managing Applications: Use PM2 to efficiently run Node JS applications.
  4. Master and Child Process Communication: Delve into inter-process communications and their benefits.
  5. Advanced Communication Using PM2 and RabbitMQ: Explore using RabbitMQ for more robust message handling.
  6. Redis Cache Implementation: Discover how to effectively cache data with Redis.
  7. Nginx as a Reverse Proxy and Load Balancer: Learn to enhance traffic management using Nginx.

By the course end, you'll be proficient in integrating Node JS Cluster with these powerful tools to boost application performance.

Course Requirements

Prerequisites:
  • Proficient understanding of Node JS and Express JS framework
  • Familiarity with ECMA Script 2015/ES6

Target Audience

This course is ideal for:
  • Intermediate students or developers eager to expand their Node JS and Express JS proficiency

Learning Outcomes

By enrolling in this course, you will learn:

  • How to run Node JS in a Cluster for optimal performance
  • Techniques for leveraging PM2 to create and manage Node JS Clusters for load distribution
  • How to use RabbitMQ with PM2 for effective load distribution
  • Methods for storing and retrieving data from Redis cache
  • Utilizing Redis as a Publisher and Subscriber
  • Setting up Nginx as a reverse proxy for your applications
  • Incorporating Nginx load balancing capabilities into your development

About the Author: udemy

udemy thumbnail
By connecting students all over the world to the best instructors, Udemy is helping individuals reach their goals and pursue their dreams. Udemy is the leading global marketplace for teaching and learning, connecting millions of students to the skills they need to succeed. Udemy helps organizations of all kinds prepare for the ever-evolving future of work. Our curated collection of top-rated business and technical courses gives companies, governments, and nonprofits the power to develop in-house expertise and satisfy employees’ hunger for learning and development.

Watch Online 24 lessons

This is a demo lesson (10:00 remaining)

You can watch up to 10 minutes for free. Subscribe to unlock all 24 lessons in this course and access 10,000+ hours of premium content across all courses.

View Pricing
0:00
/
#1: Introduction
All Course Lessons (24)
#Lesson TitleDurationAccess
1
Introduction Demo
03:02
2
Who should take this course?
00:40
3
Tools and Software required for this course
00:53
4
Why Node JS cluster?
12:17
5
Introduction to Cluster Module
08:17
6
Example - Creating First Node JS application using Cluster module
06:44
7
Load testing Node JS cluster application
02:35
8
Example - Load testing Node JS cluster application Part - I
03:15
9
Example - Load testing Node JS cluster application Part - II
03:01
10
Introduction to PM2
07:06
11
Example - Running Node JS Express application using PM2
10:11
12
Introduction to child_process module
02:38
13
Example - Communication between Master and Child processes
06:31
14
Master and Child process communication using PM2 and RabbitMQ
10:03
15
Example - Master and Child process communication using PM2 and RabbitMQ
13:41
16
Rabbit MQ Web Inteface
04:17
17
Introduction to Redis Cache
04:01
18
Example - Using Redis Cache in Express JS REST API with PM2
15:36
19
Introduction to Using Redis as Publisher and Subscriber
02:17
20
Example - Redis Publisher and Subscirber using PM2
07:31
21
Introduction to Nginx
05:05
22
Example - Nginx as a reverse proxy
06:19
23
Example - Nginx as a load balancer and reverse proxy
05:53
24
Summary of the Course
02:46
Unlock unlimited learning

Get instant access to all 23 lessons in this course, plus thousands of other premium courses. One subscription, unlimited knowledge.

Learn more about subscription