Skip to content
← All components

Compute

Serverless function

Event-triggered code that scales to zero; billed per invocation.

When to use

  • Bursty background jobs
  • Glue between managed services

Pitfalls

  • Cold starts and execution time limits
  • Hard to run long or stateful work

Options by provider

The first option is what diagrams show for that provider.

Amazon Web Services

  • AWS LambdaManaged

Google Cloud

  • Cloud Run functionsManaged

Microsoft Azure

  • Azure FunctionsManaged

Open source / self-hosted

  • KnativeSelf-hosted
  • OpenFaaSSelf-hosted

Used in