Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support request and response streaming #2

Open
assafmo opened this issue Apr 18, 2019 · 1 comment
Open

Support request and response streaming #2

assafmo opened this issue Apr 18, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@assafmo
Copy link
Owner

assafmo commented Apr 18, 2019

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.

@assafmo
Copy link
Owner Author

assafmo commented Apr 18, 2019

c7e4958

@assafmo assafmo added the enhancement New feature or request label Apr 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant