Buffers and Streams in Node.js

Stream is let us start using the data before fully read.

Normally, there are two ways to read the big file, one is we could wait until all of it has been read. But this could take a very long time.

The other is pass a bit of data through a stream. Small chunks of data are packaged up into a buffer and then sent down the stream every time the buffer filled.

Full course:

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store