[{"data":1,"prerenderedAt":67},["ShallowReactive",2],{"pattern-apigw-sqs-terraform":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":11,"deploy":13,"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":61,"testing":62,"videoId":6,"__hash__":66},"patterns\u002Fpatterns\u002Fapigw-sqs-terraform.json","Amazon API Gateway HTTP API to Amazon SQS",null,{"headline":8,"text":9},"Cleanup",[10],"Delete the stack: \u003Ccode>terraform destroy\u003C\u002Fcode>.",[12],"content\u002Fcontributors\u002Fahmad-aboushady.json",{"text":14},[15,16],"terraform init","terraform apply","Create an Amazon API Gateway HTTP API that integrates with an Amazon SQS queue.","json","Terraform",{"template":21},{"projectFolder":22,"repoURL":23,"templateURL":24,"templateFile":25},"apigw-sqs-terraform","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fapigw-sqs-terraform","serverless-patterns\u002Fapigw-sqs-terraform","main.tf",{"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","API Gateway",{"x":42,"y":38,"service":43,"label":44},80,"sqs","SQS",{"from":46,"to":47,"label":48},"icon1","icon2","",{"headline":50,"bullets":51},"Additional resources",[52,55,58],{"text":53,"link":54},"Working with HTTP APIs","https:\u002F\u002Fdocs.aws.amazon.com\u002Fapigateway\u002Flatest\u002Fdeveloperguide\u002Fhttp-api.html",{"text":56,"link":57},"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":59,"link":60},"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","patterns\u002Fapigw-sqs-terraform",{"headline":63,"text":64},"Testing",[65],"See testing in the README.md file in the repo.","AwGvl5pF_4IdDF85ppHt6bi1jVSofQWmNxTNOixdYHo",1779273333306]