Skip to content
StackDecode
System Design
14. Cloud ArchitectureAnimated

Function as a Service (FaaS)

Run individual functions on demand.

The idea

Code runs in response to events with no server management.

Watch it work

Press play, pause, or step through. Some animations have settings you can change.

ClientAPI gatewayFunctionQueueManaged DBStorage
  • client
  • gateway / proxy
  • service
  • cache
  • data store
  • queue / stream

A request reaches the API gateway.

step:
1/4
at:
Client
1/10

The green dot is a request moving through the system.

Step by step

  1. 1An event triggers
  2. 2The platform runs the function
  3. 3It returns
  4. 4You pay per run

Where it is used

Event handlers and glue code.

Watch out for

Cold starts and execution limits.

Related