O'Reilly logo

TypeScript Microservices by Parth Ghiya

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Autoscaling – practical hands on with AWS

Now, we will do autoscaling using AWS autoscaling groups, a load balancer, and configuration properties. So, let's get started. Here is the overall process that we are going to follow:

  1. Create a launch configuration that will run our first-typescript microservice from Chapter 2Gearing up for the Journey, to start the HTTP server
  2. Create an autoscaling group
  1. Create an autoscaling policy to increase instances by two when the CPU load is greater than 20% for a minute
  2. Add the criteria for removing the autoscaling group.
  3. Auto-terminate the instances

So, let's get our hands dirty.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required