Q56: What is PM2 and why is it used in production Node.js deployment?

PM2 is a production process manager for Node.js. It handles automatic application restarts on failures, application clustering, zero-downtime reloads, and log management.

Key Takeaways
  • Keeps Node.js applications alive continuously.
  • Supports process clustering, log rotation, and zero-downtime restarts.
Knowledge Check

Which PM2 feature enables zero-downtime application updates?