Tagged articles
Async
31 articles · Page 1 of 1
This guide explains how the new JavaScript Array.fromAsync() method converts async iterables, streams, or paginated API responses into clean arrays, offering clear syntax, practical use‑cases, and step‑by‑step code examples for front‑end developers.
APIArray.fromAsyncAsync
0 likes · 5 min read

This article explains why asynchronous programming improves concurrency in SpringBoot applications, describes how to enable @Async support, configure a custom ThreadPoolTaskExecutor, annotate methods for async execution, and outlines the underlying proxy mechanism that powers @Async.
AsyncJavaSpringBoot
0 likes · 5 min read

This article explains the differences between ExecutorService and CompletionService, demonstrates how to replace a simple Future‑based approach with CompletionService for faster result retrieval, analyzes the underlying source code, and outlines typical use‑cases such as load‑balancing and early‑return patterns in concurrent Java applications.
AsyncCompletionServiceConcurrency
0 likes · 12 min read

This article explains four techniques—manual setting, TaskDecorator, InheritableThreadLocal, and TransmittableThreadLocal—for propagating context such as user information from a parent thread to child threads in Spring Boot asynchronous execution, providing code examples and recommendations.
AsyncJavaSpring Boot
0 likes · 14 min read

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.
AsyncCompletableFutureSpring Boot
0 likes · 8 min read

This article explores Spring Boot's asynchronous task and request mechanisms, detailing how @EnableAsync, @Async, @EnableScheduling, and @Async annotations configure thread pools, examines the underlying source code, and demonstrates custom configurations for executors and schedulers to control concurrency.
AsyncConfigurationSpring Boot
0 likes · 14 min read

This guide explains how to enable and use Spring Boot's @Async and @Scheduled annotations, configure various TaskExecutor and TaskScheduler implementations, leverage new Spring 6.1 pause/resume and virtual‑thread features, and apply graceful shutdown for both asynchronous and scheduled jobs.
AsyncSpring 6.1Spring Boot
0 likes · 10 min read


JavaEdgeSep 5, 2024 · Backend Development
This article explains how Spring Boot automatically configures a ThreadPoolTaskExecutor for @Async and @Scheduled, shows the default parameters introduced in version 2.1, demonstrates how to inspect and customize them, compares the default executor with SimpleAsyncTaskExecutor, and provides code examples for using @Async, injecting the executor, and defining a custom thread pool to avoid resource‑exhaustion issues.
AsyncSpring BootTaskExecutionAutoConfiguration
0 likes · 18 min read

This article introduces the high‑performance Caffeine caching library for Spring Boot 3.2, explains its core features, demonstrates detailed performance benchmarks, and provides practical code examples covering synchronous and asynchronous operations, eviction policies, removal listeners, refresh mechanisms, and statistics collection.
AsyncCacheCaffeine
0 likes · 12 min read

Learn how to elegantly process Java 8 date parameters, register custom converters, conditionally enable controllers, apply unified API prefixes, perform service‑layer validation, and control asynchronous request timeouts in Spring Boot 3.2.5 using annotations, configuration files, and programmatic WebMvcConfigurer techniques.
AsyncControllerDATETIME
0 likes · 7 min read

This article explains how Spring's @Async annotation interacts with circular dependencies, why it triggers BeanCurrentlyInCreationException, and provides multiple strategies—including adjusting dependencies, using @Lazy, or tweaking bean factory settings—to solve the problem.
AOPAsyncBeanPostProcessor
0 likes · 14 min read

This article describes a Java‑based asynchronous processing SDK that leverages Spring AOP, transactional event listeners, Kafka, XXL‑Job, and MySQL to provide non‑intrusive, reliable, and eventually consistent background execution of business methods while preserving transaction integrity and offering configurable retry and compensation strategies.
AOPAsyncJava
0 likes · 8 min read

This article explains the common slow approach of reading Excel files with POI and inserting rows via JDBC, then presents three practical optimizations—caching data, using asynchronous multithreaded reads, and per‑file async processing—along with thread‑pool configuration tips and EasyExcel examples to dramatically reduce import time from minutes to seconds.
AsyncExcelJava
0 likes · 17 min read

This article explains why combining Spring's @Async and @Transactional annotations can cause transaction rollback failures, analyzes the proxy mechanisms behind each annotation, reproduces the issue with sample code, and demonstrates how bean ordering affects the outcome.
@TransactionalAsyncSpringBoot
0 likes · 7 min read

This article explains nine typical scenarios that cause the Spring @Async annotation to fail—ranging from missing @EnableAsync to improper method visibility, return types, static or final modifiers, missing @Service, manual object creation, and incorrect component scanning—providing clear explanations and code examples for each case.
AOPAsyncJava
0 likes · 10 min read

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.
AsyncCompletableFutureFuture
0 likes · 18 min read

