Fan-out pattern using Amazon SNS-Amazon SQS filters

Amazon SNS → Amazon SQS → Amazon SQS → Amazon SQS

Creates Amazon SNS topic and Amazon SQS queues with message body based and attribute based filter using configuration file (appSettings.json)

This CDK application demonstrates how to create fan-out pattern using SNS topic and SQS queues using subscription filters.
Number of queues required and type of filter (Message attribute based or message body based) can be defined in appSettings.json (Sample json is provided, replace queue names and filter by conditions as needed).

< 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-fanout-pattern-cdk-dotnet

Deploy

cdk deploy


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: cdk destroy.

Created by:

Vedanayagan Damodaran

Vedanayagan Damodaran

Vedanayagan Damodaran is a Cloud Application Architect at Amazon Web Services.

Follow on LinkedIn