Tagged articles
112 articles
Page 1 of 2
Architecture & Thinking
Architecture & Thinking
Apr 29, 2026 · Backend Development

Must‑Know CompletableFuture: Usage, Best Practices, and Real‑World Scenarios

This article explains why CompletableFuture replaces traditional Future in high‑concurrency Java applications, demonstrates core APIs such as runAsync, supplyAsync, thenApply, allOf, anyOf, thenCombine, and exception handling, and provides detailed code examples—including serial, parallel, aggregation, and an e‑commerce order‑processing case—to guide robust asynchronous programming.

CompletableFutureException HandlingJava
0 likes · 26 min read
Must‑Know CompletableFuture: Usage, Best Practices, and Real‑World Scenarios
Architect
Architect
Sep 25, 2025 · Backend Development

8 Powerful Ways to Implement Asynchronous Processing in Java

This article explains why asynchronous execution is essential for reducing latency in Java applications and walks through eight practical implementations—including threads, Future, CompletableFuture, Spring @Async, ApplicationEvent, message queues, ThreadUtil, and Guava—complete with code examples and usage tips.

CompletableFutureFutureGuava
0 likes · 14 min read
8 Powerful Ways to Implement Asynchronous Processing in Java
Selected Java Interview Questions
Selected Java Interview Questions
Sep 16, 2025 · Backend Development

Mastering Asynchronous Responses in Spring: CompletableFuture vs ResponseBodyEmitter

This guide explains how to implement high‑performance asynchronous APIs in Spring Web using CompletableFuture and ResponseBodyEmitter, covering controller and service code, configuration, request lifecycle, client handling, Nginx settings, and practical recommendations for choosing the right approach.

AsynchronousCompletableFutureJava
0 likes · 12 min read
Mastering Asynchronous Responses in Spring: CompletableFuture vs ResponseBodyEmitter
Architect's Guide
Architect's Guide
Jul 25, 2025 · Backend Development

8 Powerful Ways to Implement Asynchronous Programming in Java

This article explains why asynchronous execution shortens request latency and presents eight practical Java techniques—including raw threads, Future, CompletableFuture, Spring @Async, ApplicationEvent, message queues, ThreadUtil, and Guava ListenableFuture—complete with code examples and usage tips.

CompletableFutureFutureMessage Queue
0 likes · 13 min read
8 Powerful Ways to Implement Asynchronous Programming in Java
Cognitive Technology Team
Cognitive Technology Team
Apr 29, 2025 · Backend Development

Common CompletableFuture Pitfalls and Best Practices in Java

This article examines the powerful Java CompletableFuture class, identifies frequent misuse pitfalls such as ignored exceptions, wrong thread‑pool choices, blocking callbacks, context loss, and overly fragmented chains, and provides concrete avoidance strategies and best‑practice recommendations for robust asynchronous programming.

AsynchronousCompletableFutureException Handling
0 likes · 9 min read
Common CompletableFuture Pitfalls and Best Practices in Java
FunTester
FunTester
Apr 18, 2025 · Backend Development

Using CompletableFuture for Parallel REST Calls in Java

The article explains why serial REST calls cause performance bottlenecks, illustrates the benefits of concurrent requests, and demonstrates how Java 8's CompletableFuture can be used to implement parallel REST calls with robust exception handling, improving throughput and resource utilization.

CompletableFutureJavaParallelism
0 likes · 10 min read
Using CompletableFuture for Parallel REST Calls in Java
Cognitive Technology Team
Cognitive Technology Team
Apr 12, 2025 · Backend Development

Using CompletableFuture with Streams for Parallel Execution in Java

The article explains how to correctly combine Java's CompletableFuture with Stream API to achieve true asynchronous parallelism, highlights common pitfalls that lead to sequential execution, and provides the proper pattern of creating a CompletableFuture stream followed by a terminal operation.

CompletableFutureJavaParallelism
0 likes · 3 min read
Using CompletableFuture with Streams for Parallel Execution in Java
FunTester
FunTester
Apr 9, 2025 · Backend Development

Understanding Future and CompletableFuture in Java for Asynchronous Programming

This article explains the concepts, differences, and practical usage of Java's Future and CompletableFuture for asynchronous programming, highlighting their blocking behavior, task composition, exception handling, and suitable scenarios in performance testing and complex test workflows, with detailed code examples.

CompletableFutureFutureJava
0 likes · 14 min read
Understanding Future and CompletableFuture in Java for Asynchronous Programming
macrozheng
macrozheng
Mar 31, 2025 · Backend Development

9 Ways to Implement Asynchronous Programming in Java – From Threads to CompletableFuture

This tutorial enumerates nine Java asynchronous programming techniques—including Thread/Runnable, Executors, custom thread pools, Future/Callable, CompletableFuture, ForkJoinPool, Spring @Async, message queues, and Hutool ThreadUtil—explains their advantages and drawbacks, and provides complete code examples for each method.

CompletableFutureMQThreadPool
0 likes · 14 min read
9 Ways to Implement Asynchronous Programming in Java – From Threads to CompletableFuture
IT Services Circle
IT Services Circle
Mar 22, 2025 · Backend Development

Nine Ways to Implement Asynchronous Programming in Java

This article introduces nine different approaches to achieve asynchronous programming in Java, including using Thread and Runnable, Executors thread pools, custom thread pools, Future and Callable, CompletableFuture, ForkJoinPool, Spring @Async, message queues, and Hutool's ThreadUtil, with code examples and usage tips.

AsynchronousCompletableFutureExecutor
0 likes · 15 min read
Nine Ways to Implement Asynchronous Programming in Java
Java Tech Enthusiast
Java Tech Enthusiast
Mar 22, 2025 · Backend Development

9 Ways to Implement Asynchronous Programming in Java

The article outlines nine practical approaches for asynchronous programming in Java—including low‑level Thread/Runnable, managed Executors and custom thread pools, Future/Callable, CompletableFuture, ForkJoinPool, Spring’s @Async annotation, message‑queue integration, and the Hutool ThreadUtil utility—offering a comprehensive toolbox for scalable, non‑blocking execution.

AsynchronousCompletableFutureExecutor
0 likes · 13 min read
9 Ways to Implement Asynchronous Programming in Java
Java Captain
Java Captain
Mar 21, 2025 · Backend Development

Request Merging and Batch Processing in Java Spring Boot to Reduce Database Connections

