What is the difference between horizontal and vertical scaling for a Node API?
Model answer
Vertical scaling gives one server more CPU and memory. Horizontal scaling runs more instances behind a load balancer. Horizontal needs stateless services (sessions and uploads outside local memory and disk), a shared database or cache, and health checks. It also improves availability.
Learn this topic
Deploy a MERN App to a VPS with pm2, nginx and HTTPS (Let's Encrypt) in the course MERN Stack Full Course: MongoDB, Express, React and Node.js.
Sign in to add your own answer.