Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a reference architecture for relaying messages between accounts for multi-tenant SaaS platforms #3479

Open
timmattison opened this issue Dec 17, 2021 · 0 comments

Comments

@timmattison
Copy link
Contributor

Multi-tenant SaaS platforms may want to use multiple AWS accounts to isolate their customers from "noisy neighbors". This architecture shows how to send messages from IoT Core in one account to another.

In the producer account it utilizes the IoT Core rules engine and drops messages into an SQS queue.

In the consumer account it utilizes a Lambda function and the recently released feature to allow a Lambda function to be triggered from an SQS queue in another account.

This design can be launched a second time with the accounts reversed to allow for bidirectional communication.

Using SQS as a buffer prevents account limits in one account from impacting the other. If a producer causes the consumer's account to receive a "Rate Exceeded" error the consumer can temporarily disable the event source mapping until the issue is resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant