Performance: PM2 for process management
MEDIUM IMPACT
PM2 affects server uptime and responsiveness by managing Node.js process restarts and load balancing, impacting backend response times and stability.
pm2 start server.js --name my-app
node server.js
| Pattern | Process Management | Downtime | Load Handling | Verdict |
|---|---|---|---|---|
| Manual node start | No management | High downtime on crash | No load balancing | [X] Bad |
| PM2 with single process | Auto restart | Minimal downtime | No load balancing | [!] OK |
| PM2 cluster mode | Auto restart + load balancing | Near zero downtime | Efficient CPU usage | [OK] Good |