Tag

streams

0 views collected around this technical thread.

Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Apr 23, 2025 · Backend Development

Efficient Large File Processing in Node.js: Stream, Buffer, and Multithreading Techniques

This article explains how to handle massive HDFS‑derived text and CSV files in Node.js by analyzing memory and CPU bottlenecks, comparing client‑side upload strategies, and presenting synchronous, callback, promise, streaming, and multithreaded worker‑thread solutions with complete code examples.

File I/OMultithreadingNode.js
0 likes · 13 min read
Efficient Large File Processing in Node.js: Stream, Buffer, and Multithreading Techniques
macrozheng
macrozheng
Feb 20, 2025 · Backend Development

Mastering Java 8 Streams: Clean Code Tips and Common Pitfalls

This article explores how Java 8 streams and lambda expressions can make code shorter and more elegant, while highlighting common mistakes such as poor formatting, oversized functions, misuse of Optional, and over‑reliance on parallel streams, and offers practical guidelines for writing readable, maintainable backend code.

JavaOptionalbackend
0 likes · 13 min read
Mastering Java 8 Streams: Clean Code Tips and Common Pitfalls
macrozheng
macrozheng
Sep 9, 2024 · Backend Development

Why Redis Streams Can Replace Kafka for Lightweight Messaging

Redis Streams offer a memory‑efficient, easy‑to‑use message queue that matches many Kafka features, making it a practical alternative for projects that cannot afford the overhead of deploying a full‑blown Kafka infrastructure.

Kafka AlternativeRedisbackend development
0 likes · 7 min read
Why Redis Streams Can Replace Kafka for Lightweight Messaging
FunTester
FunTester
Sep 5, 2024 · Backend Development

Practical Java Streams Techniques: Filtering, Mapping, Reducing, and Grouping

This article introduces five practical Java Streams techniques—including precise filtering, map transformation, aggregation with reduce, and advanced grouping—to help developers write clearer, more efficient backend code, complete with code examples and explanations of each operation.

FilterJavabackend
0 likes · 8 min read
Practical Java Streams Techniques: Filtering, Mapping, Reducing, and Grouping
Java Tech Enthusiast
Java Tech Enthusiast
May 1, 2024 · Fundamentals

Pitfalls of Arrays.asList in Java

Java's Arrays.asList method has three major pitfalls: it cannot directly convert primitive arrays like int[] because of autoboxing limits, it returns a fixed-size list that throws UnsupportedOperationException on modification, and the list shares its backing array so changes to the original array are reflected in the list; using Arrays.stream for boxing or wrapping the result in a new ArrayList avoids these issues.

Arrays.asListJavaProgramming Pitfalls
0 likes · 4 min read
Pitfalls of Arrays.asList in Java
Top Architect
Top Architect
Jan 31, 2024 · Backend Development

Java 8 Functional Interfaces and Stream Operations: A Comprehensive Guide

This article explains Java 8's lambda expressions and functional interfaces, demonstrates common functional interfaces with code examples, and shows how to use Stream API operations such as filter, map, flatMap, collect, max/min, count, reduce, and advanced collectors for efficient backend development.

JavaJava8backend development
0 likes · 14 min read
Java 8 Functional Interfaces and Stream Operations: A Comprehensive Guide
Architecture Digest
Architecture Digest
Jan 25, 2024 · Backend Development

Understanding Java 8 Functional Interfaces and Stream Operations

This article explains Java 8's lambda expressions, functional interfaces, and the Stream API, demonstrating how immutable values and functions enable concise data processing through lazy and eager evaluation, with practical code examples covering predicates, consumers, mapping, filtering, grouping, and reduction.

JavaJava8collectors
0 likes · 12 min read
Understanding Java 8 Functional Interfaces and Stream Operations
Selected Java Interview Questions
Selected Java Interview Questions
Jan 21, 2024 · Backend Development

Java 8 Functional Interfaces and Stream API: Practical Examples and Usage

This article introduces Java 8's lambda expressions, functional interfaces, and the Stream API, explaining key concepts such as lazy and eager evaluation, and demonstrates common stream operations like collect, filter, map, flatMap, max/min, count, and reduce with concrete code examples.

Javabackendcollectors
0 likes · 16 min read
Java 8 Functional Interfaces and Stream API: Practical Examples and Usage
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Nov 18, 2022 · Fundamentals

Understanding Java IO Streams: BIO, Byte and Character Streams, and Practical Read/Write Examples

This article introduces Java's three generations of IO frameworks, explains the differences between blocking BIO, NIO, and NIO2, details byte and character streams, and provides complete example programs for writing to and reading from text files using try‑with‑resources and stream conversions.

BIOIOJava
0 likes · 14 min read
Understanding Java IO Streams: BIO, Byte and Character Streams, and Practical Read/Write Examples
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 18, 2022 · Fundamentals

Understanding Java Lambda Expressions and Functional Interfaces

This article provides a comprehensive guide to Java lambda expressions, covering their syntax, how they map to functional interfaces, differences from anonymous classes, parameter forms, method bodies, variable capture, and method references, with practical code examples for each concept.

Functional InterfaceJavaMethod Reference
0 likes · 14 min read
Understanding Java Lambda Expressions and Functional Interfaces
Architect's Tech Stack
Architect's Tech Stack
Oct 12, 2022 · Fundamentals

Java 8 Functional Interfaces and Stream Operations: Concepts, Examples, and Advanced Collectors

