Node.js8 min read
Node.js Streams: Processing Large Data
Don't Buffer, Stream!
Reading a 1GB file into memory? Bad idea. Streams allow you to process data piece by piece.
Node.js has four types of streams:
- Readable
- Writable
- Duplex
- Transform
Piping streams is one of the most powerful features in Node.js.