From the course: Advanced Node.js: Scaling Applications
Unlock the full course today
Join today to access over 22,700 courses taught by industry experts or purchase this course individually.
Architecting zero downtime - Node.js Tutorial
From the course: Advanced Node.js: Scaling Applications
Architecting zero downtime
- [Instructor] One of the advantages of running multiple processes is that your app never has to go down, it can always be available to your users, this is called zero downtime. Sometimes our apps go down, this could be due to some mysterious and obscure bug, it could be due to high traffic or sometimes we just need to update the code and restart the process, in a cluster when a single instance fails, the traffic will use the remaining worker instances, and the main process can detect worker failures and automatically restart those workers. When you need to update your app you no longer need to tell your customers that the website will be down due to maintenance. You can simply program your cluster to restart each instance with the updated code. Let's take a look at what this looks like in our sample from the last lesson. So I'm going over to the exercise files, I'm in the exercise files under chapter one, chapter one lesson five and we are taking a look at the cluster we built during…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.