Amazon SQS FIFO queue with controlled delay

Amazon SQS → AWS Lambda → Amazon SQS

Amazon SQS FIFO queue with delay using AWS Lambda and Amazon DynamoDB

This pattern shows how to introduce a delay between processing messages while maintaining order from an individual client. The message is sent sequentially to the downstream service for processing to minimize the consequences of unordered events.

< 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/sqs-fifo-delayed-queue-dynamodb

Deploy

cdk deploy


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: cdk destroy.

Created by:

Shaun Guo

Shaun Guo

Shaun is a Senior Technical Account Manager at Amazon Web Services based in Australia

Follow on LinkedIn

Robbie Cooray

Robbie Cooray

Robbie is a Senior Solutions Architect at Amazon Web Services based in Australia

Follow on LinkedIn