[{"data":1,"prerenderedAt":71},["ShallowReactive",2],{"pattern-apigw-sqs":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":12,"deploy":14,"description":17,"extension":18,"framework":19,"gitHub":20,"highlight":6,"introBox":29,"language":35,"level":36,"meta":37,"patternArch":38,"resources":51,"s3URL":63,"services":64,"stem":65,"testing":66,"videoId":28,"__hash__":70},"patterns\u002Fpatterns\u002Fapigw-sqs.json","Amazon API Gateway HTTP 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\u002Filyas-bakouch.json",{"text":15},[16],"sam deploy --guided","Create an Amazon API Gateway HTTP API that integrates with an Amazon SQS queue.","json","AWS SAM",{"template":21,"payloads":26},{"projectFolder":22,"repoURL":23,"templateURL":24,"templateFile":25},"apigw-sqs-lambda","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fapigw-sqs-lambda","serverless-patterns\u002Fapigw-sqs-lambda","template.yaml",[27],{"headline":28,"payloadURL":28},"",{"headline":30,"text":31},"How it works",[32,33,34],"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.","Node.js","100",{},{"icon1":39,"icon2":44,"line1":48},{"x":40,"y":41,"service":42,"label":43},20,50,"apigw","API Gateway",{"x":45,"y":41,"service":46,"label":47},80,"sqs","SQS",{"from":49,"to":50,"label":28},"icon1","icon2",{"headline":52,"bullets":53},"Additional resources",[54,57,60],{"text":55,"link":56},"Working with HTTP APIs","https:\u002F\u002Fdocs.aws.amazon.com\u002Fapigateway\u002Flatest\u002Fdeveloperguide\u002Fhttp-api.html",{"text":58,"link":59},"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":61,"link":62},"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","https:\u002F\u002Fda-public-assets.s3.amazonaws.com\u002Fpatterns\u002Fapigw-sqs\u002Fcloudformation.yml",{"from":42,"to":46},"patterns\u002Fapigw-sqs",{"headline":67,"text":68},"Testing",[69],"See the repo for detailed testing notes.","ZNJSWoQB81_JLhMeSYCgo_XG70AAFDB2zW8axgqDdl4",1779100518264]