Tagged articles
10 articles
Page 1 of 1
Java Architect Essentials
Java Architect Essentials
Feb 23, 2024 · Backend Development

Optimizing Apache HttpClient for High-Concurrency Scenarios

This article explains how to improve a high‑traffic Java service by reusing a singleton HttpClient, enabling keep‑alive, configuring a pooling connection manager, and adding an idle‑connection monitor, which reduces average request latency from 250 ms to about 80 ms.

BackendConnectionPoolingHttpClient
0 likes · 11 min read
Optimizing Apache HttpClient for High-Concurrency Scenarios
Architect
Architect
Jan 1, 2024 · Backend Development

Optimizing Apache HttpClient for High-Concurrency Scenarios

This article details a step‑by‑step optimization of Apache HttpClient—including connection pooling, keep‑alive, singleton client usage, timeout tuning, and response handling—to reduce average request latency from 250 ms to about 80 ms in a high‑throughput Java service.

BackendConnectionPoolingHttpClient
0 likes · 12 min read
Optimizing Apache HttpClient for High-Concurrency Scenarios
Java Architect Essentials
Java Architect Essentials
Sep 30, 2023 · Backend Development

Optimizing Apache HttpClient for High Concurrency: Pooling, Keep‑Alive, and Configuration

This article explains how to dramatically improve the performance of a high‑traffic Java service by reusing a singleton HttpClient, enabling connection pooling and keep‑alive, tuning timeout and retry settings, and adding an idle‑connection monitor to reduce average request latency from 250 ms to about 80 ms.

BackendConnectionPoolingHttpClient
0 likes · 13 min read
Optimizing Apache HttpClient for High Concurrency: Pooling, Keep‑Alive, and Configuration
Alibaba Cloud Developer
Alibaba Cloud Developer
Sep 15, 2023 · Databases

Why Your JedisPool Keeps Recreating Connections and How to Fix It in Spring Boot

This article investigates why a Spring Boot application using JedisPool experiences high connection‑acquisition latency, analyzes the Evictor logic and mis‑configured pool parameters, and presents a custom configuration solution that stabilizes the pool and eliminates repeated connection creation and destruction.

ConnectionPoolingEvictorJedisPool
0 likes · 15 min read
Why Your JedisPool Keeps Recreating Connections and How to Fix It in Spring Boot
High Availability Architecture
High Availability Architecture
Sep 7, 2022 · Backend Development

Analysis and Optimization of HttpClient Connection Management in High‑Concurrency Scenarios

The article investigates frequent HttpClient connection‑pool exhaustion caused by excessive CLOSE_WAIT sockets in a high‑traffic Java service, explains the underlying TCP and HttpClient mechanisms, presents diagnostic commands and code snippets, and offers concrete configuration and architectural recommendations to prevent similar issues.

ConnectionPoolingHttpClientJava
0 likes · 16 min read
Analysis and Optimization of HttpClient Connection Management in High‑Concurrency Scenarios
Xianyu Technology
Xianyu Technology
Jan 10, 2019 · Backend Development

Why Your Java HttpClient Leaks Files and How to Fix It

An in‑depth experiment shows that using Apache HttpClient 3.x without proper connection management quickly exhausts Linux file descriptors, causing “too many open files” errors, and explains the underlying fd limits, the role of SimpleHttpConnectionManager, and provides correct usage patterns for both HttpClient 3.x and 4.x, including connection pooling and idle‑connection cleanup.

ApacheHttpComponentsConnectionPoolingHttpClient
0 likes · 17 min read
Why Your Java HttpClient Leaks Files and How to Fix It