Step Functions is an AWS orchestration service that allows users to model workflows as state machines using JSON. It provides visual workflows, error handling, and auditing capabilities. The document discusses when Step Functions should be used, such as for complex workflows with multiple steps, when error handling and visibility are important, or for non-technical collaborators. It also notes that while Step Functions has a low cost, it does introduce additional management overhead.
35. @theburningmonk theburningmonk.com
"TaskState": {
"Type": "Task",
"Resource": "arn:aws:lambda:us-east-1:1234556788:function:hello-world",
"Next": "NextState",
"TimeoutSeconds": 300
}
Task
Defaults to 60s, even if function has longer timeout
Performs a task.
36. @theburningmonk theburningmonk.com
"TaskState": {
"Type": "Task",
"Resource": "arn:aws:lambda:us-east-1:1234556788:function:hello-world",
"Next": "NextState",
"TimeoutSeconds": 300
}
Task
Defaults to 60s, even if function has longer timeout
Set this to match your function’s timeout
Performs a task.
37. @theburningmonk theburningmonk.com
"TaskState": {
"Type": "Task",
"Resource": "arn:aws:lambda:us-east-1:1234556788:function:hello-world",
"Next": "NextState",
"TimeoutSeconds": 300
}
Task
Doesn’t have to be Lambda function.
Performs a task.
38. @theburningmonk theburningmonk.com
"TaskState": {
"Type": "Task",
"Resource": "arn:aws:lambda:us-east-1:1234556788:function:hello-world",
"Next": "NextState",
"TimeoutSeconds": 300
}
Task
Doesn’t have to be Lambda function.
Performs a task.
Activity, AWS Batch, ECS task, DynamoDB,
SNS, SQS, AWS Glue, SageMaker
84. @theburningmonk theburningmonk.com
long running workflows
what: workflows that cannot complete in 15 minutes
(Lambda limit).
why: AWS discourages recursive Lambda functions,
Step Functions gives you explicit branching checks,
and can timeout at workflow level.
106. @theburningmonk theburningmonk.com
Backend system was slow and had
timing issue, so they needed to add a
90s delay before processing payment.
Step Functions was the most cost-
efficient and scalable way to
implement this wait.
157. in your
company
flexible datesAmsterdam, July 7-8 London, Sep 24-25 Berlin, Oct 8-9
MON4-week virtual workshop, May 4 - May 29
@theburningmonk theburningmonk.com
theburningmonk.com/workshops
serverless-dusseldorf-2020
€100 off all my workshops