Content-based message router with Amazon SNS and Amazon SQS filters

Amazon SNS → Amazon SQS

Create an SNS topic that filters content using a set of SQS queues based on configurable critiria.

This CDK project showcases the creation of a message content-based routing pattern using Amazon SNS and Amazon SQS.
The stackconfiguration.json file dynamically defines the number of queues and filters, allowing easy adaptation for specific requirements.
The architecture follows the Content-based message router integration pattern as described in the Integration Patterns book.
Content can be filtered based on attributes or message body, providing complete flexibility.

< 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/sns-sqs-message-content-router-cdk

Deploy

cdk deploy


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: cdk destroy.

Created by:

Raffaele Garofalo

Raffaele Garofalo

Raffaele Garofalo (Raf) is a Senior Solutions Architect at AWS and member of the AWS Serverless TFC (Technical Field Communities).

Follow on LinkedIn