# What is autoscaling & serverless?

* Autoscaling automates horizontal scaling to ensure that the number of workers is proportional to the load on the system

#### Technologies that allow us to scale this way:

<figure><img src="https://3885248957-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoE4wMO1dMVDOGDjh0En7%2Fuploads%2FIS0hWm3qzMLiCPIreYbD%2Fimage.png?alt=media&#x26;token=68704718-fe9c-4919-934c-3b321509fd3b" alt=""><figcaption></figcaption></figure>

### Serverless vs Autoscaling

* Autoscaling is usually discussed on the timeline of \~1h chunks of work
* If you took the concept of autoscaling and took it to its limit, you'd get serverless
* Serverless: define resources that are quickly started and use them on the timeline of \~100ms

### Use case for serverless:

* Serverless is primarily used for services that are somewhat fast to start and stateless
* You wouldn't run something like a CI run with serverless framework
* BUT you might run something like a webserver or notification service
