Tagged articles

Stream

106 articles · Page 2 of 2
Java Captain
Java Captain
Apr 20, 2019 · Fundamentals

Understanding Java Lambda Expressions, Functional Interfaces, Streams, and Optional

This article explains how Java 8 lambda expressions let you assign blocks of code to variables, how they are tied to functional interfaces, and demonstrates step‑by‑step simplifications using built‑in functional interfaces, forEach, stream(), method references, and Optional for elegant null handling.

Functional InterfaceJavaJava 8
0 likes · 6 min read
Understanding Java Lambda Expressions, Functional Interfaces, Streams, and Optional
Node Underground
Node Underground
Nov 29, 2018 · Backend Development

Boost Node.js Performance: 8 Proven Techniques for Faster Apps

This article presents eight practical strategies—including upgrading Node.js, leveraging fast-json-stringify, optimizing promises, tuning V8 GC, using streams correctly, and employing node‑clinic tools—to dramatically improve the performance and scalability of Node.js applications.

BenchmarkJSONNode.js
0 likes · 21 min read
Boost Node.js Performance: 8 Proven Techniques for Faster Apps
Java Captain
Java Captain
Aug 19, 2018 · Fundamentals

Performance Comparison of Java forEach, C‑Style Loop, and Stream API

This article examines Java's forEach syntax, C‑style for loops, and Stream API by benchmarking their execution times on large collections, explaining the underlying mechanisms that cause performance differences and identifying the most efficient traversal method for Sets.

LoopPerformanceStream
0 likes · 7 min read
Performance Comparison of Java forEach, C‑Style Loop, and Stream API
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.

BackpressureDuplexNode.js
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.

BackpressureNode.jsPipe
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