You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a use case where I need to support response streaming within python lambdas. I currently rely on awslambdaric as the lambda runtime and am wondering if there are any plans to support response streaming before I try to look for another solution? Thanks in advance!
Reacted by Pete Eigel, Ethan Shen, Jordyn Hanne, eric-brady, Cole Winstanley and Jay Koutavas
Hi all, thanks for reaching out and very sorry about the delay.
Supporting streaming for Python in this package is not in our current roadmap, but this is supported by the Web Adapter.
Here are some links to help you set it up:
Activity
devesch commentedon Nov 6, 2023
I'd like to see the streaming response in python too!!
pprados commentedon Dec 15, 2023
With tools like LLM, the support is important. Else, it's not possible to use a lambda to return a stream of text.
nicolasvo commentedon Jul 9, 2024
@pprados aws-lambda-web-adapter enables response streaming from a python lambda.
I implemented an example: https://github.com/nicolasvo/ollama-lambda/tree/master/lambda (see Dockerfile.fastapi and
main.py).
However, this is done without lambda function handler. So if you need it, it might not be a solution.
limcheekin commentedon Jul 13, 2024
@nicolasvo Thanks for sharing. Unfortunately I don't have time to look into it now as I'm working on higher priorities task.
DominicCabral commentedon Apr 30, 2025
I have a use case where I need to support response streaming within python lambdas. I currently rely on awslambdaric as the lambda runtime and am wondering if there are any plans to support response streaming before I try to look for another solution? Thanks in advance!
maxday commentedon Sep 8, 2025
Hi all, thanks for reaching out and very sorry about the delay.
Supporting streaming for Python in this package is not in our current roadmap, but this is supported by the Web Adapter.
Here are some links to help you set it up:
I'll close for now, but feel free to reopen if you still have questions.
Thanks
zhibek commentedon May 17, 2026
It looks like streaming is now on the roadmap for the Python runtime and being worked on:
aws/aws-lambda-roadmap#39
(This Github issue is one of the main hits when searching for Lambda Python response streaming so signposting here)
gtontini-vem commentedon Oct 14, 2026
@zhibek Pushed back on "Researching" stage