Node.js Cluster Module for High Availability
Node.js

Node.js Cluster Module for High Availability

Our API went down on a Saturday because we were running a single Node process on a single core with no recovery plan. This post walks through what we changed: forking workers with the cluster module, wiring up zero-downtime restarts, managing worker lifecycles, handling sticky sessions, and running it all through PM2 in production.

11 min read 3,075 views
#cluster #high-availability #pm2 #load-balancing
Continue Reading →
Nginx Reverse Proxy for Node.js Applications
DevOps

Nginx Reverse Proxy for Node.js Applications

Running Node.js without Nginx in production is like running a database without backups. Here's how I set up a reverse proxy that handles the stuff Node shouldn't be doing.

11 min read 1,533 views
#nginx #reverse-proxy #load-balancing #devops
Continue Reading →