Tag

thread pool

0 views collected around this technical thread.

Java Architect Essentials
Java Architect Essentials
Jun 6, 2025 · Fundamentals

Unlocking Java Thread Pools: How ThreadPoolExecutor Works Under the Hood

This article demystifies Java's ThreadPoolExecutor, explaining why thread pools improve performance, detailing their design analogy to factories, exploring constructors, task queues, rejection policies, worker lifecycle, and practical usage examples, while also covering initialization, shutdown, and dynamic resizing techniques for robust backend development.

ConcurrencyJavaThreadPoolExecutor
0 likes · 35 min read
Unlocking Java Thread Pools: How ThreadPoolExecutor Works Under the Hood
Java Architect Essentials
Java Architect Essentials
May 25, 2025 · Backend Development

Simplifying Asynchronous Tasks in Spring Boot with @Async Annotation

Spring Boot's @Async annotation enables developers to replace manual thread and thread‑pool management with simple method annotations, providing automatic asynchronous execution, customizable thread pools, and flexible return types such as Future and CompletableFuture, thereby streamlining code, improving efficiency, and reducing complexity in backend services.

AsyncJavaSpringBoot
0 likes · 7 min read
Simplifying Asynchronous Tasks in Spring Boot with @Async Annotation
Selected Java Interview Questions
Selected Java Interview Questions
May 16, 2025 · Backend Development

Choosing the Right Number of Threads for Java Applications: CPU Utilization and Performance

This article experimentally examines how thread count, CPU‑bound versus I/O‑bound workloads, and context‑switch overhead affect CPU utilization in Java, presents a practical formula for estimating optimal threads, and advises testing and tuning rather than relying on fixed rules.

CPU utilizationCPU-boundI/O bound
0 likes · 9 min read
Choosing the Right Number of Threads for Java Applications: CPU Utilization and Performance
Deepin Linux
Deepin Linux
Apr 20, 2025 · Backend Development

Understanding IOCP: Windows Asynchronous I/O Completion Port

This article explains the IOCP (I/O Completion Port) mechanism in Windows, covering its principles, advantages, core components, workflow, practical usage steps with code examples, comparisons to other asynchronous models, and common pitfalls such as thread synchronization, memory management, error handling, and load balancing.

IOCPNetwork ProgrammingPerformance
0 likes · 31 min read
Understanding IOCP: Windows Asynchronous I/O Completion Port
Cognitive Technology Team
Cognitive Technology Team
Apr 15, 2025 · Backend Development

Using Traceable Thread Pools in Spring Cloud to Preserve Trace Context

This article explains why and how to enforce the use of trace‑aware thread pools in Spring Cloud, presenting three approaches—including TraceableExecutorService, Tracer.currentTraceContext().wrap, and TraceCallable/TraceRunnable—to prevent loss of distributed tracing information in multithreaded applications.

JavaSleuthSpring Cloud
0 likes · 4 min read
Using Traceable Thread Pools in Spring Cloud to Preserve Trace Context
Cognitive Technology Team
Cognitive Technology Team
Apr 11, 2025 · Backend Development

Hystrix Service Isolation: Thread‑Pool and Semaphore Isolation Patterns

The article explains how Hystrix uses thread‑pool and semaphore isolation to prevent cascading failures in microservice architectures, detailing implementation, configuration defaults, suitable scenarios, and recommendations for building resilient distributed systems.

HystrixMicroservicesresilience
0 likes · 5 min read
Hystrix Service Isolation: Thread‑Pool and Semaphore Isolation Patterns
Cognitive Technology Team
Cognitive Technology Team
Apr 2, 2025 · Operations

Understanding and Analyzing Java Thread Dumps for Performance Troubleshooting

Thread dumps provide a snapshot of all active JVM threads, including their state, stack trace, and metadata, enabling developers to diagnose performance issues such as slow responses, high CPU usage, deadlocks, and thread pool inefficiencies by examining key fields and applying practical analysis techniques.

CPU ProfilingJVMJava performance
0 likes · 12 min read
Understanding and Analyzing Java Thread Dumps for Performance Troubleshooting
Code Ape Tech Column
Code Ape Tech Column
Mar 24, 2025 · Backend Development

Optimizing Large-Scale Excel Import/Export in Java with EasyExcel, Generics, and Thread Pools

This article explains how to efficiently handle massive Excel import and export tasks in Java by using EasyExcel, Java 8 functional programming, reflection, generics, thread‑pool batching, and custom ReadListener implementations, while also providing Maven dependencies and reusable export utilities.

EasyExcelExcel importJava
0 likes · 10 min read
Optimizing Large-Scale Excel Import/Export in Java with EasyExcel, Generics, and Thread Pools
Top Architect
Top Architect
Feb 25, 2025 · Backend Development

Understanding Tomcat Configuration and Thread Pool Parameters in Spring Boot 2.7.10

This article explains the default Tomcat settings in Spring Boot 2.7.10, details core parameters such as connection queue length, max connections, thread pool sizes, keep-alive and timeout options, and demonstrates how to inspect and test these configurations with code examples and command-line tools.

JavaSpring BootTomcat
0 likes · 16 min read
Understanding Tomcat Configuration and Thread Pool Parameters in Spring Boot 2.7.10
Java Tech Enthusiast
Java Tech Enthusiast
Feb 5, 2025 · Backend Development