This article explains how to merge multiple user‑detail requests into a single database query using a blocking queue, scheduled thread pool, and CompletableFuture in Spring Boot, providing code examples, a high‑concurrency test, and discussion of trade‑offs such as added latency and timeout handling.

Batch ProcessingCompletableFutureJava
0 likes · 13 min read
Request Merging and Batch Processing in Java Spring Boot to Reduce Database Connections
IT Services Circle
IT Services Circle
Mar 13, 2025 · Backend Development

Common Pitfalls When Using CompletableFuture in Java

This article introduces the advantages of Java's CompletableFuture and systematically outlines six common pitfalls—including default thread‑pool issues, exception handling, timeout management, thread‑local context loss, callback hell, and task‑ordering problems—while providing correct code examples and best‑practice recommendations.

AsyncCompletableFutureJava
0 likes · 10 min read
Common Pitfalls When Using CompletableFuture in Java
Java Backend Technology
Java Backend Technology
Mar 8, 2025 · Backend Development

How to Merge Concurrent Requests in Spring Boot and Save Database Connections

This article explains how to batch multiple user‑info requests on the server side, merge them into a single SQL query using a blocking queue and ScheduledThreadPoolExecutor, and return the results individually, thereby reducing database connection usage and improving performance under high concurrency.

Batch ProcessingCompletableFutureJava concurrency
0 likes · 13 min read
How to Merge Concurrent Requests in Spring Boot and Save Database Connections
macrozheng
macrozheng
Feb 6, 2025 · Backend Development

Mastering Java Async: Future, Callable, CompletableFuture, and FutureTask Explained

This article explores four Java asynchronous programming approaches—Future with Callable, CompletableFuture, and FutureTask—detailing their principles, usage patterns, code examples, and how to retrieve results from thread pools, helping developers improve performance for tasks like aggregating order and fee summaries.

CallableCompletableFutureFuture
0 likes · 12 min read
Mastering Java Async: Future, Callable, CompletableFuture, and FutureTask Explained
Java Web Project
Java Web Project
Feb 1, 2025 · Backend Development

Choosing the Right Java Async Tool: Future, CompletableFuture, or FutureTask

This article compares three Java concurrency approaches—Future with Callable, CompletableFuture, and FutureTask—explaining their underlying principles, step‑by‑step usage, code examples, and trade‑offs so you can decide which asynchronous tool best fits your reporting workload.

CompletableFutureFutureFutureTask
0 likes · 10 min read
Choosing the Right Java Async Tool: Future, CompletableFuture, or FutureTask
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jan 25, 2025 · Backend Development

Mastering CompletableFuture in Java: Basics, Advanced Features, and Best Practices

This comprehensive guide introduces Java's CompletableFuture, explains its advantages over the traditional Future API, demonstrates how to create and compose asynchronous tasks, manage thread pools, handle timeouts and cancellations, and apply robust exception handling techniques for reliable concurrent programming.

CompletableFutureException HandlingFuture
0 likes · 16 min read
Mastering CompletableFuture in Java: Basics, Advanced Features, and Best Practices
IT Services Circle
IT Services Circle
Jan 7, 2025 · Backend Development

Replacing Thread.sleep Loops with Proper Scheduling in Java

The article explains why using Thread.sleep in a loop causes busy‑waiting and performance problems, and demonstrates several Java scheduling alternatives—including Timer/TimerTask, ScheduledExecutorService, wait/notify, and CompletableFuture—to efficiently check a flag at fixed intervals.

CompletableFutureJavaScheduledExecutorService
0 likes · 9 min read
Replacing Thread.sleep Loops with Proper Scheduling in Java
JD Tech Talk
JD Tech Talk
Dec 23, 2024 · Backend Development

Asynchronous Timeout Implementation for CompletableFuture in JDK 8

This article proposes an asynchronous timeout implementation for CompletableFuture in JDK 8, addressing the lack of built-in timeout interruption capabilities and providing a solution for precise task timeout control.

Backend DevelopmentCompletableFutureJDK 8
0 likes · 10 min read
Asynchronous Timeout Implementation for CompletableFuture in JDK 8
JD Cloud Developers
JD Cloud Developers
Dec 23, 2024 · Backend Development

How to Add Asynchronous Timeout to CompletableFuture in JDK 8

This article explains why JDK 8's CompletableFuture lacks built‑in timeout interruption, analyzes common usage patterns and their limitations, and presents a custom asynchronous timeout solution that works in both JDK 8 and JDK 9 environments, complete with reusable utility code.

Async TimeoutBackend DevelopmentCompletableFuture
0 likes · 13 min read
How to Add Asynchronous Timeout to CompletableFuture in JDK 8
Su San Talks Tech
Su San Talks Tech
Dec 14, 2024 · Backend Development

Mastering CompletableFuture: From Basics to RocketMQ Integration

This article explains the limitations of Java's Future, introduces CompletableFuture with its rich API for non‑blocking asynchronous programming, demonstrates practical usage including task creation, result retrieval, chaining, exception handling, and shows how RocketMQ leverages CompletableFuture to coordinate disk flush and replica sync tasks efficiently.

AsyncCompletableFutureFuture
0 likes · 16 min read
Mastering CompletableFuture: From Basics to RocketMQ Integration
Java Tech Enthusiast
Java Tech Enthusiast
Dec 12, 2024 · Backend Development

Java CompletableFuture: Asynchronous Programming Guide

Java's CompletableFuture, introduced in Java 8, replaces the blocking Future with a rich, non‑blocking API that supports asynchronous task creation, result retrieval via get/join, chaining callbacks, exception handling, task combination (AND/OR, allOf/anyOf), and recommends custom executors, timeouts, and proper saturation policies.

CompletableFutureJavaasynchronous programming
0 likes · 16 min read
Java CompletableFuture: Asynchronous Programming Guide
Top Architecture Tech Stack
Top Architecture Tech Stack
Nov 26, 2024 · Backend Development

Understanding CountDownLatch and CompletableFuture in Java Concurrency

This article explains the purpose, typical usage scenarios, and provides concrete code demonstrations of Java's CountDownLatch and CompletableFuture, comparing their synchronization versus asynchronous capabilities and guiding developers on selecting the appropriate tool for effective multithreaded programming.

CompletableFutureCountDownLatchJava
0 likes · 6 min read
Understanding CountDownLatch and CompletableFuture in Java Concurrency
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Oct 28, 2024 · Backend Development

