Reputation: 7686
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?
Upvotes: 0
Views: 1948
Reputation: 2199
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.
Upvotes: 2