← 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
- Instagram
- Image processing — Create thumbnails and resized versions
- URL shortener
- Expiry cleanup — Deletes expired links in the background
- Pastebin
- Expiry cleanup — Deletes expired pastes
- AstroTalk
- Chart computation — Birth charts from date, time and place