Anyone here used PM2 and redis? Lets say I want to...
# random
e
Anyone here used PM2 and redis? Lets say I want to deploy changes with zero downtime then only running PM2 in cluster mode is not enough I will have to run redis in cluster mode as well. Is this correct understanding?
m
pm2 is a process manager. redis is for caching. You can get zero downtime deploys without either of them.
👍 1
e
actually in my case I am using bull queue which uses redis https://github.com/OptimalBits/bull
I have deployed nodejs+redis application and mongo cloud instance is used(on atlas) Now lets say I pull the code from git repo and spin up my app using PM2. Lets say tomorrow I want to again pull latest code changes and restart the application In that case can I use PM2 to switch between previous and latest code? Will it cause any consistency issues or downtime issues? How can I avoid that?