Scatter-Gather pattern using AWS Lambda and Amazon DynamoDB

Scatter-Gather pattern using AWS Lambda and Amazon DynamoDB with CDK

This workflow demonstrates an implementation of the Scatter-Grather pattern using a Map state to call a set of AWS Lambda functions.
The Scatter-Gather pattern 'broadcasts' a request message to a set of responders, then aggregates the results. A typical use case would be getting a quotation for a flight from a number of different providers. In this case the responders are modelled as AWS Lambda functions.

< Back to all workflows

GitHub icon View this workflow on GitHub


Clone repo

git clone https://github.com/aws-samples/step-functions-workflows-collection/tree/main/scatter-gather/cd step-functions-workflows-collection/scatter-gather

Deploy

1. Deploy the stack: cdk deploy


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

1. Delete the stack: cdk delete.

Additional resources

Created by:

Jim Hanmer

Jim is a Principal Solutions Architect in the Startups team at AWS in London.

Follow on LinkedIn