Courses / Auto‑Scale and Load‑Balance a Node.js App on AWS
Lesson 6 of 9

Hands‑On: Build a Load‑Balanced Multi‑Instance Setup

6
▶

Video by Rahul Wagh on YouTube · 31 min. We did not make this video and we do not host it — watching it here still counts as a view for the creator.

Create a launch template that installs Node.js and pulls your repo on boot, then build an Auto Scaling group (ASG) with a minimum of 2 instances. Attach the ASG to the previously created target group. A frequent error is forgetting to open port 3000 in the instance’s security group, which makes the ALB health checks fail.

After the ASG is active, test the load balancer URL and observe that requests are served by different instances (check instance IDs in the response). This mirrors how production services handle traffic spikes.

Start learning free

Sign in with your email, Google or GitHub. No password to remember. The same account carries your progress, your certificates and anything else you do with Nexgino later.

Sign in to continue

It takes about fifteen seconds.