A Complet guide about Running NodeJS Applications in Production on Scale
- What is a Application Delivery Controller
- Use NGINX as Proxy with static file delivery as also Loadbalancer if needed aka Application Delivery Controller
- Setup systemd unit files for your DoneJS Application and nignx
- Start and Monitore the Stack via systemd
- Scale over Multiple Servers.
- What is Docker
- run Nginx with right configuration
- run Donejs Application with right configuration
- Monitore.
- Scale.
First of all why should you always run NGINX or a Other Production Webserver/Proxy/Loadbalancer in front of NodeJS Applications?
- because nodejs applications should by design crash if some unhandled error get thrown and on the internet all kind of unintended Traffic and requests will reach your nodejs application. You can handle all that in your nodejs application it self sure but C is more fast and NGINX has a lot of expirence with high traffic Applications and Sites thats why it Calls it self Application Delivery Controler