It's About Time to Embrace Streams
summary
Shows that streaming a 600 MB file with Node.js drops memory from about 600 MB to roughly 3 MB by using createReadStream / createWriteStream and piping through transform streams. Explains backpressure: write() returns a boolean and you listen for 'drain' to pause/resume. Demonstrates gzip transform, the pipeline utility that auto-destroys on error, and a browser demo (emoji list) built with custom Readable/Transform/Writable classes and webpack that works live.
AI-written summary · about
