Auto-scaling is the automatic adjustment of computing capacity, such as the number of servers or containers, to match current demand, adding resources when load rises and removing them when it falls.

Definition
Without auto-scaling, teams have to guess how much capacity they need. Guess too low and the application slows down or fails during a busy period; guess too high and the business pays for servers that sit idle. Auto-scaling replaces the guess with rules. The platform watches metrics such as CPU use, request rate or queue length and changes capacity as they move.
Most auto-scaling is horizontal: adding or removing identical instances of a server, container or function. Vertical scaling, giving an existing instance more CPU or memory, is also possible on some platforms but usually involves a restart and has an upper limit. Cloud providers offer auto-scaling for virtual machines, containers, managed databases and serverless functions, and container platforms such as Kubernetes have their own autoscalers.

How it works
An auto-scaling group or policy defines a minimum and maximum capacity and the rules for moving between them. Target tracking policies keep a metric near a chosen value, for example adding instances whenever average CPU stays above a set threshold. Step policies add or remove a defined number of instances when an alarm fires. Scheduled policies change capacity at known times, such as before business hours.
When the policy calls for more capacity, the platform launches new instances from a template or image, waits for them to pass health checks and registers them with the load balancer. When demand drops, it drains connections from selected instances and terminates them. Cooldown periods prevent the system from adding and removing capacity too rapidly in response to brief spikes.
Some platforms also support predictive scaling, which uses past traffic patterns to add capacity ahead of an expected rise. In container clusters, two layers often work together: one autoscaler adjusts the number of container copies, and another adds or removes the underlying nodes when the cluster runs short of room.
Keep learning
Put it into practice
FAQ
Horizontal scaling adds more instances of a service and spreads traffic across them. Vertical scaling makes a single instance larger with more CPU or memory. Horizontal scaling suits cloud environments and automation better and has no hard ceiling, while vertical scaling is simpler for systems that cannot easily run in parallel, such as some databases.
Partly. Read replicas can often be added automatically to handle more read traffic, and some managed and serverless databases adjust their compute capacity on their own. Scaling writes is harder because data must stay consistent, so it usually involves design choices such as sharding, caching or a database built for distribution.
The terms are closely related. Elasticity is the general ability of a system to grow and shrink with demand. Auto-scaling is the mechanism that achieves it automatically, using policies and metrics to change capacity without a person making each change.
Talk to a solution architect about where it fits in your roadmap.
