Node JS Cluster with PM2, RabbitMQ, Redis and Nginx

Learn how to create Node JS cluster, use PM2, RabbitMQ, Redis Cache and Nginx as a Reverse proxy and load balancer

As we all know, Node JS is single threaded event-driven JavaScript runtime. When we run any CPU intensive operation, Node will not be able to take an advantage of all the cores of our machine. This is where we will use Node JS cluster to run Node JS in multiple cores. In this course you will see –

What you’ll learn

  • Running Node JS in a Cluster.
  • Using PM2 to create and manage Node JS Cluster for load distribution.
  • Using RabbitMQ with PM2 to distribute the load.
  • Storing data in Redis cache.
  • Redis Publisher and Subscriber.
  • Using Nginx as a reverse proxy.
  • Using Nginx with load balancing as a reverse proxy.

Course Content

  • Introduction –> 4 lectures • 17min.
  • First Node JS Cluster Application –> 5 lectures • 24min.
  • PM2 –> 2 lectures • 17min.
  • Master and Child process communication –> 5 lectures • 37min.
  • Redis Cache –> 4 lectures • 29min.
  • Nginx as a Reverse Proxy and Load Balancer –> 4 lectures • 20min.

Node JS Cluster with PM2, RabbitMQ, Redis and Nginx

Requirements

  • Good knowledge of Node JS and Express JS framework.
  • Basic knowledge of ECMA Script 2015/ES6.

As we all know, Node JS is single threaded event-driven JavaScript runtime. When we run any CPU intensive operation, Node will not be able to take an advantage of all the cores of our machine. This is where we will use Node JS cluster to run Node JS in multiple cores. In this course you will see –

  1. Why Node JS cluster is important?
  2. How to create Node JS cluster application?
  3. Using PM2 to run Node JS application
  4. Communication between Master process and Child Process
  5. Communication between Master process and Child Process using PM2 and RabbitMQ
  6. Working with Redis cache
  7. Using Nginx as a reverse proxy and load balancer

At the end of this course, you will be ready to use Node JS cluster with PM2, RabbitMQ, Redis and Nginx.

Get Tutorial