Skip to main content

Scaling a MEAN App in Lightsail Using App Tiers

Hands-On Lab

 

Photo of Adrian Cantrill

Adrian Cantrill

Training Architect

Length

01:30:00

Difficulty

Intermediate

In this learning activity, we will implement the MEAN stack using a multi-instance architecture. We will then scale the architecture, first by separating the app and database tiers, and then by scaling the app tier using a load balancer. The goal of this learning activity is to gain experience with: Creating a Lightsail instance complete with a pre-installed stack Using a launch script to perform advanced configuration Interacting with an on-instance MongoDB Connecting to an instance to configure a MEAN-based application Application testing and verification Using multi-instance applications Using snapshots to clone instances Using load balancers to enable mass scaling #### Helpful Links: https://pm2.io/doc/en/runtime/overview/ https://github.com/linuxacademy/aws-lightsail-deep-dive/blob/master/Scenario3/learning_activity_2/frontendlaunch.sh https://github.com/linuxacademy/aws-lightsail-deep-dive/blob/master/Scenario3/learning_activity_2/mongolaunch.sh

What are Hands-On Labs?

Hands-On Labs are scenario-based learning environments where learners can practice without consequences. Don't compromise a system or waste money on expensive downloads. Practice real-world skills without the real-world risk, no assembly required.