Serverless
Infrastructure operations consume team effort even when functions run only on events.
- EventEvent: An event starts a bounded execution.
- ResponsibilityResponsibility: The platform operates infrastructure and runtime.
- LimitLimit: Runtime, concurrency, and dependencies still need design.
Context
Why this is important
Design operation on managed infrastructure with explicit limits.
Design operation on managed infrastructure with explicit limits.
Serverless: inspect the decision
The shop example uses the existing shared database and seven modules. Any added service or deployment model is a hypothetical extension. A hypothetical extension to the example shop sends an event to a serverless invoice function after order acceptance. The function creates the document and stores it in its own storage area; the existing shared shop database and its seven modules remain unchanged. A burst of orders can trigger concurrent starts, so the team limits concurrency and checks broker retries, idempotency, execution budget, and cost per invoice.
This is how you read the picture
- Event Event
- Responsibility Responsibility
- Limit Limit
| Concept | Meaning | Review question |
|---|---|---|
| Event | An event starts a bounded execution. | What triggers the invoice function? |
| Responsibility | The platform operates infrastructure and runtime. | Which runtime limit belongs in the design? |
| Limit | Runtime, concurrency, and dependencies still need design. | Which measurements test operational fit? |
Benefits & limitations
Helps if:
- Design operation on managed infrastructure with explicit limits.
- Check event sources, runtime limits, and billing under load.
Boundaries
- Provider limits and execution costs shift operational effort.
- Cold starts, maximum execution time, and provider coupling must fit the interaction and operating model.
In practice
- Diagram the path from order event to invoice and determine how the trigger handles retries, duplicate delivery, and event schema changes.
- Test a function exceeding its runtime limit and an unavailable storage target; check idempotency, retry behavior, and how failures map to the order.
- Estimate costs for normal and peak load, including invocations, runtime, and storage access, and compare them with a continuously operated alternative.
Read the detailed explanation
Serverless describes a cloud operating model in which a provider manages infrastructure and runtime and supplies capacity largely on demand. Teams configure functions, event sources, and services instead of operating server instances.
Architecture responsibilities remain: runtime limits, cold starts, concurrency, permissions, observability, and cost determine fit. Serverless can include functions and databases; it means neither execution without servers nor an automatically event-driven design.
The shop example uses the existing shared database and seven modules. Any added service or deployment model is a hypothetical extension. A hypothetical extension to the example shop sends an event to a serverless invoice function after order acceptance. The function creates the document and stores it in its own storage area; the existing shared shop database and its seven modules remain unchanged. A burst of orders can trigger concurrent starts, so the team limits concurrency and checks broker retries, idempotency, execution budget, and cost per invoice. serverless and skalierung help compare this decision with adjacent concerns.
Check your understanding
Test yourself in three stages
ReadingCheck in the picture
What triggers the invoice function?
View the solution with justification
An order event invokes the managed function.
ApplyingTransferred to a new situation
Which runtime limit belongs in the design?
View the solution with justification
Maximum execution time together with retry and idempotency behavior.
EvaluateWeighing an alternative
Which measurements test operational fit?
View the solution with justification
Cold-start latency, execution time, event failures, and cost per invocation.
Explore further
These building blocks continue the thoughts of this page.
References
- Serverless functions (opens in new tab)Describes use cases and constraints of serverless functions.
- Serverless Applications Lens (opens in new tab)AWS framework for designing and operating serverless applications.
- Azure Functions overview (opens in new tab)Primary documentation for event-driven functions and scaling.