Master Asynchronous Programming in Spring Boot 3 with @Async and CompletableFuture

This article demonstrates how to enable and use Spring Boot 3's @Async annotation together with Java's CompletableFuture to create custom thread pools, run multiple asynchronous REST calls concurrently, aggregate their results, and handle exceptions, providing a complete backend solution for high‑performance APIs.

AsyncBackend DevelopmentCompletableFuture
0 likes · 8 min read
Master Asynchronous Programming in Spring Boot 3 with @Async and CompletableFuture
Architect
Architect
Oct 8, 2024 · Backend Development

How to Supercharge Java Backend Performance with CompletableFuture, Thread Pools, Caching, and Lock Tuning

This article analyzes Java performance bottlenecks and demonstrates how to use CompletableFuture for parallelism, fine‑tune ThreadPoolExecutor parameters, minimize transaction scope, apply cache‑line padding, object pooling, lock‑granularity techniques, copy‑on‑write collections, and reduce network payloads to achieve lower latency and higher throughput.

CompletableFutureJavaMicroservices
0 likes · 38 min read
How to Supercharge Java Backend Performance with CompletableFuture, Thread Pools, Caching, and Lock Tuning
Architect's Guide
Architect's Guide
Aug 25, 2024 · Backend Development

Eight Ways to Implement Asynchronous Execution in Java

This article introduces eight common Java asynchronous implementation techniques—including raw threads, Future, CompletableFuture, Spring @Async, ApplicationEvent, message queues, third‑party utilities like Hutool ThreadUtil and Guava ListenableFuture—explaining their usage, code examples, advantages, and drawbacks for improving performance in scenarios such as sending SMS or emails.

CompletableFutureFutureGuava
0 likes · 14 min read
Eight Ways to Implement Asynchronous Execution in Java
FunTester
FunTester
Jun 17, 2024 · Backend Development

Mastering Java CompletableFuture: Simplify Asynchronous Programming

This article explains how Java's CompletableFuture extends traditional concurrency tools with rich APIs for parallel execution, chaining, error handling, and timeout management, providing clear code examples that demonstrate building maintainable asynchronous applications.

AsynchronousCompletableFutureExecutorService
0 likes · 10 min read
Mastering Java CompletableFuture: Simplify Asynchronous Programming
Open Source Linux
Open Source Linux
Jun 1, 2024 · Fundamentals

Mastering Concurrency and Parallelism in Java: From Basics to Advanced APIs

This article explains the concepts of concurrency, parallelism, and serial execution, describes common multi‑core scheduling algorithms, and demonstrates Java's concurrent programming tools—including Future, Fork/Join, Stream API, and CompletableFuture—through clear code examples and practical guidelines.

CompletableFutureFutureJava
0 likes · 20 min read
Mastering Concurrency and Parallelism in Java: From Basics to Advanced APIs
Architect
Architect
Apr 30, 2024 · Backend Development

Using CompletableFuture for Asynchronous Programming in Java: Examples and Best Practices

This article explains why asynchronous programming improves performance, compares serial and parallel implementations of a login flow, and demonstrates how to use Java's CompletableFuture API—including supplyAsync, runAsync, callbacks, composition, and error handling—to write efficient backend code.

AsynchronousBackendCompletableFuture
0 likes · 22 min read
Using CompletableFuture for Asynchronous Programming in Java: Examples and Best Practices
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Mar 6, 2024 · Backend Development

Mastering Java 8 CompletableFuture: Async Patterns and Best Practices

This article introduces Java 8's CompletableFuture class, compares it with Future, demonstrates basic Future usage, then explores advanced asynchronous patterns—including CompletionService, chaining, exception handling, combining tasks, and various utility methods—providing code examples and execution results to illustrate each concept.

CompletableFutureExecutorServiceFuture
0 likes · 15 min read
Mastering Java 8 CompletableFuture: Async Patterns and Best Practices
Architect's Guide
Architect's Guide
Mar 1, 2024 · Backend Development

Ensuring Transaction Consistency in Multi‑threaded Spring Applications Using Programmatic Transactions

The article explains how to execute parallel tasks with CompletableFuture, why @Async cannot guarantee transactional integrity in a multi‑threaded Spring environment, and presents a programmatic transaction approach—including copying transaction resources between threads—to achieve consistent commit or rollback across concurrent operations.

CompletableFutureJavaProgrammaticTransaction
0 likes · 19 min read
Ensuring Transaction Consistency in Multi‑threaded Spring Applications Using Programmatic Transactions
Selected Java Interview Questions
Selected Java Interview Questions
Feb 19, 2024 · Backend Development

Eight Ways to Implement Asynchronous Programming in Java

This article introduces eight common Java asynchronous implementation techniques—including raw threads, thread pools, Future, CompletableFuture, Spring @Async, ApplicationEvent, message queues, ThreadUtil, and Guava ListenableFuture—explains their use cases, advantages, and limitations, and provides concrete code examples for each method.

AsynchronousBackendCompletableFuture
0 likes · 11 min read
Eight Ways to Implement Asynchronous Programming in Java
Su San Talks Tech
Su San Talks Tech
Feb 18, 2024 · Backend Development

Mastering CompletableFuture: From Basics to RocketMQ Integration

This article explains Java's CompletableFuture, its advantages over the traditional Future API, demonstrates common methods with code examples, and shows how RocketMQ leverages CompletableFuture to coordinate asynchronous disk flush and replica synchronization tasks.

CompletableFutureFutureJava
0 likes · 15 min read
Mastering CompletableFuture: From Basics to RocketMQ Integration
Su San Talks Tech
Su San Talks Tech
Feb 13, 2024 · Backend Development

How to Ensure Transaction Consistency When Async Threads Fail in Spring

This article explains how to guarantee transactional integrity when importing a 100,000‑row Excel file with asynchronous threads in Spring, covering double‑async optimization, Future and CompletableFuture handling, @Transactional pitfalls, manual transaction control, and a complete solution for cross‑thread transaction management.

AsyncCompletableFutureExcel Import
0 likes · 18 min read
How to Ensure Transaction Consistency When Async Threads Fail in Spring
Top Architect
Top Architect
Jan 30, 2024 · Backend Development

Advanced Backend Asynchronous Execution and Configuration Techniques in Spring Boot

