In this post, we will take a look at the problems I faced, and two approaches I followed to solve them. Only one of those approaches took me where I needed to go, and the other ones were wrong but also taught me many things, and this is why I will mention them, too.

Those are the issues we will tackle in this post

  • How to download a very large file using streaming (the more popular but wrong way)
  • How to download a very large file using streaming (the right way)
  • Reading a large file using backpressure (the wrong way, using RxJS)
  • Reading a large file using backpressure (the right way, using NodeJS streams)

#nodejs #programming #javascript

How to Use Streams Efficiently in Node-js
5.50 GEEK