Streams

Node Streams Part 1: Readable Streams

7 minute read Published:

A deep dive into readable streams
Whether you know it or not, if you have coded anything in Node.js it is likely that you have used streams. An express server serves streams as its responses and accepts streams as the requests. You can think of a stream as a path for chunked data to travel down. Data is buffered and sent along in chunks, like trucks down a highway. In this way you can send a large amount of data in a manageable way to different processes without sacrificing performance.

Node Streams: an overview

3 minute read Published:

What is a stream? Why would you use one?
Whether you know it or not, if you have coded anything in Node.js it is likely that you have used streams. An express server serves streams as responses and accepts streams as requests. You can think of a stream as a path for chunked data to travel down. Data is buffered and sent along in chunks, like trucks down a highway. In this way you can send a large amount of data in a manageable way to different processes without sacrificing performance.