This article explains multiple backend optimization methods for Spring Boot, including asynchronous execution with @Async and CompletableFuture, increasing embedded Tomcat connection limits, using @ComponentScan, switching to Undertow, applying BufferedWriter, employing DeferredResult, and intercepting async calls with AsyncHandlerInterceptor, accompanied by concrete code examples.

AsynchronousCompletableFutureJava
0 likes · 12 min read
Advanced Backend Asynchronous Execution and Configuration Techniques in Spring Boot
Java High-Performance Architecture
Java High-Performance Architecture
Jan 24, 2024 · Backend Development

8 Powerful Ways to Implement Asynchronous Execution in Java

Understanding asynchronous execution in Java can dramatically reduce latency for tasks such as sending SMS, emails, or updating data, and this article walks through eight practical implementations—from raw Threads and Futures to Spring @Async, ApplicationEvent, message queues, ThreadUtil, and Guava ListenableFuture—complete with code samples and best‑practice tips.

AsynchronousCompletableFutureGuava
0 likes · 13 min read
8 Powerful Ways to Implement Asynchronous Execution in Java
IT Xianyu
IT Xianyu
Jan 2, 2024 · Backend Development

Ensuring Transaction Consistency in Multithreaded Spring Applications Using Programmatic Transactions

This article explains how to execute two dependent tasks in parallel, guarantee their successful completion before a final step, and maintain transaction consistency across multiple threads in Spring by using CompletableFuture, programmatic transaction management, and a custom transaction‑resource copying mechanism.

CompletableFutureJavaProgrammaticTransaction
0 likes · 18 min read
Ensuring Transaction Consistency in Multithreaded Spring Applications Using Programmatic Transactions
JD Retail Technology
JD Retail Technology
Dec 25, 2023 · Backend Development

Investigation and Resolution of JSF Asynchronous Call Timeout Causing Interface Availability Degradation

This article documents the investigation of a JSF asynchronous call timeout that reduced interface availability, explains the async call mechanisms, analyzes the root cause in the callback thread pool, and presents short‑term and long‑term solutions to restore 100% availability.

AsynchronousBackend PerformanceCompletableFuture
0 likes · 12 min read
Investigation and Resolution of JSF Asynchronous Call Timeout Causing Interface Availability Degradation
Architect
Architect
Nov 22, 2023 · Backend Development

Mastering CompletableFuture: Boosting Asynchronous Performance in Java

This article walks through the limitations of Java's Future, introduces CompletableFuture's richer asynchronous API, and demonstrates step‑by‑step how to refactor a shop‑detail page using parallel tasks, custom thread pools, and composition patterns to cut response time from seconds to under two.

AsynchronousCompletableFutureJava
0 likes · 14 min read
Mastering CompletableFuture: Boosting Asynchronous Performance in Java
Selected Java Interview Questions
Selected Java Interview Questions
Nov 22, 2023 · Backend Development

Thread Pool Pitfalls and Best Practices in Java Backend Development

This article analyzes a real production incident caused by improper thread‑pool usage, explains common misconceptions about core parameters, demonstrates faulty code examples, and provides concrete recommendations for configuring thread pools, handling timeouts, and avoiding deadlocks in Java backend services.

CompletableFutureJava concurrencySpring Async
0 likes · 14 min read
Thread Pool Pitfalls and Best Practices in Java Backend Development
Selected Java Interview Questions
Selected Java Interview Questions
Nov 18, 2023 · Backend Development

A Comprehensive Guide to Java CompletableFuture: Replacing Future and CountDownLatch with Elegant Asynchronous Patterns

This article explains Java's Future and CompletableFuture APIs, demonstrates how to replace blocking Future.get() and CountDownLatch patterns with CompletableFuture, shows creation methods, result retrieval options, callback chains, exception handling, task composition techniques, and provides best‑practice recommendations for thread‑pool usage.

AsynchronousCompletableFutureFuture
0 likes · 22 min read
A Comprehensive Guide to Java CompletableFuture: Replacing Future and CountDownLatch with Elegant Asynchronous Patterns
TAL Education Technology
TAL Education Technology
Nov 2, 2023 · Backend Development

Java CompletableFuture: Creation, Asynchronous Callbacks, Composition, and Thread‑Pool Configuration

This article explains Java's CompletableFuture utility introduced in Java 8, covering its creation methods, asynchronous callback functions, exception handling, task composition, combination operators, underlying implementation details, and best practices for configuring thread pools to achieve efficient concurrent execution.

AsyncCompletableFutureJava
0 likes · 32 min read
Java CompletableFuture: Creation, Asynchronous Callbacks, Composition, and Thread‑Pool Configuration
Sanyou's Java Diary
Sanyou's Java Diary
Oct 26, 2023 · Backend Development

Master Asynchronous Java: Threads, Futures, CompletableFuture & @Async

Explore the fundamentals and advanced techniques of asynchronous programming in Java, from basic thread creation and thread pools to Future, FutureTask, CompletableFuture, and Spring Boot’s @Async annotation, including practical code examples, event handling, and message queue integration for high‑throughput systems.

CompletableFutureFutureSpring Boot
0 likes · 17 min read
Master Asynchronous Java: Threads, Futures, CompletableFuture & @Async
Architect
Architect
Oct 1, 2023 · Backend Development

Batch Request Merging in Spring Boot to Reduce Database Connections

This article demonstrates how to merge multiple user‑info requests on the server side using a blocking queue, ScheduledThreadPoolExecutor, and CompletableFuture in Spring Boot, thereby consolidating SQL queries into a single batch call to save database connection resources while handling high concurrency.

Batch ProcessingCompletableFutureJava concurrency
0 likes · 13 min read
Batch Request Merging in Spring Boot to Reduce Database Connections
Selected Java Interview Questions
Selected Java Interview Questions
Sep 28, 2023 · Backend Development

Using CompletableFuture for Asynchronous Programming in Java: Examples, APIs, and Best Practices

This article explains how Java's Future and CompletableFuture interfaces enable asynchronous task execution, demonstrates common pitfalls of Future, shows how to replace it with CompletableFuture for more elegant code, and covers creation methods, result retrieval, callback chaining, task composition, and practical usage tips.

CompletableFutureException HandlingFuture
0 likes · 20 min read
Using CompletableFuture for Asynchronous Programming in Java: Examples, APIs, and Best Practices
macrozheng
macrozheng
Sep 27, 2023 · Backend Development

