[{"data":1,"prerenderedAt":69},["ShallowReactive",2],{"pattern-sns-sqs-fanout-cdk-java":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":10,"deploy":12,"description":15,"extension":16,"framework":17,"gitHub":18,"highlight":6,"introBox":24,"language":29,"level":30,"meta":31,"patternArch":32,"resources":50,"s3URL":6,"services":6,"stem":64,"testing":65,"videoId":6,"__hash__":68},"patterns\u002Fpatterns\u002Fsns-sqs-fanout-cdk-java.json","Amazon SNS to Amazon SQS fanout with filtering",null,{"text":8},[9],"Delete the stack: \u003Ccode>cdk delete\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Fmatt-ridehalgh.json",{"text":13},[14],"cdk deploy","Creates SNS topic and SQS queues with message body based and attribute based filter using configuration file (appSettings.json)","json","AWS CDK",{"template":19},{"repoURL":20,"projectFolder":21,"templateFile":22,"templateURL":23},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fsns-sqs-fanout-cdk-java","sns-sqs-fanout-cdk-java","src\u002Fmain\u002Fjava\u002Fcom\u002Fmyorg\u002FSnsToSqsFanOutStack.java","serverless-patterns\u002Fsns-sqs-fanout-cdk-java",{"headline":25,"text":26},"How it works",[27,28],"This CDK application demonstrates how to create fanout pattern using a SNS topic and SQS queues with 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).","Java","200",{},{"icon1":33,"icon2":38,"icon3":42,"line1":44,"line2":48},{"x":34,"y":35,"service":36,"label":37},30,50,"sns","Amazon SNS topic",{"x":39,"y":34,"service":40,"label":41},70,"sqs","Amazon SQS queue 1",{"x":39,"y":39,"service":40,"label":43},"Amazon SQS queue 2",{"from":45,"to":46,"label":47},"icon1","icon2","filtering",{"from":45,"to":49,"label":47},"icon3",{"bullets":51},[52,55,58,61],{"text":53,"link":54},"Fanout to Amazon SQS queues","https:\u002F\u002Fdocs.aws.amazon.com\u002Fsns\u002Flatest\u002Fdg\u002Fsns-sqs-as-subscriber.html",{"text":56,"link":57},"Amazon SNS message filtering","https:\u002F\u002Fdocs.aws.amazon.com\u002Fsns\u002Flatest\u002Fdg\u002Fsns-message-filtering.html",{"text":59,"link":60},"Message driven","https:\u002F\u002Fdocs.aws.amazon.com\u002Fwhitepapers\u002Flatest\u002Freactive-systems-on-aws\u002Fmessage-driven.html",{"text":62,"link":63},"Introducing payload-based message filtering for Amazon SNS","https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fcompute\u002Fintroducing-payload-based-message-filtering-for-amazon-sns\u002F","patterns\u002Fsns-sqs-fanout-cdk-java",{"text":66},[67],"See the GitHub repo for detailed testing instructions.","losPv96qTGuhNpWurG2ys2VZOS8cosgNDsuw5MDFg84",1778846888137]