stream

Data that flows between a program and a source or destination piece by piece, rather than all at once.

In more detail

Files, network connections, the keyboard and the terminal are all reached through streams. A program holds a handle or stream object, reads or writes through it, and closes it when finished. Processing a stream in chunks keeps memory use small even for very large data.

Example

Node.js has four stream types, all EventEmitters: Readable, Writable, Duplex and Transform.

Related terms

Taught in

References

Certification courses