Master Java CompletableFuture: From Basics to Advanced Async Patterns

This comprehensive guide explains Java's CompletableFuture API, covering its fundamentals, creation methods, chaining operations, exception handling, and best practices for parallel execution, while providing clear code examples and performance tips for building efficient asynchronous workflows in backend development.

CompletableFutureFutureJava
0 likes · 20 min read
Master Java CompletableFuture: From Basics to Advanced Async Patterns
Sohu Tech Products
Sohu Tech Products
Sep 20, 2023 · Backend Development

Java CompletableFuture Tutorial: Asynchronous Programming and Task Composition

This tutorial explains Java 8's CompletableFuture, showing how to create, compose, and handle asynchronous tasks with methods like supplyAsync, thenApply, allOf, and anyOf, while emphasizing custom thread pools, non‑blocking patterns, and robust exception handling for real‑world concurrent programming.

CompletableFutureException HandlingJava
0 likes · 17 min read
Java CompletableFuture Tutorial: Asynchronous Programming and Task Composition
Su San Talks Tech
Su San Talks Tech
Sep 17, 2023 · Backend Development

Mastering CompletableFuture: From Basics to RocketMQ Integration

Explore how Java's CompletableFuture enhances asynchronous programming by overcoming Future's limitations, learn its core APIs, practical code examples, and see a real-world application in RocketMQ where combined futures streamline message persistence and replication.

Backend DevelopmentCompletableFutureJava
0 likes · 15 min read
Mastering CompletableFuture: From Basics to RocketMQ Integration
Code Ape Tech Column
Code Ape Tech Column
Sep 16, 2023 · Backend Development

Batch Request Merging in Java to Reduce Database Connections

This article explains how to merge multiple user‑detail requests on the server side using a blocking queue, scheduled thread pool and CompletableFuture in Spring Boot, thereby converting many individual SQL calls into a single batch query, saving database connections and improving high‑concurrency performance.

Batch ProcessingCompletableFutureDatabase Optimization
0 likes · 13 min read
Batch Request Merging in Java to Reduce Database Connections
Architect
Architect
Sep 12, 2023 · Backend Development

Ensuring Transaction Consistency in Multi‑Threaded Spring Applications Using CompletableFuture and Programmatic Transactions

This article explains how to parallelize business steps with CompletableFuture, why Spring's @Async and @Transactional annotations cannot guarantee transaction consistency across threads, and presents a programmatic transaction approach—including copying Spring's transaction resources between threads—to achieve reliable multi‑threaded commits or rollbacks.

CompletableFutureJavaProgrammaticTransaction
0 likes · 19 min read
Ensuring Transaction Consistency in Multi‑Threaded Spring Applications Using CompletableFuture and Programmatic Transactions
Java Architect Essentials
Java Architect Essentials
Sep 4, 2023 · Backend Development

Using CompletableFuture for Asynchronous Programming in Java: Examples and Best Practices

This article explains Java asynchronous programming by first showing the limitations of the JDK5 Future interface, then demonstrating how CountDownLatch can coordinate tasks, and finally presenting CompletableFuture creation, result retrieval, callback chaining, exception handling, and multi‑task composition with practical code examples.

CompletableFutureFutureJava
0 likes · 20 min read
Using CompletableFuture for Asynchronous Programming in Java: Examples and Best Practices
Zhuanzhuan Tech
Zhuanzhuan Tech
Jul 26, 2023 · Backend Development

Applying CompletableFuture for Asynchronous Programming in Java: A ZhiZhi Store Detail Page Case Study

This article explains the limitations of Java Future, introduces CompletableFuture's asynchronous and compositional capabilities, and demonstrates how to refactor a store detail page service using CompletableFuture, custom thread pools, and design patterns to achieve parallel execution, reduced latency, and better code maintainability.

AsynchronousBackendCompletableFuture
0 likes · 14 min read
Applying CompletableFuture for Asynchronous Programming in Java: A ZhiZhi Store Detail Page Case Study
Java Interview Crash Guide
Java Interview Crash Guide
Jun 27, 2023 · Backend Development

How to Ensure Transaction Consistency in Multithreaded Spring Applications

This article explains how to execute two dependent tasks in parallel using CompletableFuture, why @Async and @Transactional are insufficient for multithreaded transaction consistency, and provides a programmatic solution that copies Spring transaction resources between threads to guarantee atomic commit or rollback across asynchronous operations.

CompletableFutureProgrammatic Transactionmultithreading
0 likes · 19 min read
How to Ensure Transaction Consistency in Multithreaded Spring Applications
Selected Java Interview Questions
Selected Java Interview Questions
Jun 25, 2023 · Backend Development

Ensuring Transaction Consistency in Multi‑threaded Spring Applications Using Programmatic Transactions

This article explains how to execute two dependent tasks in parallel with CompletableFuture, why the usual @Transactional annotation fails in a multi‑threaded environment, and provides a programmatic transaction solution that copies Spring's transaction resources between threads to guarantee atomic commit or rollback across all parallel operations.

Backend DevelopmentCompletableFutureProgrammatic Transaction
0 likes · 19 min read
Ensuring Transaction Consistency in Multi‑threaded Spring Applications Using Programmatic Transactions
Top Architect
Top Architect
Jun 20, 2023 · Backend Development

Eight Ways to Implement Asynchronous Programming in Java

This article introduces eight practical approaches for achieving asynchronous execution in Java—including raw threads, Future, CompletableFuture, Spring @Async, ApplicationEvent, message queues, Hutool ThreadUtil, and Guava ListenableFuture—providing code samples, configuration tips, and discussion of each method's advantages and drawbacks.

AsynchronousBackendCompletableFuture
0 likes · 14 min read
Eight Ways to Implement Asynchronous Programming in Java
DeWu Technology
DeWu Technology
Jun 2, 2023 · Backend Development

Implementing Dubbo Asynchronous Calls with CompletableFuture: Practices and Performance Gains

By refactoring Dubbo RPC interfaces to return CompletableFuture, applying thenApply/thenCombine/thenCompose patterns, isolating a custom business thread pool, and handling errors and tracing, the team achieved up to 50% latency reduction, 25% response‑time improvement, a one‑third server cut and CPU utilization rise, demonstrating substantial performance and cost benefits.

