[{"data":1,"prerenderedAt":73},["ShallowReactive",2],{"pattern-apigw-rest-api-lambda-python-response-streaming-pattern":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":29,"level":30,"meta":31,"patternArch":32,"resources":51,"s3URL":6,"services":6,"stem":68,"testing":69,"videoId":6,"__hash__":72},"patterns\u002Fpatterns\u002Fapigw-rest-api-lambda-python-response-streaming-pattern.json","Response streaming with Amazon API Gateway Rest API and AWS Lambda",null,{"text":8},[9],"Delete the stack: \u003Ccode>sam delete\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Fyusuf-mayet.json",{"text":13},[14],"sam deploy","Creates an API Gateway REST API and Python Lambda function that provides a streaming response from the LLMs in Amazon Bedrock.","json","AWS SAM",{"template":19},{"repoURL":20,"templateURL":21,"projectFolder":22,"templateFile":23},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fapigw-rest-api-lambda-python-response-streaming","serverless-patterns\u002Fapigw-rest-api-lambda-python-response-streaming","apigw-rest-api-lambda-python-response-streaming","template.yaml",{"headline":25,"text":26},"How it works",[27,28],"This pattern demonstrates how to use an Amazon API Gateway REST API with response streaming to a AWS Lambda Python function.","To enable response streaming with a Lambda Python function, we use Lambda Web Adapter and Fast API.","Python","200",{},{"icon1":33,"icon2":38,"icon3":41,"line1":45,"line2":49},{"x":34,"y":35,"service":36,"label":37},20,50,"apigw","API Gateway REST API",{"x":35,"y":35,"service":39,"label":40},"lambda","AWS Lambda",{"x":42,"y":35,"service":43,"label":44},80,"bedrock","Amazon Bedrock",{"from":46,"to":47,"label":48},"icon1","icon2","",{"from":47,"to":50,"label":48},"icon3",{"bullets":52},[53,56,59,62,65],{"text":54,"link":55},"Responsive APIs with Amazon API Gateway REST API","https:\u002F\u002Fdocs.aws.amazon.com\u002Fapigateway\u002Flatest\u002Fdeveloperguide\u002Fresponse-transfer-mode.html",{"text":57,"link":58},"AWS Lambda response streaming with Python and Lambda Web Adapter","https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Fconfiguration-response-streaming.html",{"text":60,"link":61},"Building responsive APIs with Amazon API Gateway response streaming","https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fcompute\u002Fbuilding-responsive-apis-with-amazon-api-gateway-response-streaming\u002F",{"text":63,"link":64},"Using response streaming with AWS Lambda Web Adapter to optimize performance","https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fcompute\u002Fusing-response-streaming-with-aws-lambda-web-adapter-to-optimize-performance\u002F",{"text":66,"link":67},"FastAPI Response Streaming","https:\u002F\u002Fgithub.com\u002Fawslabs\u002Faws-lambda-web-adapter\u002Ftree\u002Fmain\u002Fexamples\u002Ffastapi-response-streaming-zip","patterns\u002Fapigw-rest-api-lambda-python-response-streaming-pattern",{"text":70},[71],"See the GitHub repo for detailed testing instructions.","N6dtHXuRA934y9dEbXL8jG-1nFEWGXTvcltSPtG_UA0",1779791711477]