[{"data":1,"prerenderedAt":70},["ShallowReactive",2],{"pattern-sqs-lambda-ddb-sam-ts":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":33,"level":34,"meta":35,"patternArch":36,"resources":55,"s3URL":6,"services":6,"stem":64,"testing":65,"videoId":6,"__hash__":69},"patterns\u002Fpatterns\u002Fsqs-lambda-ddb-sam-ts.json","Throttle Amazon DynamoDB writes with Amazon SQS",null,{"headline":8,"text":9},"Cleanup",[10],"Delete the stack: \u003Ccode>sam delete --stack-name STACK_NAME\u003C\u002Fcode>.",[12],"content\u002Fcontributors\u002Fdmitry-gulin.json",{"text":14},[15,16],"sam build","sam deploy --guided","Preventing Amazon DynamoDB write throttling with an Amazon SQS queue-based buffer","json","AWS SAM",{"template":21},{"repoURL":22,"templateURL":23,"projectFolder":24,"templateFile":25},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fsqs-lambda-ddb-sam-ts\u002F","serverless-patterns\u002Fsqs-lambda-ddb-sam-ts","sqs-lambda-ddb-sam-ts","template.yaml",{"headline":27,"text":28},"How it works",[29,30,31,32],"This code demonstrates how an Amazon SQS queue can be used to buffer records for an Amazon DynamoDB table and mitigate the risk of a client of being throttled.","The SAM template deploys ingress and dead-letter queues, a Lambda function, and the destination DynamoDB table.","The Lambda function will use a partial batch response to return throttled records back to the queue.","The function uses Node.js 18 runtime running on ARM64 processors powered by AWS Graviton.","TypeScript","200",{},{"icon1":37,"icon2":42,"icon3":45,"line1":49,"line2":53},{"x":38,"y":39,"service":40,"label":41},20,50,"sqs","Amazon SQS",{"x":39,"y":39,"service":43,"label":44},"lambda","AWS Lambda",{"x":46,"y":39,"service":47,"label":48},80,"dynamodb","Amazon DynamoDB",{"from":50,"to":51,"label":52},"icon1","icon2","",{"from":51,"to":54,"label":52},"icon3",{"headline":56,"bullets":57},"Additional resources",[58,61],{"text":59,"link":60},"AWS Lambda now supports partial batch response for SQS as an event source","https:\u002F\u002Faws.amazon.com\u002Fabout-aws\u002Fwhats-new\u002F2021\u002F11\u002Faws-lambda-partial-batch-response-sqs-event-source\u002F",{"text":62,"link":63},"Why is my on-demand DynamoDB table being throttled?","https:\u002F\u002Frepost.aws\u002Fknowledge-center\u002Fon-demand-table-throttling-dynamodb","patterns\u002Fsqs-lambda-ddb-sam-ts",{"headline":66,"text":67},"Testing",[68],"See the GitHub repo for detailed testing instructions.","Ei0XnHDOOEUlFWRunRUhulncLfALbub2T-v4LhgsdkA",1778927711707]