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

Stream instead of buffer results #109

Open
TheSlimvReal opened this issue Aug 3, 2023 · 0 comments
Open

Stream instead of buffer results #109

TheSlimvReal opened this issue Aug 3, 2023 · 0 comments

Comments

@TheSlimvReal
Copy link
Contributor

Normal async/await NodeJS fetch requires to load all data of a request and buffer it.
Using NodeJS streams its possible to read the request line by line and directly forward the results.
The reduces the amount of data that needs to be buffered.
The difficulty is that the results cannot be parsed as plain JSON but need to be adjusted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Triage / Analysis
Development

No branches or pull requests

1 participant