Skip to content

Support request and response streaming #2

Open
@assafmo

Description

@assafmo

We want to read a request line, execute the query, flush the response and continue to the next request line. This will prevent huge requests to buffer in the application's RAM.

The native go http server closes the request body after the first byte is flushed to the response.
So to flush the response as soon as possible we need to read the entire request, and to read the request line by line we need to buffer the entire response.
In both situations huge requests or responses will cause huge RAM usage.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions