Concept Flow - Buffer and streams relationship
Data source (file, network)
Readable Stream receives data chunks
Chunks stored temporarily in Buffer
Data processed or passed on
Writable Stream outputs data
Data destination (file, network)
Data flows from a source into a readable stream, which receives chunks stored in buffers. These buffers hold data temporarily before it is processed or sent to a writable stream that outputs to a destination.