0

我正在设计一个应该从 API 网关调用的工作流,因为它是一个平台服务,所有用户身份验证和 API 身份验证都由 API 网关处理,我首先考虑使用步进函数,但节流限制仅为每秒 2 个,这还不够我的用例。现在我正在考虑使用节流限制更好的简单工作流程,但我找不到任何显示 API 网关可以像 Stpe 函数一样直接调用 SWF 的文档。鉴于 SWF 支持 HTTP 请求,通过 API 网关调用 SWF StartWorkflowExecution 的最佳方式是什么?

4

2 回答 2

2

为此,您需要使用 AWS SWF SDK(例如JavaScript SDK)编写一个 Lambda 函数来使用startWorkflowExecution.

于 2017-07-23T17:33:11.597 回答
0

Another option would be to use API gateway proxy integration type for AWS service (see the image below).

enter image description here

If you are not passing the request payload in the format required for the startworkflow execution api call make sure to map to it using the api gateway Integration Request

于 2017-07-30T04:17:25.890 回答