What is a health check endpoint?
Model answer
A simple route such as GET /health that returns 200 when the app is running, optionally checking the database connection. Load balancers, uptime monitors and orchestrators use it to know when to send traffic or restart the app. Keep it fast and do not expose sensitive details.
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.