Process Amazon SQS records with AWS Lambda (Java)

Amazon SQS → AWS Lambda

This pattern shows how to process Amazon SQS messages using AWS Lambda.

The AWS SAM template deploys an AWS Lambda function, an Amazon SQS queue, a dead-letter SQS queue, and the IAM permissions required to run the application. Lambda polls the SQS queue and invokes the Lambda function when new messages are available.

< Back to all patterns
AWS Top Pick

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-lambda-java-sam

Deploy

sam buildsam deploy --guided


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: sam delete.

Created by:

Julian Wood

Julian Wood

I help developers and builders learn about and love how serverless technologies can transform the way they build and run applications.

Follow on LinkedIn