(FaaS) is suitable when load is bursty and you prefer a “pay-per-use” model, and then cold-start trade-offs are acceptable.

Industry

Serverless as provided by cloud providers is when the provider handles all backend infrastructure allowing develops to focus solely on what would run on invocation

Serverless Functions

  • Implement one simple functionality
  • Is triggered by an event
  • Are stateless
  • Are short-running

Compared to Microservices, serverless changes the component lifecycles and connectors. Functions are called by event triggers and state is externalized to databases and such. This is a good large for event-driven tasks.

Examples