Spring Boot @Async in Production: From Default Pitfalls to Thread Pool Governance
This article details Spring Boot @Async production pitfalls including unbounded thread creation, context loss, swallowed exceptions, and OOM risks, then provides concrete solutions: explicit ThreadPoolTaskExecutor configuration with bounded queues, TaskDecorator for MDC/TraceId/SecurityContext propagation, global exception handling, CompletableFuture orchestration without blocking, and monitoring with dynamic tuning to prevent thread leaks and OOM.
