← Back to Blogs
Node.js8 min read

Node.js Streams: Processing Large Data

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:

  1. Readable
  2. Writable
  3. Duplex
  4. Transform

Piping streams is one of the most powerful features in Node.js.