# 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="/files/9Hh3BGdbkNa2ab9xN6lM" 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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.arkannis.net/general-concepts/devops/what-is-autoscaling-and-serverless.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
