サービス · Application Integration · CLF-C02 の発展
AWS Step Functions
Standard or Express, the state types, retries and Catch, callbacks, and when it beats chaining Lambda or SQS.
このレッスンはまだ翻訳されていないため、英語で表示しています。
クラウドプラクティショナーで学んだこと
- Step Functions orchestrates services as a workflow, called a state machine.
- It handles branching, retries and waits, so the code in each step stays small.
- Standard workflows run long. Express workflows run short and at high volume.
Run time
- Standard
- Up to 1 year
- Express
- Up to 5 minutes
Run semantics
- Standard
- Exactly once
- Express
- At least once (async), at most once (sync)
History
- Standard
- 90 days, in Step Functions
- Express
- In CloudWatch Logs
Billing
- Standard
- State transitions
- Express
- Runs, duration, memory
Callbacks and .sync
- Standard
- Yes
- Express
- No
Use for
- Standard
- Long or non-repeatable work
- Express
- Short, high-volume, repeatable work
| Compare | Standard | Express |
|---|---|---|
| Run time | Up to 1 year | Up to 5 minutes |
| Run semantics | Exactly once | At least once (async), at most once (sync) |
| History | 90 days, in Step Functions | In CloudWatch Logs |
| Billing | State transitions | Runs, duration, memory |
| Callbacks and .sync | Yes | No |
| Use for | Long or non-repeatable work | Short, high-volume, repeatable work |
1 / 2
Run time
- Standard
- Up to 1 year
- Express
- Up to 5 minutes
Run semantics
- Standard
- Exactly once
- Express
- At least once (async), at most once (sync)
History
- Standard
- 90 days, in Step Functions
- Express
- In CloudWatch Logs
| Compare | Standard | Express |
|---|---|---|
| Run time | Up to 1 year | Up to 5 minutes |
| Run semantics | Exactly once | At least once (async), at most once (sync) |
| History | 90 days, in Step Functions | In CloudWatch Logs |
2 / 2
Billing
- Standard
- State transitions
- Express
- Runs, duration, memory
Callbacks and .sync
- Standard
- Yes
- Express
- No
Use for
- Standard
- Long or non-repeatable work
- Express
- Short, high-volume, repeatable work
| Compare | Standard | Express |
|---|---|---|
| Billing | State transitions | Runs, duration, memory |
| Callbacks and .sync | Yes | No |
| Use for | Long or non-repeatable work | Short, high-volume, repeatable work |
概要
A workflow is a set of states. Task does work. Choice branches on data. Parallel runs branches at the same time. Map runs the same steps for each item in a list. Wait pauses. Pass, Succeed and Fail shape data or end the run. Each Task can have Retry rules (with backoff) and a Catch that sends the run to a recovery state, so error handling lives in the workflow, not in code.
概要
Standard workflows run up to one year, run each step exactly once, keep history for 90 days and are billed per state transition. Express workflows run up to five minutes, handle very high rates, run at least once (asynchronous) or at most once (synchronous), and are billed by runs, duration and memory. Use Express for short, high-volume, repeatable work. Use Standard for orders, approvals and anything long or not repeatable.
概要
A callback pauses a Task until something returns a task token, for example when a person approves. A job-run (.sync) integration waits for a job to finish. Both work only in Standard workflows. Direct service integrations call most AWS services from a state with no Lambda function. A chain of Lambda functions or SQS queues hides the flow and makes errors hard to trace. Step Functions shows every step.
覚えること
- States: Task, Choice, Parallel, Map, Wait, Pass, Succeed, Fail.
- Retry with backoff, and Catch to a fallback state: error handling in the workflow.
- Standard: up to 1 year, exactly once, 90 days of history.
- Express: up to 5 minutes, very high rate, at least once (async), billed per run.
- Callback (task token) and job-run (.sync) work only in Standard.
覚えること
- Direct integrations call AWS services without Lambda glue code.
試験では
- “An order process with an approval that can take days” points to a Standard workflow with a callback.
- “Process 100,000 short events per second” points to an Express workflow.
- “Replace Lambda functions that call each other, and add retries and visibility” points to Step Functions.
- “Run the same steps on every file in a list, in parallel” points to a Map state.
混同しやすいもの
AWS LambdaSize memory, plan concurrency and cold starts, and know how each trigger calls a function.
Amazon Simple Queue Service (Amazon SQS)The settings that decide behavior: visibility timeout, long polling, delay, retention, DLQs, and scaling on queue depth.
Amazon EventBridgeEvent buses, rules, Pipes, Scheduler, archive and replay, and events across accounts and Regions.
このタスクの内容 · 2.1
- Microservices and stateless design
- Multi-tier architectures
- Event-driven and loose coupling patterns
- Serverless application patterns
- AWS Amplify and AWS Device Farm
- Horizontal vs vertical scaling
- Caching strategies
Load Balancing
API Gateway
- When and how to containerize
SQS
SNS
EventBridge
Step Functions
MQ
Secrets Manager
- Choosing purpose-built services
- Choosing object, file or block
Lambda
- Read replicas
ElastiCache
CloudFront
Global Accelerator
Transfer Family
S3
EFS
EBS
Fargate
ECS
EKS