CompletableFutureDubboJava
0 likes · 19 min read
Implementing Dubbo Asynchronous Calls with CompletableFuture: Practices and Performance Gains
Programmer DD
Programmer DD
May 31, 2023 · Backend Development

8 Powerful Ways to Implement Asynchronous Execution in Java

This article explains what asynchronous execution is, compares it with synchronous processing, and presents eight practical Java implementations—including raw threads, Future, CompletableFuture, Spring @Async, ApplicationEvent, message queues, Hutool ThreadUtil, and Guava ListenableFuture—complete with code samples and usage tips.

AsynchronousCompletableFutureFuture
0 likes · 14 min read
8 Powerful Ways to Implement Asynchronous Execution in Java
JD Tech
JD Tech
May 15, 2023 · Backend Development

Implementing Asynchronous Timeout with CompletableFuture in Java (JDK 8 & JDK 9)

This article explains how to use Java's CompletableFuture for parallel execution, demonstrates the limitations of simple timeout handling in JDK 8, and shows how JDK 9's built‑in orTimeout method and a custom utility class can provide precise asynchronous timeout control for backend services.

Async TimeoutCompletableFutureJDK8
0 likes · 12 min read
Implementing Asynchronous Timeout with CompletableFuture in Java (JDK 8 & JDK 9)
Architect's Guide
Architect's Guide
May 12, 2023 · Backend Development

Eight Ways to Implement Asynchronous Programming in Java

This article introduces the concept of asynchronous execution and presents eight practical Java implementations—including Thread, Future, CompletableFuture, Spring @Async, ApplicationEvent, message queues, ThreadUtil, and Guava ListenableFuture—along with code examples and usage tips for each method.

AsynchronousCompletableFutureFuture
0 likes · 12 min read
Eight Ways to Implement Asynchronous Programming in Java
Code Ape Tech Column
Code Ape Tech Column
Apr 25, 2023 · Backend Development

Advanced Java Multithreading: From Fundamentals to High‑Performance Transactional Scenarios

This article explores Java multithreading concepts, JVM safety tools, thread creation methods, coordination mechanisms, and practical scenarios such as parallel data aggregation, for‑loop conversion, map‑based processing, and multi‑threaded transaction handling, providing code examples and performance tips for backend developers.

CompletableFutureJavaThreadPool
0 likes · 22 min read
Advanced Java Multithreading: From Fundamentals to High‑Performance Transactional Scenarios
Su San Talks Tech
Su San Talks Tech
Mar 19, 2023 · Backend Development

Master 8 Ways to Implement Asynchronous Programming in Java

This article explains why asynchronous execution is essential for tasks like sending SMS or emails, defines async concepts, and walks through eight practical Java implementations—including Thread, Future, CompletableFuture, Spring @Async, ApplicationEvent, message queues, ThreadUtil, and Guava ListenableFuture—complete with code examples and usage tips.

AsynchronousCompletableFutureFuture
0 likes · 14 min read
Master 8 Ways to Implement Asynchronous Programming in Java
Architect's Guide
Architect's Guide
Mar 18, 2023 · Backend Development

Eight Ways to Implement Asynchronous Execution in Java

This article introduces eight common methods for implementing asynchronous execution in Java, including threads, Future, CompletableFuture, Spring @Async, ApplicationEvent, message queues, Hutool ThreadUtil, and Guava ListenableFuture, and provides code examples and usage considerations.

AsynchronousCompletableFutureFuture
0 likes · 14 min read
Eight Ways to Implement Asynchronous Execution in Java
Selected Java Interview Questions
Selected Java Interview Questions
Mar 3, 2023 · Backend Development

Comprehensive Guide to Java CompletableFuture: Asynchronous Tasks, Callbacks, and Multi‑Future Composition

This article explains Java's CompletableFuture API introduced in JDK 8, covering how to create asynchronous tasks with supplyAsync and runAsync, use various callback methods such as thenApply, thenAccept, thenRun, whenComplete, handle, and combine multiple futures with thenCombine, allOf, anyOf, providing code examples and execution results.

AsyncCompletableFutureFutureComposition
0 likes · 16 min read
Comprehensive Guide to Java CompletableFuture: Asynchronous Tasks, Callbacks, and Multi‑Future Composition
Architect
Architect
Mar 1, 2023 · Backend Development

Eight Asynchronous Programming Techniques in Java

This article introduces eight common methods for achieving asynchronous execution in Java, including raw threads, Future, CompletableFuture, Spring @Async, ApplicationEvent, message queues, ThreadUtil, and Guava ListenableFuture, explaining their usage, advantages, and limitations.

AsynchronousCompletableFutureFuture
0 likes · 10 min read
Eight Asynchronous Programming Techniques in Java
Java High-Performance Architecture
Java High-Performance Architecture
Feb 22, 2023 · Backend Development

8 Powerful Ways to Implement Asynchronous Programming in Java

This article explores eight Java asynchronous programming techniques—from raw threads and Future to CompletableFuture, Spring @Async, event-driven approaches, message queues, Hutool ThreadUtil, and Guava ListenableFuture—detailing their concepts, advantages, limitations, and providing complete code examples for each.

AsynchronousCompletableFutureFuture
0 likes · 14 min read
8 Powerful Ways to Implement Asynchronous Programming in Java
MaGe Linux Operations
MaGe Linux Operations
Feb 18, 2023 · Backend Development

8 Powerful Ways to Implement Asynchronous Programming in Java

This article explains why asynchronous execution improves latency in common scenarios like sending SMS or emails, and presents eight Java techniques—including threads, Future, CompletableFuture, Spring @Async, ApplicationEvent, message queues, third‑party utilities, and Guava—to implement robust asynchronous programming.

CompletableFutureFutureMessage Queue
0 likes · 14 min read
8 Powerful Ways to Implement Asynchronous Programming in Java
FunTester
FunTester
Feb 7, 2023 · Backend Development

Turning Asynchronous Calls into Synchronous Responses with CompletableFuture in Java

This article demonstrates how to convert multiple asynchronous queries into a synchronous response using Java's CompletableFuture, providing step‑by‑step code examples in both Java and Groovy, explaining execution flow, timeout handling, and practical considerations for WebSocket‑like scenarios.

Backend DevelopmentCompletableFutureJava
0 likes · 5 min read
Turning Asynchronous Calls into Synchronous Responses with CompletableFuture in Java
Java Architect Essentials
Java Architect Essentials
Dec 28, 2022 · Backend Development

