Autoscaling
Definition
Autoscaling adjusts the number of running instances in response to observed load, within configured minimum and maximum limits.
In practice
Autoscaling matches cost to demand and absorbs daily traffic cycles without manual work. The scaling metric should track the real bottleneck: CPU for compute-bound services, queue depth or lag for workers, concurrency for I/O-bound services.
It reacts, it does not predict: new instances take time to boot and warm up, so sudden spikes need headroom or scheduled scaling. Cooldown periods prevent flapping, and downstream dependencies such as databases must be able to handle the extra instances.
Example
A worker pool scales from 2 to 20 instances when queue backlog exceeds 1,000 messages per worker and scales back down after 10 minutes below target.