Course contentsShow
← Cloud and Infrastructure
Lesson 286 of 2,9896. Auto ScalingFree lesson

What is Auto Scaling

Understanding auto scaling as automatic adjustment of compute capacity based on demand and defined conditions.

What is Auto Scaling

What you'll learn: How cloud infrastructure can automatically grow and shrink based on how much it's actually being used.

The Core Idea

Auto Scaling is a cloud feature that automatically adjusts the number of compute resources (like servers or containers) your application uses based on current demand. Instead of manually adding or removing servers when traffic changes, Auto Scaling watches your application and makes these decisions for you based on rules you define.

Think of it like a restaurant that magically adds or removes tables and staff during rush hour, then scales back down during quiet periods — all without a manager intervening.

Why This Matters

Without Auto Scaling, you face two problems:

  1. Under-provisioning: Not enough servers during high traffic → slow performance or crashes
  2. Over-provisioning: Too many servers during low traffic → wasted money on idle resources

Auto Scaling solves both by maintaining just the right capacity at any given moment.

How It Works (Conceptual)

Auto Scaling responds to conditions you define:

  • Scaling Out: When CPU usage exceeds 70%, add 2 more servers
  • Scaling In: When traffic drops below a threshold, remove excess servers
  • Scheduled Scaling: Add capacity every Monday at 9 AM for expected workload

The system continuously monitors metrics (CPU, memory, request count, custom metrics) and compares them against your rules, then automatically launches or terminates resources to match demand.

Real-World Benefit

Imagine an e-commerce site that normally runs 5 servers but needs 50 during Black Friday sales. Auto Scaling handles this expansion and contraction automatically, ensuring customers get fast service while you only pay for what you actually use.

Key Takeaway: Auto Scaling automatically adjusts compute capacity up or down based on demand and conditions you define, optimizing both performance and cost without manual intervention.