Skip to content

Support Response Streaming #100

Closed
Closed

Description

@limcheekin

Hi there,

Did the runtime interface client support streaming response as per announced?
https://aws.amazon.com/blogs/compute/introducing-aws-lambda-response-streaming/

If no, appreciate your sharing is there any near-term plan to work on it?

Thank you.

Activity

  1. devesch commented on Nov 6, 2023

    @devesch

    I'd like to see the streaming response in python too!!

  2. pprados commented on Dec 15, 2023

    @pprados

    With tools like LLM, the support is important. Else, it's not possible to use a lambda to return a stream of text.

  3. nicolasvo commented on Jul 9, 2024

    @nicolasvo

    @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.

  4. limcheekin commented on Jul 13, 2024

    @limcheekin
    Author

    @nicolasvo Thanks for sharing. Unfortunately I don't have time to look into it now as I'm working on higher priorities task.

  5. DominicCabral commented on Apr 30, 2025

    @DominicCabral

    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!

  6. maxday commented on Sep 8, 2025

    @maxday
    Member

    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:

    1. https://aws.amazon.com/blogs/compute/using-response-streaming-with-aws-lambda-web-adapter-to-optimize-performance/
    2. https://github.com/awslabs/aws-lambda-web-adapter

    I'll close for now, but feel free to reopen if you still have questions.
    Thanks

  7. zhibek commented on May 17, 2026

    @zhibek

    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)

  8. gtontini-vem commented on Oct 14, 2026

    @gtontini-vem

    @zhibek Pushed back on "Researching" stage

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions