[{"data":1,"prerenderedAt":61},["ShallowReactive",2],{"pattern-apigw-sqs-sam":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":12,"deploy":14,"description":17,"extension":18,"framework":19,"gitHub":20,"highlight":6,"introBox":26,"language":32,"level":33,"meta":34,"patternArch":35,"resources":49,"s3URL":6,"services":6,"stem":55,"testing":56,"videoId":6,"__hash__":60},"patterns\u002Fpatterns\u002Fapigw-sqs-sam.json","Amazon API Gateway REST API to Amazon SQS",null,{"headline":8,"text":9},"Cleanup",[10,11],"1. Delete the stack: \u003Ccode>sam delete --stack-name STACK_NAME\u003C\u002Fcode>.","2. Confirm the stack has been deleted: \u003Ccode>aws cloudformation list-stacks --query \"StackSummaries[?contains(StackName,'STACK_NAME')].StackStatus\"\u003C\u002Fcode>",[13],"content\u002Fcontributors\u002Fabdul-waheed.json",{"text":15},[16],"sam deploy --guided","Create an Amazon API Gateway REST API that integrates with an Amazon SQS queue.","json","AWS SAM",{"template":21},{"repoURL":22,"templateURL":23,"projectFolder":24,"templateFile":25},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fapigw-sqs-rest","serverless-patterns\u002Fapigw-sqs-rest","apigw-sqs-rest","template.yaml",{"headline":27,"text":28},"How it works",[29,30,31],"In this pattern, called \"Queue based leveling\", a serverless queue is introduced between your API Gateway and your workers, a Lambda function in this case.","The queue acts as a buffer to alleviate traffic spikes and ensure your workload can sustain the arriving load by buffering all the requests durably.","It also helps downstream consumers to process the incoming requests at a consistent pace.","Integration","100",{},{"icon1":36,"icon2":41,"line1":45},{"x":37,"y":38,"service":39,"label":40},20,50,"apigw","Amazon API Gateway",{"x":42,"y":38,"service":43,"label":44},80,"sqs","Amazon SQS",{"from":46,"to":47,"label":48},"icon1","icon2","",{"headline":50,"bullets":51},"Additional resources",[52],{"text":53,"link":54},"Amazon API Gateway - Rest API to AWS Services","https:\u002F\u002Fdocs.aws.amazon.com\u002Fapigateway\u002Flatest\u002Fdeveloperguide\u002Fapigateway-rest-api.html","patterns\u002Fapigw-sqs-sam",{"headline":57,"text":58},"Testing",[59],"See the repo for detailed testing notes.","1y7H4DVWf6O-vzg4rlRczYH1p6Zmne4HK2m94eG0xAs",1779273333293]