From the course: Advanced Node.js: Scaling Applications
Unlock the full course today
Join today to access over 24,500 courses taught by industry experts.
Scaling the x-axis - Node.js Tutorial
From the course: Advanced Node.js: Scaling Applications
Scaling the x-axis
- [Instructor] To scale along the x-axis means to clone your app. This means running the exact same application in another instance, and then handling the traffic between the two instances instead of one. For example, let's say you have a business or a server that provides advice to clients. As word gets out about your business, you'll be providing a lot of advice. This could lead to long lines and long wait times among your clients. How are you gonna deal with all this traffic? Well, one option is to clone your booth. That is to open more advice booths, and split the traffic between them. Each booth provides the exact same service, and they each operate independently on a part of the traffic. We just scaled our advice booth across the x-axis. We can scale our node application, even the monolith, by running separate instances of the same application and then splitting the traffic between those instances. We can scale…
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.