amazon-web-services - AWS Step Function 可以描述这种数据流吗?
问题描述
它无法Parallel State
在 AWS Step Function 中描述。
B 和 C 应该是平行的。
C 向 D 和 E 发送消息。
D 和 E 应该是平行的。
解决方案
{
"StartAt": "A",
"States": {
"A": {
"Type": "Pass",
"Next": "Parallel State 1"
},
"Parallel State 1": {
"Type": "Parallel",
"Branches": [{
"StartAt": "B",
"States": {
"B": {
"Type": "Pass",
"End": true
}
}
},
{
"StartAt": "C",
"States": {
"C": {
"Type": "Pass",
"End": true
}
}
}
],
"Next": "Parallel State 2"
},
"Parallel State 2": {
"Type": "Parallel",
"Branches": [{
"StartAt": "D",
"States": {
"D": {
"Type": "Pass",
"End": true
}
}
},
{
"StartAt": "E",
"States": {
"E": {
"Type": "Pass",
"End": true
}
}
}
],
"Next": "F"
},
"F": {
"Type": "Pass",
"End": true
}
}
}
推荐阅读
- python - Pip 无法从文件路径或其他任何地方工作
- mysql - 在'on子句'中续集未知列''
- apache-spark - 有没有办法区分同名的两列(非连接)
- python-3.x - SSD 可以根据特定部分对图像进行分类吗?
- shake-build-system - 如果源文件被删除,如何删除摇动产生的依赖文件
- python - 在pycharm中安装beautifulsoup后导入错误
- operating-system - 设置进程状态
- python - AWS Glue - Boto3 创建触发器问题
- angular - 此条件将始终返回 'false',因为类型 'string' 和 '() => string' 没有重叠
- android - 从firebase检索值并将它们提交到列表视图的Android问题