Is thee something useful we could get inspiration from, in terms of design pattern? What's stream at all (it's being able to start reading the data before receiving all of it)
and for the record, if we could have a rather quick win at providing a better strategy for downloading very large files...
It's not just about extremely large files, but about streaming data (which does not necessarily involves http downloding a file): https://dev.to/wesleymreng7/processing-massive-amount-of-data-on-demand-without-crashing-nodejs-main-thread-2epl
https://github.com/wesleymreng7/file-stream-loader/tree/main/src