Tagged articles
12 articles
Page 1 of 1
Top Architect
Top Architect
Feb 27, 2025 · Backend Development

Avoiding the Pitfalls of Java Stream and Lambda: Tips for Clean and Maintainable Code

This article examines how Java Stream and Lambda, while powerful for concise data processing, can become cumbersome when misused, and provides practical tips such as proper line breaks, function extraction, careful filter logic, safe Optional handling, and cautious use of parallel streams to keep code readable and maintainable.

Code OptimizationLambdaParallelStream
0 likes · 10 min read
Avoiding the Pitfalls of Java Stream and Lambda: Tips for Clean and Maintainable Code
Top Architect
Top Architect
Feb 11, 2025 · Backend Development

Avoiding the Pitfalls of Java Stream and Lambda: Best Practices and Optimizations

The article examines how Java Stream and Lambda, while powerful for concise code, can become cumbersome when overused, and offers practical tips such as proper line breaks, function extraction, predicate reuse, cautious Optional handling, and mindful use of parallel streams to maintain readability and performance.

BestPracticesCodeOptimizationLambda
0 likes · 11 min read
Avoiding the Pitfalls of Java Stream and Lambda: Best Practices and Optimizations
Cognitive Technology Team
Cognitive Technology Team
Jun 23, 2024 · Backend Development

Customizing Thread Pools for Java parallelStream to Improve Performance and Isolation

This article explains how Java's parallelStream uses the shared ForkJoinPool, why developers may need to customize the thread pool for better performance and isolation, and provides two approaches—setting the system property and creating a dedicated ForkJoinPool—along with complete code examples and execution results.

ForkJoinPoolParallelStreamThreadPool
0 likes · 4 min read
Customizing Thread Pools for Java parallelStream to Improve Performance and Isolation
Xianyu Technology
Xianyu Technology
Nov 29, 2022 · Backend Development

Lombok @Builder JSON Conflict, Dynamic Log Levels, JWT Overview, and Java 8 parallelStream Tips

The brief explains how Lombok’s @Builder can clash with JSON libraries and how adding no‑args and all‑args constructors resolves it, shows how to adjust log levels at runtime via Arthas or Spring’s LoggingSystem, outlines JWT structure and security cautions, and warns of common Java 8 parallelStream performance and correctness pitfalls.

JSONJWTLombok
0 likes · 9 min read
Lombok @Builder JSON Conflict, Dynamic Log Levels, JWT Overview, and Java 8 parallelStream Tips
Su San Talks Tech
Su San Talks Tech
May 2, 2022 · Fundamentals

12 Real-World Java Concurrency Scenarios Every Developer Should Master

This article explores twelve practical multithreading use cases in Java, ranging from simple scheduled tasks and listeners to Excel imports, remote call aggregation, user context handling, MDC logging, high‑concurrency simulation, Kafka message processing, atomic counters, and delayed jobs, providing code examples and best‑practice tips for each scenario.

ParallelStreamThreadPoolconcurrency
0 likes · 25 min read
12 Real-World Java Concurrency Scenarios Every Developer Should Master
Senior Brother's Insights
Senior Brother's Insights
Nov 28, 2021 · Backend Development

Why @Transactional Fails with parallelStream and How to Fix It

An Excel import that partially succeeds reveals a hidden bug where Spring’s @Transactional annotation doesn’t roll back when using Java 8’s parallelStream, and the article explains the underlying thread‑local transaction mechanics, demonstrates the issue with code, and offers practical solutions and best‑practice guidelines.

ParallelStreambugconcurrency
0 likes · 8 min read
Why @Transactional Fails with parallelStream and How to Fix It
Programmer DD
Programmer DD
Mar 3, 2021 · Backend Development

How to Speed Up Large Excel Imports in Java: From POI to EasyExcel and Parallel Insertion

This article walks through a step‑by‑step optimization of a Java‑based Excel import pipeline, covering the transition from raw POI to EasyPOI and EasyExcel, caching database lookups, batch inserts, optimal batch sizes, parallel streams, and logging reductions to achieve sub‑minute import times for hundreds of thousands of rows.

BackendExcelParallelStream
0 likes · 12 min read
How to Speed Up Large Excel Imports in Java: From POI to EasyExcel and Parallel Insertion
Architecture Digest
Architecture Digest
Jan 6, 2021 · Backend Development

Optimizing Large-Scale Excel Import Performance in Java Backend Applications

This article details a step‑by‑step optimization of a Java backend Excel import pipeline, covering data validation caching, batch insertion with MySQL VALUES, switching to EasyExcel, parallel stream insertion, and logging reduction to achieve sub‑minute import times for hundreds of thousands of rows.

ExcelMyBatisParallelStream
0 likes · 11 min read
Optimizing Large-Scale Excel Import Performance in Java Backend Applications
Programmer DD
Programmer DD
Oct 9, 2018 · Backend Development

Master Java Parallelism: From CountDownLatch to Fork/Join and Beyond

This article explores the evolution of parallel computing in Java, explaining why single‑core performance stalls, how multi‑core CPUs and GPUs enable true concurrency, and demonstrating practical implementations using CountDownLatch, CompletableFuture, Fork/Join, parallel streams, and sharding, while highlighting performance considerations and pitfalls.

CompletableFutureCountDownLatchForkJoinPool
0 likes · 15 min read
Master Java Parallelism: From CountDownLatch to Fork/Join and Beyond
Qunar Tech Salon
Qunar Tech Salon
Jan 27, 2015 · Backend Development

Performance Comparison of Java Fork/Join, ExecutorService, and Parallel Streams under Different Configurations

This article presents a comprehensive performance evaluation of Java's ExecutorService, Fork/Join framework, and Parallel Streams across CPU‑intensive and I/O‑intensive tasks, analyzing thread‑count effects, default pool limitations, and JVM tuning to guide optimal concurrency choices.

ExecutorServiceForkJoinParallelStream
0 likes · 9 min read
Performance Comparison of Java Fork/Join, ExecutorService, and Parallel Streams under Different Configurations