Mastering Asynchronous Execution in Spring Boot: An In‑Depth Guide

This article provides a comprehensive guide to implementing asynchronous processing in Spring Boot, covering annotation‑based @Async, CompletableFuture patterns, WebAsyncTask, DeferredResult, custom thread pools, Tomcat tuning, component scanning, and switching to Undertow, with complete code examples and configuration details.

AsynchronousCompletableFutureDeferredResult
0 likes · 12 min read
Mastering Asynchronous Execution in Spring Boot: An In‑Depth Guide
Su San Talks Tech
Su San Talks Tech
Dec 9, 2022 · Backend Development

Master Asynchronous Java: Threads, Futures, CompletableFuture & Spring @Async

This article introduces asynchronous programming concepts in Java, explaining the shift from synchronous to asynchronous execution, and demonstrates practical implementations using raw threads, ThreadPoolExecutor, Future, FutureTask, CompletableFuture, and Spring's @Async annotation, along with event handling and message queue integration for high‑throughput systems.

AsynchronousCompletableFutureJava
0 likes · 16 min read
Master Asynchronous Java: Threads, Futures, CompletableFuture & Spring @Async
Top Architect
Top Architect
Dec 4, 2022 · Backend Development

Asynchronous Execution in Spring Boot: @Async, CompletableFuture, WebAsyncTask, DeferredResult and Related Optimizations

This article explains multiple ways to perform asynchronous processing in Spring Boot, including @Async annotation, CompletableFuture (supplyAsync, runAsync), WebAsyncTask, DeferredResult, custom AsyncHandlerInterceptor, and server‑side optimizations such as increasing Tomcat connections and switching to Undertow, with complete code examples.

AsynchronousCompletableFutureJava
0 likes · 10 min read
Asynchronous Execution in Spring Boot: @Async, CompletableFuture, WebAsyncTask, DeferredResult and Related Optimizations
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Sep 18, 2022 · Backend Development

Java Asynchronous Programming: Five Implementation Methods Explained

This article introduces the concept of asynchronous programming in Java, compares it with synchronous execution, and provides detailed examples of five implementation approaches—thread creation, thread pool with Future, CompletableFuture, SpringBoot @Async, and Guava ListenableFuture—complete with code snippets and usage guidelines.

CompletableFutureFutureGuava
0 likes · 9 min read
Java Asynchronous Programming: Five Implementation Methods Explained
Su San Talks Tech
Su San Talks Tech
Jul 28, 2022 · Backend Development

Asynchronous Java Programming: Threads, Futures, CompletableFuture & Spring @Async

This article introduces asynchronous programming concepts in Java, explaining how multithreading, Future, FutureTask, CompletableFuture, and Spring's @Async annotation can transform synchronous workflows into high‑throughput, low‑latency solutions, with code examples and practical guidance for implementing each technique.

CompletableFutureJavaSpring Boot
0 likes · 17 min read
Asynchronous Java Programming: Threads, Futures, CompletableFuture & Spring @Async
Sanyou's Java Diary
Sanyou's Java Diary
Jul 4, 2022 · Backend Development

Mastering CompletableFuture: From Basics to RocketMQ Integration

This article introduces Java's CompletableFuture, compares it with Future, explains its core APIs, demonstrates common usage patterns—including creation, result retrieval, chaining, exception handling, and task combination—and shows a practical integration example within RocketMQ's message storage workflow.

AsyncCompletableFutureRocketMQ
0 likes · 15 min read
Mastering CompletableFuture: From Basics to RocketMQ Integration
Architect
Architect
Jul 2, 2022 · Backend Development

Asynchronous Execution Techniques in Spring Boot with CompletableFuture

The article explains multiple methods for implementing asynchronous execution in Spring Boot, covering @Async annotation, Java 8 CompletableFuture, Callable, WebAsyncTask, DeferredResult, Tomcat connection tuning, container switching to Undertow, and async interception, all illustrated with complete code examples.

AsynchronousBackendCompletableFuture
0 likes · 11 min read
Asynchronous Execution Techniques in Spring Boot with CompletableFuture
Cognitive Technology Team
Cognitive Technology Team
Jun 17, 2022 · Backend Development

Why CompletableFuture’s Asynchronous Methods Should Use an Explicitly Provided Thread Pool

The article explains that CompletableFuture offers paired asynchronous methods—one using the default ForkJoinPool and another accepting a custom executor—and argues that providing an explicit thread pool avoids shared‑pool contention, loss of tracing information, ThreadLocal leakage, and class‑loader issues in Java backend applications.

AsynchronousCompletableFutureJava
0 likes · 5 min read
Why CompletableFuture’s Asynchronous Methods Should Use an Explicitly Provided Thread Pool
Top Architect
Top Architect
Jun 17, 2022 · Backend Development

Asynchronous Execution Techniques in Spring Boot: CompletableFuture, @Async, WebAsyncTask, DeferredResult and More

This article explains multiple ways to achieve asynchronous processing in Spring Boot, covering @Async annotation, CompletableFuture, WebAsyncTask, DeferredResult, Tomcat connection tuning, component scanning, Undertow migration, BufferedWriter usage, and AsyncHandlerInterceptor with detailed code examples.

AsyncCompletableFutureDeferredResult
0 likes · 11 min read
Asynchronous Execution Techniques in Spring Boot: CompletableFuture, @Async, WebAsyncTask, DeferredResult and More
Meituan Technology Team
Meituan Technology Team
May 12, 2022 · Backend Development

CompletableFuture: Principles, Usage, and Practical Implementation in Java

The article explains how Java 8’s CompletableFuture enables efficient asynchronous programming—illustrated by Meituan’s order service refactor—by replacing slow synchronous RPC calls with composable, lazy, back‑pressure‑aware futures, offering thread‑pool best practices, robust exception handling, utility helpers, and achieving up to a 45 % latency reduction and fewer servers.

AsynchronousCompletableFutureJava
0 likes · 29 min read
CompletableFuture: Principles, Usage, and Practical Implementation in Java
Java Backend Technology
Java Backend Technology
Apr 30, 2022 · Backend Development

Master Asynchronous Execution in Spring Boot: @Async, CompletableFuture, WebAsyncTask & More