This article introduces Java 8's functional interfaces and lambda expressions, explains immutable values and function composition, demonstrates common stream operations such as collect, filter, map, flatMap, max/min, count, and reduce, and shows how to use advanced collectors like groupingBy, partitioningBy, and joining with practical code examples.

Functional InterfaceFunctional ProgrammingJava
0 likes · 17 min read
Java 8 Functional Interfaces and Stream Operations: Concepts, Examples, and Advanced Collectors
Cognitive Technology Team
Cognitive Technology Team
Aug 31, 2022 · Backend Development

Elegant Handling of Exceptions in Java 8 Lambda Streams Using Vavr's Try

This article explains why Java 8 Lambda‑Streams abort on exceptions, demonstrates the problem with sample code, and shows how to gracefully handle both checked and unchecked exceptions using Vavr's Try wrapper so that stream processing can continue.

Exception HandlingFunctional ProgrammingVavr
0 likes · 5 min read
Elegant Handling of Exceptions in Java 8 Lambda Streams Using Vavr's Try
IT Services Circle
IT Services Circle
Jul 16, 2022 · Fundamentals

Common Java Pitfalls: Equality, Objects.equals, BigDecimal, Streams, Autoboxing, and String Replacement

This article explains six frequent Java pitfalls—including misuse of the == operator with Integer, subtle bugs in Objects.equals, precision loss with BigDecimal constructors, reference sharing in Stream.filter, NullPointerExceptions from autounboxing, and differences between replace, replaceAll, and replaceFirst—providing code examples and best‑practice recommendations.

BigDecimalEqualityJava
0 likes · 12 min read
Common Java Pitfalls: Equality, Objects.equals, BigDecimal, Streams, Autoboxing, and String Replacement
Sanyou's Java Diary
Sanyou's Java Diary
Apr 5, 2022 · Fundamentals

Master Java I/O: From Byte Streams to Object Serialization

This article provides a comprehensive guide to Java I/O, explaining the concepts of input and output streams, distinguishing byte and character streams, detailing node and processing streams, and offering practical code examples for file handling, buffering, conversion, and object serialization.

File I/OI/OJava
0 likes · 22 min read
Master Java I/O: From Byte Streams to Object Serialization
IT Architects Alliance
IT Architects Alliance
Mar 20, 2022 · Backend Development

Implementing Message Queues with Redis: Lists, Streams, and Pub/Sub

This article explains how Redis can be used to build message queues by leveraging List commands with LPUSH/RPOP and BRPOPLPUSH for simple queues, the Stream data type introduced in Redis 5.0 for durable, ordered, consumer‑group‑based queues, and the Pub/Sub model for real‑time broadcasting, while also analyzing the underlying source code structures such as quicklist, radix trees, and stream internals.

PubSubRedisbackend
0 likes · 21 min read
Implementing Message Queues with Redis: Lists, Streams, and Pub/Sub
Java Captain
Java Captain
Mar 12, 2022 · Backend Development

Building a Tree Structure from a Flat List Using Java 8 Streams

This article demonstrates how to retrieve flat menu data from a database into a List, then use Java 8 Stream operations and recursive methods to assemble a hierarchical tree structure, printing the result as JSON for verification.

JavaTree Structurebackend
0 likes · 4 min read
Building a Tree Structure from a Flat List Using Java 8 Streams
macrozheng
macrozheng
Sep 30, 2021 · Backend Development

Master Clean Java 8 Stream Code: Practical Tips for Readable Lambdas

This article explains how to write concise, readable Java 8 Stream and Lambda code by using proper line breaks, function extraction, Optional, choosing between Stream and List returns, and avoiding parallel streams, illustrated with real code examples and refactoring guidelines.

JavaOptionalcode style
0 likes · 14 min read
Master Clean Java 8 Stream Code: Practical Tips for Readable Lambdas
Architect's Tech Stack
Architect's Tech Stack
Sep 9, 2021 · Backend Development

Using IntelliJ IDEA Live Templates to Simplify Java Stream Collector Calls

This article explains how to use IntelliJ IDEA's Live Template feature to create shortcuts for common Java Stream collector operations such as toList, toSet, joining, and groupingBy, improving code readability and productivity when migrating large codebases to the Stream API.

IntelliJ IDEAJavaLive Templates
0 likes · 6 min read
Using IntelliJ IDEA Live Templates to Simplify Java Stream Collector Calls
Top Architect
Top Architect
Aug 5, 2021 · Backend Development

Using Java 8 Streams and Functional Interfaces: A Comprehensive Guide

This article explains Java 8's lambda expressions and functional interfaces, demonstrates common Stream operations such as filter, map, flatMap, collect, max/min, count and reduce, and shows how to use advanced collectors for grouping, partitioning and joining with clear code examples.

Javacollectorsfunctional interfaces
0 likes · 12 min read
Using Java 8 Streams and Functional Interfaces: A Comprehensive Guide
Top Architect
Top Architect
May 15, 2021 · Backend Development

Using IntelliJ IDEA Live Templates to Simplify Java Stream Collectors

This article explains how to create and use IntelliJ IDEA live templates to replace repetitive Java Stream collector calls such as toList(), toSet(), and groupingBy() with concise shortcuts, improving code readability and productivity when migrating legacy code to Java 8 streams.

IntelliJ IDEAJavaLive Templates
0 likes · 6 min read
Using IntelliJ IDEA Live Templates to Simplify Java Stream Collectors