[{"data":1,"prerenderedAt":75},["ShallowReactive",2],{"pattern-apigw-sns-sqs-cdk":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":13,"deploy":15,"description":18,"extension":19,"framework":20,"gitHub":21,"highlight":6,"introBox":30,"language":35,"level":36,"meta":37,"patternArch":38,"resources":56,"s3URL":6,"services":68,"stem":69,"testing":70,"videoId":29,"__hash__":74},"patterns\u002Fpatterns\u002Fapigw-sns-sqs-cdk.json","Amazon API Gateway to Amazon SNS to Amazon SQS",null,{"headline":8,"text":9},"Cleanup",[10,11,12],"1. Delete the stack: \u003Ccode>npx cdk destroy\u003C\u002Fcode>.","2. Confirm the stack has been deleted: \u003Ccode>aws cloudformation list-stacks --query \"StackSummaries[?contains(StackName,'STACK_NAME')].StackStatus\"\u003C\u002Fcode>.","3. You see a message confirming DELETE_COMPLETE.",[14],"content\u002Fcontributors\u002Fhariram-ronda.json",{"text":16},[17],"cdk deploy","Create an Amazon API Gateway API that integrates with Amazon SNS and Amazon SQS","json","AWS CDK",{"template":22,"payloads":27},{"projectFolder":23,"repoURL":24,"templateURL":25,"templateFile":26},"apigw-sns-sqs-lambda-cdk","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fapigw-sns-sqs-lambda-cdk","serverless-patterns\u002Fapigw-sns-sqs-lambda-cdk","cdk\u002Fsrc\u002Fapp.ts",[28],{"headline":29,"payloadURL":29},"",{"headline":31,"text":32},"How it works",[33,34],"This CDK application demonstrates how to set up a topic-queue-chaining pattern using Amazon SNS and Amazon SQS behind an Amazon API Gateway. This architecture helps in setting up a highly scalable API that can consume messages\u002Fevents, fan them out and process them asynchronously.","This stack deploys an Amazon API Gateway REST API that publishes requests to an SNS Topic. The SNS topic fans out these requests to 2 SQS Queues. Requests in each of these queues are processed by Lambda functions. These functions log the requests to the console [CloudWatch Logs groups].","TypeScript","300",{},{"icon1":39,"icon2":44,"icon3":47,"line1":51,"line2":54},{"x":40,"y":41,"service":42,"label":43},20,50,"apigw","API Gateway",{"x":41,"y":41,"service":45,"label":46},"sns","SNS",{"x":48,"y":41,"service":49,"label":50},80,"sqs","SQS",{"from":52,"to":53,"label":29},"icon1","icon2",{"from":53,"to":55,"label":29},"icon3",{"headline":57,"bullets":58},"Additional resources",[59,62,65],{"text":60,"link":61},"Working with HTTP APIs","https:\u002F\u002Fdocs.aws.amazon.com\u002Fapigateway\u002Flatest\u002Fdeveloperguide\u002Fhttp-api.html",{"text":63,"link":64},"Working with AWS Lambda proxy integrations for HTTP APIs","https:\u002F\u002Fdocs.aws.amazon.com\u002Fapigateway\u002Flatest\u002Fdeveloperguide\u002Fhttp-api-develop-integrations-lambda.html",{"text":66,"link":67},"Using Amazon SQS dead-letter queues to replay messages","https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fcompute\u002Fusing-amazon-sqs-dead-letter-queues-to-replay-messages\u002F",{"from":42,"to":45},"patterns\u002Fapigw-sns-sqs-cdk",{"headline":71,"text":72},"Testing",[73],"See the repo for detailed testing notes.","-PAvQLuApm4GfNUCzOmEfTH2qZG6c1LWkj7Ff0_v01o",1782229678917]