[{"data":1,"prerenderedAt":65},["ShallowReactive",2],{"pattern-sns-sqs-fanout":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":55,"s3URL":6,"services":6,"stem":60,"testing":61,"videoId":6,"__hash__":64},"patterns\u002Fpatterns\u002Fsns-sqs-fanout.json","Amazon SNS to Amazon SQS fanout pattern",null,{"text":8},[9],"\u003Ccode>sam delete\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Fbiswanath-mukherjee.json",{"text":13},[14],"sam deploy --guided","Fanout pattern using Amazon SNS and Amazon SQS. Subscription filters are used to route SNS topics to the the correct SQS queue.","json","AWS SAM",{"template":19},{"repoURL":20,"templateURL":21,"projectFolder":22,"templateFile":23},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fsns-sqs-fanout","serverless-patterns\u002Fsns-sqs-fanout","sns-sqs-fanout","template.yaml",{"headline":25,"text":26},"How it works",[27,28],"Three SQS queues subscribe to the SNS topic. The topic routing logic is defined through the subscription filter policy.","The \u003Cstrong>AllMetricsSqsQueue\u003C\u002Fstrong> queue receives all the messages. The \u003Cstrong>TemperatureSqsQueue\u003C\u002Fstrong> queue receives \u003Ci>Temperature\u003C\u002Fi> messages and the \u003Cstrong>HumiditySqsQueue\u003C\u002Fstrong> queue receives \u003Ci>Humidity\u003C\u002Fi> messages.","YAML","200",{},{"icon1":33,"icon2":38,"icon3":43,"icon4":45,"line1":47,"line2":51,"line3":53},{"x":34,"y":35,"service":36,"label":37},20,45,"sns","Amazon SNS",{"x":39,"y":40,"service":41,"label":42},80,15,"sqs","Amazon SQS",{"x":44,"y":35,"service":41,"label":42},65,{"x":39,"y":46,"service":41,"label":42},75,{"from":48,"to":49,"label":50},"icon1","icon2","",{"from":48,"to":52,"label":50},"icon3",{"from":48,"to":54,"label":50},"icon4",{"bullets":56},[57],{"text":58,"link":59},"Common Amazon SNS scenarios","https:\u002F\u002Fdocs.aws.amazon.com\u002Fsns\u002Flatest\u002Fdg\u002Fsns-common-scenarios.html","patterns\u002Fsns-sqs-fanout",{"text":62},[63],"See the GitHub repo for detailed testing instructions.","zA_HUReK4ShmAE8rQTU8KcM9yw2dMGGXUyQVW-lo32E",1781606117006]