Node stream

From Wikipedia, the free encyclopedia

A node stream is a method of transferring large amounts of data on mobile devices or websites (such as uploading detailed photographs) by breaking the file or data down into manageable chunks.[1] The chunks of data do not use as much computer memory, so they are less likely to slow down the device, allowing the user to do other things on it whilst waiting for the file transfer to complete.

In technical terms, in Node.js a node stream is a readable or writable continuous flow of data that can be manipulated asynchronously as data comes in (or out).[2]

This API can be used in data intensive web applications where scalability is an issue.

A node stream can be many different things: a file stream, a parser, an HTTP request, a child process, etc.[3][4]

References[edit]

  1. ^ Buna, Samer (May 22, 2017). "Node.js Streams: Everything you need to know". freeCodeCamp. Retrieved 2020-04-15.
  2. ^ Ferron, Giovanni (December 3, 2012). "Introduction to Node.js Streams". JavaScript. SitePoint. Retrieved 2020-04-15.
  3. ^ Fentanes, Roly (September 10, 2012). "Mastering Node Streams: Part 1". DailyJS. Archived from the original on 2015-01-31.
  4. ^ Fentanes, Roly (November 19, 2012). "Mastering Node Streams: Part 2". DailyJS. Archived from the original on 2015-02-21.

External links[edit]