Optimizing Large-Scale Excel Import/Export in Java with EasyExcel and Thread Pools

By combining EasyExcel’s low‑memory parsing with Java 8 functional style, reflection‑based generic annotations, a thread‑pool‑driven batch listener, and flexible export utilities that support dynamic headers and map‑based rows, Java back‑ends can safely import and export millions of Excel rows without OOM errors.

Data ProcessingEasyExcelExcel import
0 likes · 13 min read
Optimizing Large-Scale Excel Import/Export in Java with EasyExcel and Thread Pools
Selected Java Interview Questions
Selected Java Interview Questions
Jan 7, 2025 · Backend Development

Spring Boot Asynchronous Processing: Principles, Configuration, and Practical Use Cases

This article explains Spring Boot’s asynchronous processing mechanism, covering its purpose, the @Async annotation, configuration steps, custom thread pool setup, handling return values, and typical use cases, enabling developers to improve performance and responsiveness in backend applications.

JavaSpring Bootasynchronous processing
0 likes · 9 min read
Spring Boot Asynchronous Processing: Principles, Configuration, and Practical Use Cases
Top Architect
Top Architect
Dec 15, 2024 · Backend Development

Deep Dive into Spring Boot 2.7.10 Embedded Tomcat Configuration, Thread Management and Performance Testing

This article provides a comprehensive analysis of Spring Boot 2.7.10's embedded Tomcat 9.0.73 default settings, core parameters, internal thread architecture, configuration examples, performance testing with various concurrent connections, and includes detailed code snippets and diagrams, while also containing promotional material for AI services.

ConfigurationPerformanceSpring Boot
0 likes · 17 min read
Deep Dive into Spring Boot 2.7.10 Embedded Tomcat Configuration, Thread Management and Performance Testing
Java Architect Essentials
Java Architect Essentials
Dec 11, 2024 · Databases

Redis Expiration Listener: Scenario Testing and Performance Analysis

This article examines the pitfalls of using Redis key‑expiration notifications for delayed business actions, presents a Docker‑based benchmark, provides Spring‑Boot code for scheduling and listening to expirations, and analyzes how notification latency grows as the number of keys increases.

JavaKey ExpirationPerformance Testing
0 likes · 11 min read
Redis Expiration Listener: Scenario Testing and Performance Analysis
Architecture Development Notes
Architecture Development Notes
Nov 22, 2024 · Fundamentals

Master Rust Thread Pools: Build a Custom Concurrent Executor

This guide explains the fundamentals of thread pools, how task scheduling works, and provides a step‑by‑step tutorial for building a custom, efficient thread‑pool implementation in Rust, complete with code examples and an exercise to test concurrent task execution.

ConcurrencyCustom ExecutorParallelism
0 likes · 7 min read
Master Rust Thread Pools: Build a Custom Concurrent Executor
JD Tech Talk
JD Tech Talk
Nov 20, 2024 · Backend Development

Design and Evaluation of Multiple Backend Excel Import Solutions for B2BTC Local Phase II

This article presents a detailed case study of four backend design alternatives for importing Excel data—ranging from synchronous processing to asynchronous pipelines with thread pools, message queues, and Redis locks—analyzing their advantages, drawbacks, and suitable scenarios.

Excel importRedisasynchronous processing
0 likes · 10 min read
Design and Evaluation of Multiple Backend Excel Import Solutions for B2BTC Local Phase II
Code Ape Tech Column
Code Ape Tech Column
Nov 8, 2024 · Backend Development

Implementing a Dynamic Thread Pool with Nacos in Spring Boot

This article explains how to externalize and dynamically adjust a Spring Boot thread pool's core and maximum sizes using Nacos as a configuration center, allowing runtime changes without service restarts and demonstrating the setup, code, and testing procedures.

Dynamic ConfigurationJavaNacos
0 likes · 9 min read
Implementing a Dynamic Thread Pool with Nacos in Spring Boot
macrozheng
macrozheng
Oct 24, 2024 · Backend Development

Master Java Thread Pools: Boost Performance and Avoid Resource Pitfalls

This article explains why creating a thread for each task is inefficient, introduces thread pools as a solution, compares execution times with code examples, details ThreadPoolExecutor's core interfaces, constructors, execution flow, rejection policies, state transitions, and provides practical usage patterns and best‑practice recommendations for Java backend development.

ConcurrencyExecutorServiceJava
0 likes · 28 min read
Master Java Thread Pools: Boost Performance and Avoid Resource Pitfalls
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Oct 13, 2024 · Backend Development

How Spring Boot Handles Async Tasks and Thread Pools: Deep Dive & Customization

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.

AsyncConfigurationJava
0 likes · 14 min read
How Spring Boot Handles Async Tasks and Thread Pools: Deep Dive & Customization
Java Tech Enthusiast
Java Tech Enthusiast
Sep 10, 2024 · Backend Development

Thread Pool Data Persistence in Java Systems

The article explains how using a database‑backed persistence layer for Java thread‑pool tasks prevents data loss during service downtime by storing tasks before submission, tracking status and retries, and employing idempotent processing with configurable pool sizes and scheduled reprocessing of failed or pending jobs.

Data PersistenceError HandlingJava
0 likes · 7 min read
Thread Pool Data Persistence in Java Systems