Tagged articles

ThreadPoolTaskExecutor

16 articles · Page 1 of 1
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 18, 2026 · Backend Development

Avoid Hidden Performance Landmines: 7 Common Spring Boot Production Pitfalls

The article identifies seven common performance killers in Spring Boot production—N+1 queries, unbounded thread pools, excessive logging, oversized response bodies, missing indexes, synchronous external API calls, and serial API invocations—and provides concrete code‑level solutions such as eager fetching, custom thread pools, lazy logging, DTOs, index creation, timeout configuration, and CompletableFuture parallelism.

CompletableFutureDTOLogging
0 likes · 10 min read
Avoid Hidden Performance Landmines: 7 Common Spring Boot Production Pitfalls
Java Tech Workshop
Java Tech Workshop
Jun 10, 2026 · Backend Development

Mastering SpringBoot @Async: Thread‑Pool Configuration, Pitfalls, and Best Practices

The article explains why @Async, the most used async solution in SpringBoot, often causes OOM, missing trace IDs, silent failures, and task avalanches, and then walks through the underlying AOP mechanism, thread‑pool choices, timeout handling, context propagation, transaction interactions, monitoring, and dynamic tuning.

CompletableFutureMDCThreadPool
0 likes · 13 min read
Mastering SpringBoot @Async: Thread‑Pool Configuration, Pitfalls, and Best Practices
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Sep 11, 2024 · Backend Development

Mastering Async and Scheduled Tasks in Spring Boot 3.2.5

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
Mastering Async and Scheduled Tasks in Spring Boot 3.2.5
JavaEdge
JavaEdge
Sep 5, 2024 · Backend Development

Mastering Spring Boot Thread Pools: From Default Config to Custom Solutions

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
Mastering Spring Boot Thread Pools: From Default Config to Custom Solutions
Java Architect Essentials
Java Architect Essentials
Apr 19, 2024 · Backend Development

Improving Million-Scale Data Insertion Efficiency with Spring Boot ThreadPoolTaskExecutor

This article demonstrates how to boost the performance of inserting over two million records by configuring a ThreadPoolTaskExecutor in a Spring Boot application, providing detailed implementation code, test results comparing multithreaded and single‑threaded approaches, and practical recommendations for optimal thread pool sizing.

BatchInsertPerformanceTestingPostgreSQL
0 likes · 6 min read
Improving Million-Scale Data Insertion Efficiency with Spring Boot ThreadPoolTaskExecutor
Top Architect
Top Architect
Nov 20, 2023 · Backend Development

Using @Async in Spring Boot: Configuration, Best Practices, and Common Pitfalls

This article explains how to enable and configure Spring Boot's @Async annotation, provides code examples for thread‑pool setup and asynchronous service methods, and discusses important caveats such as calling async methods from the same class, transaction incompatibility, blocking issues, and exception handling.

JavaSpring BootThreadPoolTaskExecutor
0 likes · 12 min read
Using @Async in Spring Boot: Configuration, Best Practices, and Common Pitfalls
Top Architect
Top Architect
Nov 3, 2022 · Backend Development

Improving Million-Row Insert Performance with Spring Boot ThreadPoolTaskExecutor

This article demonstrates how to boost the efficiency of inserting millions of records by configuring a ThreadPoolTaskExecutor in Spring Boot 2.1.1, using MyBatis‑Plus and PostgreSQL, providing code examples, performance test results, and best‑practice recommendations for multithreaded batch insertion.

BatchInsertMybatisPlusPostgreSQL
0 likes · 7 min read
Improving Million-Row Insert Performance with Spring Boot ThreadPoolTaskExecutor
Cognitive Technology Team
Cognitive Technology Team
Oct 9, 2022 · Backend Development

Seven Core Parameters of ThreadPoolTaskExecutor: Detailed Explanation and Best Practices

This article explains the seven essential configuration parameters of Java's ThreadPoolTaskExecutor, covering thread creation, core and maximum pool sizes, keep‑alive policies, work queues, thread factories, rejection handlers, and practical usage tips with code examples and common pitfalls.

JavaThreadPoolExecutorThreadPoolTaskExecutor
0 likes · 10 min read
Seven Core Parameters of ThreadPoolTaskExecutor: Detailed Explanation and Best Practices
Top Architect
Top Architect
Oct 13, 2021 · Backend Development

Using ThreadPoolTaskExecutor for Asynchronous Operations in Spring Boot

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
Using ThreadPoolTaskExecutor for Asynchronous Operations in Spring Boot
Top Architect
Top Architect
Sep 22, 2021 · Backend Development

Using ThreadPoolTaskExecutor and @Async for Asynchronous Processing in Spring Boot

This article explains how to configure a Spring Boot ThreadPoolTaskExecutor, enable asynchronous execution with @Async, create a custom visible executor to log pool statistics, and demonstrates the complete workflow with code examples and runtime logs for improving database insert performance.

JavaSpring BootThreadPoolTaskExecutor
0 likes · 12 min read
Using ThreadPoolTaskExecutor and @Async for Asynchronous Processing in Spring Boot