This article explores multiple ways to implement asynchronous processing in Spring Boot, covering @Async with @EnableAsync, CompletableFuture, DeferredResult, WebAsyncTask, AsyncHandlerInterceptor, as well as related server tweaks like increasing Tomcat connections, switching to Undertow, and using @ComponentScan for faster scanning.

AsyncHandlerInterceptorCompletableFutureDeferredResult
0 likes · 11 min read
Master Asynchronous Execution in Spring Boot: @Async, CompletableFuture, WebAsyncTask & More
Java High-Performance Architecture
Java High-Performance Architecture
Apr 13, 2022 · Backend Development

Mastering Asynchronous Execution in Spring Boot: From @Async to CompletableFuture

This article explains multiple ways to implement asynchronous processing in Spring Boot, covering @Async annotation, CompletableFuture, supplyAsync, runAsync, WebAsyncTask, DeferredResult, custom interceptors, and server configuration tweaks such as Tomcat connection limits and switching to Undertow.

AsynchronousCompletableFutureJava
0 likes · 11 min read
Mastering Asynchronous Execution in Spring Boot: From @Async to CompletableFuture
Java High-Performance Architecture
Java High-Performance Architecture
Apr 8, 2022 · Backend Development

Mastering Asynchronous Execution in Spring Boot: An In‑Depth Guide

This article explains how to implement asynchronous processing in Spring Boot using @Async annotations, JDK 8 CompletableFuture, Callable, WebAsyncTask, DeferredResult, and AsyncHandlerInterceptor, providing detailed code examples and configuration tips to improve performance and scalability of backend services.

AsynchronousCompletableFutureJava
0 likes · 10 min read
Mastering Asynchronous Execution in Spring Boot: An In‑Depth Guide
Top Architect
Top Architect
Feb 23, 2022 · Backend Development

Understanding CompletableFuture in Java 8: Implementation, Features, and Source‑Code Analysis

The article explains why CompletableFuture was introduced in JDK 1.8, describes its core features such as thenCompose, thenCombine, thenAccept, thenRun and thenApply, demonstrates usage with Netty's ChannelFuture and detailed source‑code walkthroughs including asyncSupplyStage, AsyncSupply, uniAcceptStage and postComplete, and provides practical code examples and execution results.

AsynchronousCompletableFutureJava
0 likes · 14 min read
Understanding CompletableFuture in Java 8: Implementation, Features, and Source‑Code Analysis
Top Architect
Top Architect
Feb 9, 2022 · Backend Development

Deep Dive into Java CompletableFuture: Implementation, Usage, and Internal Mechanics

This article provides an in‑depth analysis of Java’s CompletableFuture introduced in JDK 8, explaining its motivations, core methods, internal mechanisms such as asyncSupplyStage, thenAcceptAsync, and postComplete, and includes practical code examples to illustrate asynchronous task handling and dependency management.

AsynchronousCompletableFutureJDK8
0 likes · 13 min read
Deep Dive into Java CompletableFuture: Implementation, Usage, and Internal Mechanics
Selected Java Interview Questions
Selected Java Interview Questions
Jan 14, 2022 · Backend Development

Understanding CompletableFuture in Java 8: Overview, Features, and Source‑Code Walkthrough

This article explains Java 8's CompletableFuture, covering its purpose, core features such as thenCompose, thenCombine, thenAccept, thenRun, and thenApply, demonstrates practical code examples, and provides a detailed analysis of the underlying source‑code implementation for asynchronous callbacks.

AsynchronousBackendCompletableFuture
0 likes · 11 min read
Understanding CompletableFuture in Java 8: Overview, Features, and Source‑Code Walkthrough
Programmer DD
Programmer DD
Dec 19, 2021 · Backend Development

Boost Java Performance 4× with CompletableFuture: When and How to Use It

This article explains how to replace synchronous price‑lookup APIs with Java 8's CompletableFuture, compares synchronous and asynchronous performance, introduces the most useful CompletableFuture creation and composition methods, shows practical code examples, and discusses when to prefer it over traditional Future or thread‑pool approaches.

AsynchronousCompletableFutureJDK8
0 likes · 21 min read
Boost Java Performance 4× with CompletableFuture: When and How to Use It
Top Architect
Top Architect
Oct 10, 2021 · Backend Development

Understanding Synchronous and Asynchronous Calls in Spring Boot with @Async and CompletableFuture

This article explains the difference between synchronous and asynchronous method calls in Spring Boot, demonstrates how to convert simple task methods to asynchronous ones using @Async, shows how to coordinate multiple async tasks with CompletableFuture, and provides complete code examples and test results.

AsyncBackend DevelopmentCompletableFuture
0 likes · 9 min read
Understanding Synchronous and Asynchronous Calls in Spring Boot with @Async and CompletableFuture
Code Ape Tech Column
Code Ape Tech Column
Sep 25, 2021 · Backend Development

Understanding Java 8 CompletionStage and CompletableFuture with Practical Examples

This article explains Java 8's CompletionStage API and its standard library implementation CompletableFuture, demonstrating its behavior through a series of concise examples that cover creation, chaining, asynchronous execution, custom executors, exception handling, cancellation, and composition of multiple stages.

BackendCompletableFutureCompletionStage
0 likes · 18 min read
Understanding Java 8 CompletionStage and CompletableFuture with Practical Examples
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Sep 1, 2021 · Backend Development

Boost Spring Boot Order Calls: Sync vs Async with ThreadPool & CompletableFuture

This article compares synchronous and various asynchronous approaches for invoking multiple third‑party services in a Spring Boot order‑creation workflow, demonstrating plain sequential calls, manual thread creation, thread‑pool execution, CompletionService handling, and CompletableFuture composition, and shows their performance impact through timing results.

CompletableFutureJava concurrencySpring Boot
0 likes · 8 min read
Boost Spring Boot Order Calls: Sync vs Async with ThreadPool & CompletableFuture
JavaEdge
JavaEdge
Apr 21, 2021 · Backend Development

Mastering Java Concurrency: When to Use ThreadPool, CompletableFuture, and Fork/Join

The article explains Java’s concurrency utilities—thread pools, Future, CompletableFuture, and CompletionService—and introduces the divide‑and‑conquer Fork/Join framework, detailing its task model, core classes, work‑stealing mechanism, and best practices for CPU‑bound versus I/O‑bound parallel streams.

CompletableFutureForkJoinJava
0 likes · 7 min read
Mastering Java Concurrency: When to Use ThreadPool, CompletableFuture, and Fork/Join