AWS Step Functions callback pattern using dotnet

Step Functions → Lambda → DynamoDB

Use a task token to signal the completion of a task and pause/resume the workflow execution.

In many workflow-based applications, certain steps require a pause and wait for confirmation from external sources. After receiving the confirmation, the workflow can either resume or terminate the execution. One way to accomplish this is through the use of a callback pattern.
To implement the callback pattern in AWS Step Functions, a task can be defined as a state in the state machine. When the state is executed, a task token is generated and sent to an external process or command. The external process or command can then use the task token to signal the completion of the task and resume the workflow execution.
This pattern can be used in a variety of use cases, such as waiting for a user to approve a transaction or waiting for a third-party API to return data. By using the callback pattern in AWS Step Functions, developers can create more flexible and responsive workflows that can adapt to external events and conditions..

< Back to all patterns

GitHub icon Download this pattern (.zip)

GitHub icon View this pattern on GitHub


Clone repo

git clone https://github.com/aws-samples/serverless-patterns/cd serverless-patterns/sfn-callback-pattern-cdk-dotnet

Deploy

cdk synthcdk deploy


Testing

See the GitHub repo Readme.md for detailed testing instructions.

Cleanup

cdk destroy

Created by:

Uma Shankar

Uma Shankar

Application Development Consultant at AWS Professional Services.

Follow on LinkedIn