PM2 is a process manager for node.js application. It helps to manage and keep an application online for 24/7. In PM2 there is an option to run the code in cluster mode. The cluster mode allows node.js applications to be scaled across all CPUs available, without any code modifications. So this is a great feature in pm2.

In another side cron is a scheduler program which we can use to schedule some of our task/code to run on time basis.

In our project these two (PM2 and cron) are implemented.

Now I want to share a story about some issues…

Anjarul Robin

Associate software engineer @BrainStation-23 since 2020

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store