September 2024
Beginner to intermediate
985 pages
35h 37m
English
One concept that plays an important role in Node.js is that of streams. This refers to data streams that either read or write data. Advantages of streams compared to other types of input and output include their performance and the option to combine streams very easily.
Overall, Node.js provides four different types of streams:
Readable streams are used to read data from data streams.
With writable streams, on the other hand, it’s possible to write data to data streams.
Duplex streams are those that can be used to both read and write data.
Transform streams in turn build on duplex streams, but they provide a simplified API (see Figure 17.3).
Figure 17.3 Different ...
Read now
Unlock full access