Tagged articles

thread pool tuning

2 articles · Page 1 of 1
Architecture Digest
Architecture Digest
Aug 18, 2026 · Backend Development

How to Design a ThreadPool to Send 10 Million SMS in One Hour – Interview Insights

Sending 10 million marketing SMS within an hour forces careful thread‑pool design: avoid unbounded queues that cause OOM, choose a bounded ThreadPoolExecutor, dynamically tune core/max sizes, use CallerRunsPolicy for natural back‑pressure, and add persistence and compensation mechanisms to guarantee reliability.

BackpressureHigh ConcurrencyJava concurrency
0 likes · 8 min read
How to Design a ThreadPool to Send 10 Million SMS in One Hour – Interview Insights
Xiaolin Talks Programming
Xiaolin Talks Programming
Jun 16, 2026 · Backend Development

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.

@AsyncCompletableFutureJava concurrency
0 likes · 19 min read
Spring Boot @Async in Production: From Default Pitfalls to Thread Pool Governance