Select your cookie preferences

We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.

Scatter-Gather pattern using AWS Lambda and Amazon DynamoDB

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.

GitHub icon Visit the GitHub repo for this workflow.

< Back to workflows

Download

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

Jim Hanmer

Presented by Jim Hanmer

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

Follow on LinkedIn