Tagged articles
4 articles
Page 1 of 1
Taobao Frontend Technology
Taobao Frontend Technology
Aug 31, 2017 · Backend Development

Mastering Node.js Streams: From Readable to Duplex and Beyond

Explore the inner workings of Node.js streams—including readable, writable, duplex, transform, and pipe—through detailed explanations, code demos, and visual diagrams, revealing how backpressure, flow modes, and internal mechanisms shape data handling in backend development.

DuplexNode.jsStreams
0 likes · 14 min read
Mastering Node.js Streams: From Readable to Duplex and Beyond
Meituan Technology Team
Meituan Technology Team
Jul 15, 2016 · Backend Development

Node.js Stream Internals: Data Production, Consumption, and Back‑pressure

The article explains Node.js stream internals, showing how readable, writable, and transform streams manage data production and consumption, the roles of _read, read, push, and doRead, the two operating modes, and how pipe implements back‑pressure via high‑water marks to ensure memory‑safe, efficient processing.

Node.jsPipeStream
0 likes · 22 min read
Node.js Stream Internals: Data Production, Consumption, and Back‑pressure
Meituan Technology Team
Meituan Technology Team
Jul 8, 2016 · Backend Development

Understanding Node.js Stream API: Types, Back‑Pressure, and Practical Usage

Node.js streams provide four core types—Readable, Writable, Duplex, and Transform—plus an objectMode for arbitrary data, and by using .pipe() they enable flow‑controlled processing with back‑pressure, as illustrated through detailed explanations, Gulp and Browserify case studies, and a hands‑on changelog generator example.

DuplexNode.jsStream
0 likes · 9 min read
Understanding Node.js Stream API: Types, Back‑Pressure, and Practical Usage
Node Underground
Node Underground
Jan 28, 2016 · Backend Development

Mastering Node.js Streams: From Basics to Real-World Applications

This article explains the concept of streams in Unix and Node.js, describes the four stream types, shows how to create and control readable streams with code examples, and demonstrates practical uses such as file serving, piping, and building an HTTP proxy.

Node.jsPipeasynchronous I/O
0 likes · 9 min read
Mastering Node.js Streams: From Basics to Real-World Applications