# Serverless functions

A step of the [Cloud application](https://gradus.kazet.blog/tree/cloud-application) tree on Gradus, in the Serving & compute area: HTTP, workers, scaling.

Page: https://gradus.kazet.blog/tree/cloud-application/step/serverless-functions

Extract a suitable piece of the workload into a serverless function that scales to zero between invocations.

Usually comes after: [Container orchestration](https://gradus.kazet.blog/tree/cloud-application/step/container-orchestration).

## Prompt for your AI assistant

```
Identify a stateless, infrequently invoked piece of functionality and extract it into a serverless function (e.g. Lambda or Cloud Functions), with its own deployment config.
```

Every step of the tree: https://gradus.kazet.blog/tree/cloud-application/llms.txt
