AWS Lambda Tenant Isolation with Amazon SQS

Amazon SQS → SQS processor function → Tenant isolated function

This pattern demonstrates AWS Lambda tenant isolation with Amazon SQS fair queues for multi-tenant message processing.

It uses single Amazon SQS for multi-tenant application and isolating messages using MessageGroupId and invoking isolated AWS Lambda environments.

< 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-lambda-tenant-isolation-sam-py

Deploy

sam buildsam deploy --guided


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: sam delete.

Additional resources

Created by:

Mitesh Purohit

Mitesh Purohit

Sr Solution Architect, AWS

Follow on LinkedIn

Ricardo Marques

Ricardo Marques

Sr Serverless Specialist, AWS

Follow on LinkedIn