From the course: Advanced Node.js: Scaling Applications
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Scaling the y-axis - Node.js Tutorial
From the course: Advanced Node.js: Scaling Applications
Scaling the y-axis
- [Instructor] The last axis of the scale cube to cover is the y axis. Scaling along this axis means decomposing your app into microservices. Consider our advice booth, remember, we're kinda good at advice so this booth is gonna be very popular, it has a lot of traffic. It's our job to handle all of this traffic efficiently and decrease the wait times for our clients. One way to do this is to create multiple advice booths. In this scenario, each booth specializes in providing advice on a specific topic. One booth is dedicated to finance advice, another booth is dedicated to love advice, and the third booth is dedicated to wellness advice. The traffic splits itself based upon its needs. But, who are we kidding, the love advice booth is the most popular booth. Since this particular service is receiving more traffic, we can scale it along the x axis by cloning more love advice booths. We can clone as many as we need to handle…
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.