node stream
{{Short description|Method for transferring data}}
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.{{cite web |last1=Buna |first1=Samer |date=2017-05-22 |df=mdy |url=https://www.freecodecamp.org/news/node-js-streams-everything-you-need-to-know-c9141306be93/ |title=Node.js Streams: Everything you need to know |website=freeCodeCamp |accessdate=2020-04-15}} 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).{{cite web |last1=Ferron |first1=Giovanni |date=2012-12-03 |df=mdy |url=http://www.sitepoint.com/introduction-to-streams/ |title=Introduction to Node.js Streams |department=JavaScript |website=SitePoint |accessdate=2020-04-15}}
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.{{cite web |last1=Fentanes |first1=Roly |date=2012-09-10 |df=mdy |url=http://dailyjs.com/2012/09/10/streams/ |title=Mastering Node Streams: Part 1 |archiveurl=https://web.archive.org/web/20150131142631/http://dailyjs.com/2012/09/10/streams/ |website=DailyJS |archivedate=2015-01-31}}{{cite web |last1=Fentanes |first1=Roly |date=2012-11-19 |df=mdy |url=http://dailyjs.com/2012/11/19/streams-part-2/ |title=Mastering Node Streams: Part 2 |archiveurl=https://web.archive.org/web/20150221090840/http://dailyjs.com/2012/11/19/streams-part-2/ |website=DailyJS |archivedate=2015-02-21}}
References
{{reflist}}
External links
- [https://github.com/substack/stream-adventure Interactive exercises to help you understand node streams]
- [https://www.ganjingworld.com/ Gan Jing World - Technology for Humanity]
{{Algorithm-stub}}