Tag

parallel streams

1 views collected around this technical thread.

Top Architect
Top Architect
Apr 18, 2023 · Backend Development

Understanding Java 8 Stream API, Parallel Streams, and ForkJoinPool

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.

Backend DevelopmentForkJoinPoolFunctional Programming
0 likes · 21 min read
Understanding Java 8 Stream API, Parallel Streams, and ForkJoinPool
Code Ape Tech Column
Code Ape Tech Column
Apr 13, 2023 · Backend Development

Understanding Java Stream API: Implementation, Parallelism, and Performance

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.

Backend DevelopmentForkJoinPoolStream API
0 likes · 20 min read
Understanding Java Stream API: Implementation, Parallelism, and Performance
Selected Java Interview Questions
Selected Java Interview Questions
Oct 18, 2022 · Fundamentals

Understanding Java Functional Interfaces and Stream API Internals

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.

Java 8Stream APIfunctional interfaces
0 likes · 23 min read
Understanding Java Functional Interfaces and Stream API Internals
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.

Optionalcode-stylejava
0 likes · 14 min read
Master Clean Java 8 Stream Code: Practical Tips for Readable Lambdas
Top Architect
Top Architect
Feb 23, 2021 · Backend Development

Understanding Java 8 Stream API: Architecture, Parallelism, and Best Practices

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.

Backend DevelopmentConcurrencyForkJoinPool
0 likes · 21 min read
Understanding Java 8 Stream API: Architecture, Parallelism, and Best Practices
Top Architect
Top Architect
Sep 17, 2020 · Backend Development

Benchmarking Fork/Join Framework vs Parallel Streams vs ExecutorService in Java

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.

BenchmarkConcurrencyExecutorService
0 likes · 10 min read
Benchmarking Fork/Join Framework vs Parallel Streams vs ExecutorService in Java
vivo Internet Technology
vivo Internet Technology
Sep 11, 2019 · Backend Development

Parallel Stream Class Loading Failure Analysis in Tomcat Containers

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
Parallel Stream Class Loading Failure Analysis in Tomcat Containers
Qunar Tech Salon
Qunar Tech Salon
Dec 11, 2014 · Backend Development

Pitfalls of Java 8 Parallel Streams, Lambdas, Default Methods, and Jigsaw

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 MethodsFunctional Programmingjigsaw
0 likes · 8 min read
Pitfalls of Java 8 Parallel Streams, Lambdas, Default Methods, and Jigsaw