[{"data":1,"prerenderedAt":61},["ShallowReactive",2],{"pattern-lambda-streaming-ttfb-write-sam-with-dynamodb":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":10,"deploy":12,"description":15,"extension":16,"framework":17,"gitHub":18,"highlight":6,"introBox":24,"language":28,"level":29,"meta":30,"patternArch":31,"resources":45,"s3URL":6,"services":6,"stem":56,"testing":57,"videoId":6,"__hash__":60},"patterns\u002Fpatterns\u002Flambda-streaming-ttfb-write-sam-with-dynamodb.json","AWS Lambda response streaming incremental Amazon DynamoDB Query results",null,{"text":8},[9],"Delete the stack: \u003Ccode>sam delete\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Fsandeep-kumar-p.json",{"text":13},[14],"sam deploy","This pattern uses AWS Lambda response streaming to stream Amazon DynamoDB results in batches, reducing time-to-first-byte (TTFB).","json","AWS SAM",{"template":19},{"repoURL":20,"templateURL":21,"projectFolder":22,"templateFile":23},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Flambda-streaming-ttfb-write-sam-with-dynamodb","serverless-patterns\u002Flambda-streaming-ttfb-write-sam-with-dynamodb","lambda-streaming-ttfb-write-sam-with-dynamodb","template.yaml",{"headline":25,"text":26},"How it works",[27],"The service interaction in this pattern uses AWS Lambda's response streaming capability to stream data in batches from Amazon DynamoDB. Instead of retrieving all results at once, the Lambda function processes the query incrementally, retrieving and sending results as they become available.","Node.js","200",{},{"icon1":32,"icon2":37,"line1":41},{"x":33,"y":34,"service":35,"label":36},30,50,"lambda","AWS Lambda",{"x":38,"y":34,"service":39,"label":40},60,"dynamodb","Amazon DynamoDB",{"from":42,"to":43,"label":44},"icon1","icon2","Query",{"bullets":46},[47,50,53],{"text":48,"link":49},"Supercharging User Experience with AWS Lambda Response Streaming","https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fapn\u002Fsupercharging-user-experience-with-aws-lambda-response-streaming\u002F",{"text":51,"link":52},"Configure Lambda Function Response Streaming","https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Fconfiguration-response-streaming.html",{"text":54,"link":55},"DynamoDB Read and Write Operations","https:\u002F\u002Fdocs.aws.amazon.com\u002Famazondynamodb\u002Flatest\u002Fdeveloperguide\u002Fread-write-operations.html#read-operation-consumption","patterns\u002Flambda-streaming-ttfb-write-sam-with-dynamodb",{"text":58},[59],"See the GitHub repo for detailed testing instructions.","mE7D0OSVBWGwaMttGSqLdKdFlCyFTf_vdZlzddzeGAA",1778846886795]