Streams helps to compose large systems out of small components which can perform one thing well.
Streams separate concerns because they restrict the implementation surface area into a consistent interface which could be reused.
I/O in node is asynchronous, so interacting with the disk and network involves passing callbacks to functions.
Various types of streams use .pipe() to pair inputs with outputs.
.pipe() is a mere function that takes a readable source stream src: and hooks the output to a destination writable stream dst:
Data Visualisation Aurora
Hadoop and Big Data
Agile and SAFE
New York, NY 10012, US
© Copyright 2018-2020 www.madanswer.com. All rights reserved. Developed by Madanswer.