Tagged articles
Parallel Streams
11 articles · Page 1 of 1
This tutorial explains Java 8 parallel streams, their performance trade‑offs, and how to run them with a custom ForkJoinPool to improve speed while avoiding memory leaks, including code examples and best‑practice recommendations.
ForkJoinPoolJavaParallel Streams
0 likes · 6 min read

This article introduces Java 8 functional programming concepts such as lambda expressions and method references, explains the Stream API, and provides dozens of practical code snippets for querying, grouping, aggregating, sorting, partitioning, and parallel processing of collections, helping developers handle most everyday business logic efficiently.
JavaMybatisPlusParallel Streams
0 likes · 14 min read

This article provides a comprehensive overview of Java 8's Stream API, explaining its core concepts, composition, BaseStream and Stream interfaces, the differences between parallel and sequential streams, the underlying ForkJoinPool mechanism, performance factors, and best practices for effective use in backend development.
ForkJoinPoolJavaParallel Streams
0 likes · 21 min read

This article explains Java 8 Stream API's concepts, composition, pipelining, internal iteration, parallel execution using ForkJoinPool, performance considerations, and best practices, providing code examples and detailed analysis for developers seeking to write efficient, clean, and scalable backend Java code.
ForkJoinPoolJavaParallel Streams
0 likes · 20 min read

This article explains Java functional interfaces, the java.util.function package, and provides an in‑depth look at the internal structure of the Stream API, including pipelines, intermediate and terminal operations, collectors, and the parallel execution model based on ForkJoin tasks.
Functional InterfacesJava 8Parallel Streams
0 likes · 23 min read

This article explains Java parallel streams, shows how to replace manual thread handling with a one‑line parallelStream call, benchmarks its performance, discusses cases where it slows down, highlights shared‑variable hazards, and provides practical guidelines for effective use.
ConcurrencyForkJoinPoolJava
0 likes · 12 min read

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.
Code styleOptionalParallel Streams
0 likes · 14 min read

This article explains the design and implementation of Java 8 Stream API, covering its composition, pipelining, internal iteration, parallel execution via ForkJoinPool, performance considerations, ordering semantics, and practical guidelines for using parallel streams effectively.
ConcurrencyForkJoinPoolJava
0 likes · 21 min read

This article benchmarks Java's Fork/Join framework, Parallel Streams, and ExecutorService across IO‑bound and CPU‑bound workloads on an 8‑core machine, analyzing how thread count and pool configuration affect performance and offering practical recommendations for concurrent Java applications.
ExecutorServiceForkJoinJava
0 likes · 10 min read

The article explains how Java 8 parallel streams in Tomcat containers trigger class‑loading failures because ForkJoinWorkerThreads inherit a null context class loader after Tomcat 7.0.74 introduced SafeForkJoinWorkerThreadFactory, leading to deserialization errors and memory‑leak risks, and recommends avoiding dynamic class loading or using custom thread pools.
Class LoadingDubboForkJoinPool
0 likes · 8 min read

The article examines how Java 8 features such as parallel streams, lambda expressions, default methods, and the Jigsaw module system can unintentionally degrade performance, increase code complexity, and introduce compatibility issues, urging developers to understand their underlying mechanisms before adoption.
Default MethodsParallel Streamsfunctional-programming
0 likes · 8 min read
