英文:
is "Wait for callback" pattern in AWS step functions the only way to perform async tasks? Can I use a webhook instead?
问题
"Wait for callback"模式在AWS步骤函数中是执行异步任务的唯一方式吗?
我可以直接使用Webhook,当Webhook端点触发时,它是否可以触发步骤函数继续流程?
英文:
is "Wait for callback" pattern in AWS step functions the only way to perform asynchronous tasks?
Can I directly use a webhook instead where when a the webhook endpoint it can trigger the step function to continue with the flow?
答案1
得分: 1
Wait for a Callback with the Task Token / .waitForTaskToken 是 Step Functions 的正确功能,但它不提供本机的 Webhook 接口。您需要在此功能之上构建该接口。虽然不是 Webhook,但此博客文章演示了如何将 .waitForTaskToken 与外部系统一起使用。
我怀疑这可能不符合您的需求,但对于某些 AWS 服务 API 操作,您可以使用运行作业 / .sync 服务集成模式。使用此模式,异步跟踪和完成由系统管理。您可以在此处找到支持 .sync 的优化集成列表。
英文:
Wait for a Callback with the Task Token / .waitForTaskToken is the right feature of Step Functions, but it does not provide a native webhook interface. You would need build that interface on top of this feature. While not webhooks, this blog post demonstrates using .waitForTaskToken with an external system.
I suspect this does not fit your needs, but for select AWS service API Actions, you can use the Run a Job / .sync service integration pattern. With this pattern, the asynchronous tracking and completion is managed for you. You can find the list of Optimized Integrations that support .sync here.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论