17 Scaling up and down: Autoscaling and CloudWatch

This chapter covers

  • Creating an Auto Scaling group with a launch template
  • Using autoscaling to change the number of virtual machines
  • Scaling a synchronous decoupled app behind a load balancer (ALB)
  • Scaling an asynchronous decoupled app using a queue (SQS)

Suppose you’re organizing a party to celebrate your birthday. How much food and drink do you need to buy? Calculating the right numbers for your shopping list is difficult due to the following factors:

  • How many people will attend? You received several confirmations, but some guests will cancel at short notice or show up without letting you know in advance. Therefore, the number of guests is vague.

  • How much will your guests eat and drink? ...

Get Amazon Web Services in Action, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.