Tagged articles

Stream

103 articles · Page 2 of 2
Meituan Technology Team
Meituan Technology Team
Jul 15, 2016 · Backend Development

Understanding Node.js Stream API: Types, Back‑Pressure, and Object Mode

The article explains Node.js’s Stream API by detailing the four core stream classes—Readable, Writable, Duplex, and Transform—showing how to implement them, manage back‑pressure, enable objectMode, and apply these concepts in real‑world tools like Gulp, Browserify, and a Git‑changelog generator.

DuplexNode.jsObjectMode
0 likes · 6 min read
Understanding Node.js Stream API: Types, Back‑Pressure, and Object Mode
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.

Backend DevelopmentDuplexNode.js
0 likes · 9 min read
Understanding Node.js Stream API: Types, Back‑Pressure, and Practical Usage