Function Composition
ELI5 — The Vibe Check
Function composition in cloud terms means chaining serverless functions together to build complex workflows. Function A's output feeds into Function B, which feeds into Function C. Instead of one massive function, you get a pipeline of small, focused functions. It's like an assembly line — each worker does one thing well.
Real Talk
Function composition is the practice of combining multiple serverless functions into a coordinated workflow. This can be achieved through orchestration (using Step Functions, Durable Functions) or choreography (using events/queues). It enables complex business logic while keeping individual functions small, testable, and independently deployable.
When You'll Hear This
"We compose our order pipeline from 5 Lambda functions orchestrated by Step Functions." / "Function composition keeps each function under 200 lines and single-purpose."
Related Terms
Orchestration
Orchestration is the process of automatically managing, coordinating, and scheduling where your containers run.
Serverless
Serverless doesn't mean there are no servers — it means YOU don't have to think about servers. Someone else manages them, scales them, and patches them.
Workflow Engine
A workflow engine executes a series of steps in a defined order, handling branching, retries, timeouts, and failures.