Files
nexus/wiki/concepts/Step-Functions.md
2026-04-20 00:02:56 +08:00

40 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "Step Functions"
type: concept
tags:
- AWS
- Serverless
- Orchestration
- Workflow
date: 2024-09-03
---
## Definition
Step Functions步进函数是 AWS 无服务器工作流服务,基于状态机编排多个 AWS 服务的业务流程。通过可视化工作流协调分布式应用程序和微服务的组件。
## Two Flavors
- **Standard Workflows标准工作流**
- 长期运行(最多 1 年)
- 精确一次执行
- 每秒最多 2000 次执行
- **Express Workflows快速工作流**
- 短期运行(最多 5 分钟)
- 至少一次执行
- 每秒最多 100000 次执行
- 面向事件驱动工作负载
## Key Concepts
- **State Machine状态机**:定义工作流逻辑的结构
- **States状态**:工作流中的步骤,包括 Pass、Task、Choice、Wait、Parallel、Map 等
- **Transitions转换**:状态之间的流向控制
## Use Cases
- 顺序处理ETL 流程、数据处理
- 并行处理:批量数据处理
- 分支逻辑:条件分支处理
- 人类审批:集成审批工作流
## Aliases
- AWS Step Functions
- Step Functions 状态机