Search code examples
amazon-web-servicessynchronousaws-step-functions

Are there Synchronous Standard Step Functions Workflows


Are there Synchronous Standard Step Functions Workflows? Or Synchronous Workflows are only for express step-functions?


Solution

  • Synchronous is only available for Express Workflows. If you want to have your application start an Standard Workflows Execution and continue based on the result, you have three options:

    1. If you are calling this from within another Standard Workflow, you can use the .sync service integration pattern for Step Functions itself.
    2. If you are building in an Event-Driven manner, you can use Execution Status Change Events.
    3. You can add a loop to your code that calls StartExecution, gets the Execution ARN, then periodically calls to get the status, then returns the result. You could even implement that logic in an Express State machine, say building in the logic to break-out with a "still in progress" before the 5-minute timeout for express. Then call that as a Synchronous Express Execution.