Tag

ConnectionPooling

1 views collected around this technical thread.

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
Top Architect
Top Architect
Sep 12, 2023 · Backend Development

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

This article explains how to dramatically reduce HttpClient request latency from 250 ms to about 80 ms in a high‑traffic service by using a singleton client, connection pooling, keep‑alive strategies, proper timeout settings, and efficient response handling, complete with code examples.

BackendConnectionPoolingHttpClient
0 likes · 15 min read
Optimizing HttpClient for High‑Concurrency Scenarios: Pooling, Keep‑Alive, and Configuration
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.

BackendConnectionPoolingHttpClient
0 likes · 16 min read
Analysis and Optimization of HttpClient Connection Management in High‑Concurrency Scenarios
Zhuanzhuan Tech
Zhuanzhuan Tech
Aug 1, 2021 · Backend Development

Investigation of HttpClient Connection Reuse Issue and Tomcat maxKeepAliveRequests Setting

The article documents a systematic investigation of why an Apache HttpClient‑based utility class fails to reuse connections, reproduces the problem with a test server and client, analyzes Tomcat's default maxKeepAliveRequests limit of 100, and provides recommendations for configuration.

BackendConnectionPoolingHttpClient
0 likes · 7 min read
Investigation of HttpClient Connection Reuse Issue and Tomcat maxKeepAliveRequests Setting