DELAPARRA
Index
Color
NL
Category: Programming paradigms

Stream

Explained by Updated

What is Stream?

Stream: A sequence of values emitted over time. A stream of click events, a stream of price updates, a stream of HTTP responses — all can be processed with the same operators. A stream is a sequence of values that arrive over time, rather than all at once. Click events, live price updates, lines in a growing log file and chunks of a large download are all streams.

Definition source Coders Lingo, CC BY 4.0

Frequently asked questions about Stream

How is Stream used in practice?

The advantage is that you can process each value as it arrives, without waiting for or storing the whole set. That keeps memory use low and lets interfaces respond immediately.

What should you keep in mind with Stream?

Streams appear at every level. Reactive libraries like RxJS treat events as streams with operators for filtering and combining. Node.js and PHP have streams for files and network data. Laravel's lazy collections and streamed responses let you export millions of rows without running out of memory. When data is large or never-ending, thinking in streams is usually the right approach.

At a glance

CategoryProgramming paradigms
Explained by
Updated

More Programming paradigms terms

All terms starting with S

Skills

Download all skills (zip)

Manuals

Related services

Need any help?

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.