Open sanjarcode opened 2 years ago
Reasons for streams:
In other words, merely fetch/express.send is the most trivial case of downloading/uploading. These functions work only with small files.
Apart from the web, streams are an important concept in computing and programming in general - reading, writing of large files, operations on a contiguous block of large size.
All programming I have done until now assumed the data I was working with was small enough to be kept fully into RAM.
Node.js streams
Situation: