[{"data":1,"prerenderedAt":66},["ShallowReactive",2],{"pattern-lambda-bedrock-response-streaming-rust-cdk":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":31,"level":32,"meta":33,"patternArch":34,"resources":48,"s3URL":6,"services":6,"stem":61,"testing":62,"videoId":6,"__hash__":65},"patterns\u002Fpatterns\u002Flambda-bedrock-response-streaming-rust-cdk.json","AWS Lambda and Amazon Bedrock Response Streaming with Rust",null,{"text":8},[9],"Delete the stack: \u003Ccode>cdk destroy\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Fphil-callister.json",{"text":13},[14],"cdk deploy","Create a Lambda function URL that streams a response from an Amazon Bedrock LLM.","json","AWS CDK",{"template":19},{"repoURL":20,"templateURL":21,"projectFolder":22,"templateFile":23},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Flambda-bedrock-response-streaming-rust-cdk","serverless-patterns\u002Flambda-bedrock-response-streaming-rust-cdk","lambda-bedrock-response-streaming-rust-cdk","cdk\u002Flib\u002Fbedrock-streamer-stack.ts",{"headline":25,"text":26},"How it works",[27,28,29,30],"This pattern exposes a public Lambda Function URL (FURL) endpoint where requests can be made.","When a request is made to the FURL, the Lambda function initiates a streaming request to Amazon Bedrock","using the ConverseStream API. This allows the response from the LLM in Bedrock to start streaming back","to the Lambda function as soon as generation begins, without waiting for the entire response to be ready.","Rust","200",{},{"icon1":35,"icon2":40,"line1":44},{"x":36,"y":37,"service":38,"label":39},20,50,"lambda","AWS Lambda",{"x":41,"y":37,"service":42,"label":43},80,"bedrock","Amazon Bedrock",{"from":45,"to":46,"label":47},"icon1","icon2","",{"bullets":49},[50,53,55,58],{"text":51,"link":52},"Lambda Function URLs","https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Furls-configuration.html",{"text":43,"link":54},"https:\u002F\u002Faws.amazon.com\u002Fbedrock\u002F",{"text":56,"link":57},"Cloud Development Kit","https:\u002F\u002Fdocs.aws.amazon.com\u002Fcdk\u002Fv2\u002Fguide\u002Fhome.html",{"text":59,"link":60},"AWS SDK for Rust","https:\u002F\u002Faws.amazon.com\u002Fsdk-for-rust\u002F","patterns\u002Flambda-bedrock-response-streaming-rust-cdk",{"text":63},[64],"See the GitHub repo for detailed testing instructions.","f7MPUzVPB7XVnHooLhrtRPikI2CgwLSidFO0iyK0yOo",1778846885876]