18.2 Readable Streams
A readable stream is the starting point in a stream chain, that is, it represents the data source. A readable stream is a wrapper around an input that is placed around the data source to stream from it.
Such stream wrappers already exist for numerous data sources. Node.js has some prebuilt internal stream implementations, for example, for the file system or the network. In addition, numerous third-party providers offer a streaming API for their services that allows you to stream data records from a database or send information over a stream using the WebSocket protocol.
Finally, Node.js provides prebuilt classes that allow you to develop your own streams in just a few steps. The advantage here is that the platform takes ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access