-
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: