Primitive

Function

Event-driven, ephemeral compute that runs a single piece of code on demand, with no server to manage.

Also called "serverless" or FaaS.

Description

The serverless function services (AWS Lambda, GCP Cloud Functions, Azure Functions) share the same core model: event- or HTTP-triggered, stateless, scale-to-zero, and billed per invocation and duration. They differ in supported language runtimes, cold-start behaviour, maximum execution time and memory limits, and which native triggers and event sources each integrates with most smoothly. Each is also tied into its own ecosystem of queues, event buses, and identity, so the natural choice usually follows the surrounding stack. To the best of our knowledge none is universally faster or cheaper; the trade-offs depend on workload shape and triggering pattern.

Capabilities

  • Run code in response to events or HTTP requests
  • Scale to zero when idle
  • Per-invocation billing
  • Native integration with queues and event buses

Vendor implementations

Icon-Architecture/64/Arch_AWS-Lambda_64
AWS Lamda
Icon-compute-29
AZ Functions
Icon_24px_Functions_Color
GCP Function

Related primitives