This article explains how to obtain return values from asynchronous Java methods using FutureTask, covering its AQS foundation, execution flow, get() behavior, and provides concrete source code examples for practical implementation.
AQSAsyncConcurrency
0 likes · 13 min read

This article explains why a naïve sequential export of hundreds of gigabytes of images from a database can take many hours, and demonstrates how adding indexes, using asynchronous processing, multithreading, and eliminating unnecessary decryption and local storage can reduce the runtime to minutes.
AsyncJavaThreadPool
0 likes · 16 min read

This article walks through the common slow Excel‑to‑DB import pattern, shows why it becomes a bottleneck, and presents three progressive optimizations—including caching, asynchronous multi‑threaded reading, and double‑async processing—along with detailed Spring @Async thread‑pool configuration and EasyExcel alternatives, all illustrated with complete Java code samples.
AsyncExcelJava
0 likes · 17 min read

This article explains why asynchronous methods improve response speed in SpringBoot, demonstrates how to enable @Async, implement service and controller code, configure custom thread pools, handle exceptions, and retrieve results, showing measurable performance gains through non‑blocking execution.
AsyncBackendJava
0 likes · 9 min read

This article explains the difference between synchronous and asynchronous calls, demonstrates a synchronous Task example, shows how to convert it to asynchronous execution with Spring Boot's @Async annotation, and introduces Future-based callbacks to coordinate concurrent tasks and measure total execution time.
AsyncConcurrencyFuture
0 likes · 9 min read

Passing an HttpServletRequest into an asynchronous thread in Spring Boot can cause mysterious parameter loss and request‑recycling bugs, because Tomcat reuses request objects; the proper solution is to employ the servlet's startAsync and AsyncContext.complete methods for safe async processing.
AsyncDebuggingHttpServletRequest
0 likes · 20 min read

This article explains the concepts, implementation methods, and best practices for asynchronous requests and asynchronous method calls in Spring Boot, covering servlet‑based async, Callable, WebAsyncTask, DeferredResult, @EnableAsync/@Async usage, thread‑pool configuration, common pitfalls, and the differences between async requests and async calls.
AsyncSpringBootWeb
0 likes · 12 min read

This article explains why Spring Boot's default single‑threaded scheduler can cause timer conflicts in real‑world applications and demonstrates how adding @Async annotations together with a custom ThreadPoolTaskExecutor configuration enables concurrent execution of multiple scheduled tasks.
AsyncJavaMultithreading
0 likes · 6 min read

This article explains how to design and implement a points‑based lottery (luck draw) system in Java with Spring Boot, covering database schema for prizes, probability limits, prize pools, the random draw algorithm, prize restrictions, and asynchronous prize distribution using a factory pattern.
AlgorithmAsyncJava
0 likes · 10 min read

This article explains why and how to use asynchronous methods in Spring Boot to improve interface response speed, covering annotations, custom thread pools, exception handling, returning values, and practical considerations for backend development.
AsyncJavaThreadPool
0 likes · 9 min read

This article explains how to configure and use Spring Boot's ThreadPoolTaskExecutor for asynchronous service methods, shows the required @Configuration and @EnableAsync annotations, demonstrates custom thread‑pool monitoring by extending ThreadPoolTaskExecutor, and provides complete code snippets and log examples.
AsyncJavaSpring Boot
0 likes · 12 min read

This article demonstrates how a Spring Boot thread pool behaves when its core size, max size, and queue capacity are exceeded by multiple asynchronous tasks, explains the resulting TaskRejectedException, and shows how to configure built‑in or custom rejection policies to handle such scenarios.
AsyncConcurrencyJava
0 likes · 9 min read

This article explains why using @Async in Spring Boot can cause memory overflow when many requests trigger parallel tasks, examines the default thread‑pool settings that lead to unbounded queues, and provides step‑by‑step configuration of a safe thread pool to prevent out‑of‑memory failures.
AsyncJavaSpring Boot
0 likes · 11 min read

This article explains the difference between synchronous and asynchronous method calls in Spring Boot, shows how to convert blocking tasks into @Async methods, demonstrates unit‑test setups with CompletableFuture for proper coordination, and provides complete code examples to reduce overall execution time.
AsyncConcurrencyJava
0 likes · 10 min read

This tutorial shows how to replace the default Spring Boot @Async executor with a custom ThreadPoolTaskExecutor, explains each pool parameter, demonstrates annotating async methods to use the pool, and provides a unit test that verifies the thread naming and execution behavior.
AsyncConcurrencyJava
0 likes · 6 min read
