ladderlore
  • 输入服务名称,例如 S3 或 IAM。

服务 · 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.
阅读云从业者课程
Validate order
In stock?
Charge card
SNS
Backorder
yesno
A Choice state sends each order down one branch. Retry and Catch rules sit on each Task.
  • 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
Choose Express only when the work is short and safe to repeat.

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

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
Choose Express only when the work is short and safe to repeat.

是什么

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.