is "Wait for callback" pattern in AWS step functions the only way to perform async tasks? Can I use a webhook instead?

huangapple go评论66阅读模式
英文:

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 / .waitForTaskTokenStep 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.

huangapple
  • 本文由 发表于 2023年6月29日 20:22:39
  • 转载请务必保留本文链接:https://go.coder-hub.com/76581025.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定