Tagged articles
43 articles
Page 1 of 1
Liangxu Linux
Liangxu Linux
Nov 25, 2025 · Databases

Why a Single MySQL Connection Can Take 200 ms – A Wireshark Deep Dive

This article measures the exact time cost of establishing a MySQL connection from Java, breaks down the TCP handshake, authentication, and protocol steps with Wireshark captures, and shows why connection pooling is essential for high‑traffic web applications.

Connection PoolingDatabase ConnectionJava
0 likes · 8 min read
Why a Single MySQL Connection Can Take 200 ms – A Wireshark Deep Dive
Tech Freedom Circle
Tech Freedom Circle
Nov 18, 2025 · Backend Development

Optimizing Internal HTTP Calls: From Head‑of‑Line Blocking to High‑Performance Microservices

This article dissects the hidden technical debt of internal HTTP APIs, explains why HTTP/1.1 causes head‑of‑line blocking, redundant headers and serialization overhead, and walks through a step‑by‑step, data‑driven optimization roadmap—including HTTP/2, Protobuf, request aggregation, connection pooling, compression, caching, async processing, observability, and safe gray‑release deployment—backed by concrete benchmarks and code samples.

Connection PoolingHTTP/2Microservices
0 likes · 32 min read
Optimizing Internal HTTP Calls: From Head‑of‑Line Blocking to High‑Performance Microservices
dbaplus Community
dbaplus Community
Nov 2, 2025 · Databases

How a Simple PgBouncer Switch Saved Us $10 Million in Cloud Costs

When a sudden 38% rise in AWS bills revealed hidden connection‑storm costs in a Kubernetes‑based microservice architecture, the team introduced PgBouncer as a transaction‑pooling proxy, slashing database connections from over 14,000 to under 400 and cutting monthly cloud spend by more than $300,000, ultimately saving $10.8 million over three years.

Connection PoolingCost OptimizationKubernetes
0 likes · 9 min read
How a Simple PgBouncer Switch Saved Us $10 Million in Cloud Costs
Ray's Galactic Tech
Ray's Galactic Tech
Sep 24, 2025 · Backend Development

Why Cloudflare’s Pingora Outperforms Nginx: Design, Architecture, and Benchmarks

Pingora, Cloudflare’s next‑generation proxy built with Rust and Tokio, addresses Nginx’s limitations in large‑scale deployments by introducing a global shared connection pool, asynchronous multithreaded scheduling, programmable hooks, and zero‑downtime hot updates, delivering up to 4× throughput and 70% lower CPU usage.

AsynchronousCloudflareConnection Pooling
0 likes · 8 min read
Why Cloudflare’s Pingora Outperforms Nginx: Design, Architecture, and Benchmarks
Architect's Guide
Architect's Guide
Apr 6, 2025 · Databases

Analyzing MySQL Connection Latency in Java Applications

This article investigates the time cost of establishing and closing MySQL connections in Java web applications, using Wireshark packet captures and code examples to demonstrate that a single connection can take over 200 ms, highlighting the importance of connection pooling and performance optimizations.

Connection PoolingDatabase ConnectionJava
0 likes · 7 min read
Analyzing MySQL Connection Latency in Java Applications
Architect's Guide
Architect's Guide
Feb 12, 2025 · Databases

Analyzing MySQL Database Connection Latency in Java Applications

This article investigates the time cost of establishing and closing a MySQL connection from a Java web application, using Wireshark packet captures and simple code examples to quantify latency and illustrate why connection pooling is essential for high‑traffic services.

Connection PoolingDatabase ConnectionJava
0 likes · 7 min read
Analyzing MySQL Database Connection Latency in Java Applications
Top Architecture Tech Stack
Top Architecture Tech Stack
Jan 14, 2025 · Databases

Analyzing MySQL Connection Latency in Java Web Applications

This article investigates the detailed steps and time consumption of establishing and closing a MySQL connection from a Java web application, using Wireshark packet captures and code examples to demonstrate why connection pooling is essential for high‑traffic services.

Connection PoolingDatabase ConnectionJava
0 likes · 7 min read
Analyzing MySQL Connection Latency in Java Web Applications
IT Services Circle
IT Services Circle
Dec 5, 2024 · Databases

Understanding High-Concurrency Connection Issues in PostgreSQL and the Benefits of Using pgBouncer

The article explains how thousands of simultaneous client connections to a single PostgreSQL primary can cause severe write‑performance degradation, how introducing a connection pool such as pgBouncer reduces active backend processes dramatically, and why external pooling is preferred over built‑in solutions, illustrated with real‑world examples and a reference to the open‑source Pigsty distribution.

Connection PoolingDatabase ArchitecturePgBouncer
0 likes · 7 min read
Understanding High-Concurrency Connection Issues in PostgreSQL and the Benefits of Using pgBouncer
Java Captain
Java Captain
Mar 28, 2024 · Databases

Analyzing the Cost of Establishing MySQL Database Connections in Java Applications

This article investigates the time overhead of establishing MySQL database connections in Java web applications, detailing the TCP handshake, authentication steps, and measured latency using Wireshark, and demonstrates why connection pooling is essential to avoid hundreds of milliseconds per request.

Connection PoolingDatabase ConnectionJava
0 likes · 7 min read
Analyzing the Cost of Establishing MySQL Database Connections in Java Applications
Java High-Performance Architecture
Java High-Performance Architecture
Sep 23, 2023 · Backend Development

From JDBC to MyBatis: Why Java Persistence Evolved and How to Optimize It

This article walks through the step‑by‑step JDBC query process, explains why wrapping JDBC in a framework like MyBatis is beneficial, analyzes MyBatis’s core components and execution flow, and presents five practical optimizations—from connection pooling to dynamic SQL and result caching—to improve Java backend performance.

Connection PoolingDesign PatternsJDBC
0 likes · 35 min read
From JDBC to MyBatis: Why Java Persistence Evolved and How to Optimize It
dbaplus Community
dbaplus Community
Sep 21, 2023 · Databases

Why Smaller DB Connection Pools Boost Performance: Real-World Test Insights

Through a detailed analysis of Oracle and PostgreSQL benchmarks, this article reveals why reducing database connection pool size—often to far fewer than the number of concurrent users—significantly cuts wait times and response latency, and provides a practical formula for sizing pools based on CPU cores and disk resources.

BenchmarkConnection Poolingdatabases
0 likes · 10 min read
Why Smaller DB Connection Pools Boost Performance: Real-World Test Insights
MaGe Linux Operations
MaGe Linux Operations
Sep 11, 2023 · Backend Development

How to Cut HttpClient Latency by 70% with Connection Pooling and Keep-Alive

By refactoring a high‑traffic Java service to use a singleton HttpClient, enable connection pooling with a custom keep‑alive strategy, and fine‑tune timeout and retry settings, the average request time dropped from 250 ms to about 80 ms, dramatically improving throughput and stability.

Connection PoolingHttpClientKeep-Alive
0 likes · 13 min read
How to Cut HttpClient Latency by 70% with Connection Pooling and Keep-Alive
Architecture Digest
Architecture Digest
Sep 11, 2023 · Backend Development

Optimizing Apache HttpClient for High-Concurrency Scenarios

This article details practical optimization techniques for Apache HttpClient—including connection pooling, keep-alive, singleton client usage, proper timeout settings, and asynchronous handling—to reduce average request latency from 250 ms to about 80 ms in a ten-million-calls-per-day service.

Backend DevelopmentConnection PoolingHttpClient
0 likes · 11 min read
Optimizing Apache HttpClient for High-Concurrency Scenarios
JD Tech
JD Tech
Aug 25, 2023 · Databases

Reducing Sharding-JDBC Database Connection Count: Analysis and Custom Partitioning Optimization

This article examines the high connection‑count problem of Sharding-JDBC in JD Logistics, explains sharding concepts, compares four mitigation strategies, and presents a custom table‑partitioning algorithm with configuration changes that dramatically lowers MySQL instance connections while maintaining performance.

Connection PoolingSharding-JDBCcustom sharding algorithm
0 likes · 16 min read
Reducing Sharding-JDBC Database Connection Count: Analysis and Custom Partitioning Optimization
dbaplus Community
dbaplus Community
Feb 14, 2023 · Databases

10 Common PostgreSQL Mistakes and How to Avoid Them

This article outlines the ten most frequent PostgreSQL pitfalls—from default configurations and poor schema design to inadequate backups and mismanaged extensions—providing concrete SQL queries, tuning tools, and best‑practice recommendations to help DBAs detect, diagnose, and prevent each issue before it harms production workloads.

BackupConnection PoolingDatabase Administration
0 likes · 16 min read
10 Common PostgreSQL Mistakes and How to Avoid Them
JD Tech Talk
JD Tech Talk
Dec 7, 2022 · Backend Development

Using Redis in Rust: Singleton Pattern and Connection Pooling with r2d2

This article explains how to integrate Redis into a Rust backend by defining resource structs, wrapping the redis‑rs client, implementing a connection manager for r2d2, creating a global singleton pool with OnceCell, and demonstrating basic CRUD operations through example code.

Connection Poolingbackend-developmentoncecell
0 likes · 8 min read
Using Redis in Rust: Singleton Pattern and Connection Pooling with r2d2
Aikesheng Open Source Community
Aikesheng Open Source Community
Aug 4, 2022 · Databases

Analysis of MySQL Router “Too Many Connections” Error in Versions 8.0.29/8.0.30 and Work‑around

The article investigates why MySQL Router 8.0.29/8.0.30 reports “ERROR 1040 (HY000): Too many connections to MySQL Router” even when the backend MySQL server has only a few connections, reproduces the issue, analyzes packet traces, and concludes that the problem exists in those versions but not in 8.0.28 or 8.0.21, likely due to a new connection‑pooling feature.

Connection PoolingMySQL RouterTCP connection
0 likes · 7 min read
Analysis of MySQL Router “Too Many Connections” Error in Versions 8.0.29/8.0.30 and Work‑around
Selected Java Interview Questions
Selected Java Interview Questions
Jun 9, 2022 · Backend Development

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

This article explains how to dramatically reduce the average response time of a high‑traffic Java service from 250 ms to about 80 ms by applying HttpClient pooling, keep‑alive strategies, proper timeout settings, and idle‑connection monitoring, complete with code examples and configuration details.

Backend DevelopmentConnection PoolingHttpClient
0 likes · 11 min read
Optimizing Apache HttpClient for High‑Concurrency: Connection Pooling, Keep‑Alive, and Configuration
Top Architect
Top Architect
Apr 14, 2022 · Databases

Analyzing the Cost of Establishing MySQL Database Connections in Java

This article investigates how much time a simple Java program spends establishing and closing a MySQL connection, measures the latency of each TCP and MySQL handshake step with Wireshark, and demonstrates why connection pooling is essential for high‑traffic web services.

Connection PoolingDatabase ConnectionJava
0 likes · 8 min read
Analyzing the Cost of Establishing MySQL Database Connections in Java
Aikesheng Open Source Community
Aikesheng Open Source Community
Aug 11, 2021 · Databases

Using MySQL 8.0 Administrative Connection Interface to Solve “Too Many Connections” Errors

The article explains why MySQL can hit the max_connections limit, introduces the MySQL 8.0 administrative connection interface and its configuration variables, demonstrates how to create a privileged user and test connection limits with code examples, and offers best‑practice recommendations to prevent connection saturation.

Administrative Connection InterfaceConnection PoolingDatabase Administration
0 likes · 9 min read
Using MySQL 8.0 Administrative Connection Interface to Solve “Too Many Connections” Errors
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Jun 7, 2021 · Backend Development

Achieving High Concurrency, High Performance, and High Availability in Backend Systems

This article explains how to design backend architectures that meet the "three high" goals—high concurrency, high performance, and high availability—by using load balancing, connection pooling, traffic filtering, multi‑level caching, log optimization, and failover strategies.

Backend ArchitectureConnection Poolinghigh concurrency
0 likes · 12 min read
Achieving High Concurrency, High Performance, and High Availability in Backend Systems
58 Tech
58 Tech
May 21, 2021 · Backend Development

Designing High‑Concurrency Systems with PHP Object Pooling and Swoole IPC

The article explains the core idea of pooling to trade space for time, analyzes the shortcomings of in‑process connection pools in PHP‑FPM, proposes long‑connection and cross‑process pooling solutions using Swoole’s IPC mechanisms, and demonstrates significant CPU and latency improvements in a real‑world high‑concurrency backend.

Connection PoolingIPCPHP
0 likes · 9 min read
Designing High‑Concurrency Systems with PHP Object Pooling and Swoole IPC
360 Quality & Efficiency
360 Quality & Efficiency
Mar 5, 2021 · Databases

Asynchronous MySQL Operations with aiomysql and SQLAlchemy in Python

This tutorial explains how to perform asynchronous MySQL operations in Python using aiomysql, covering basic connections, CRUD actions, safe parameter handling to prevent SQL injection, connection pooling, transaction management, integration with SQLAlchemy for ORM queries, and a custom reconnection wrapper for resilient database access.

Connection PoolingPythonSQLAlchemy
0 likes · 38 min read
Asynchronous MySQL Operations with aiomysql and SQLAlchemy in Python
Architect
Architect
Feb 12, 2021 · Backend Development

Understanding Nginx Architecture: Daemon Processes, Workers, Connections, and Core Data Structures

This article explains Nginx's high‑performance architecture, covering its daemon mode with master and worker processes, the thundering‑herd problem, advantages of process‑based concurrency, asynchronous non‑blocking I/O, connection handling, keep‑alive and pipeline techniques, as well as key internal data structures such as arrays, queues, lists, strings, memory pools, hash tables, and red‑black trees.

Backend DevelopmentConnection PoolingData Structures
0 likes · 18 min read
Understanding Nginx Architecture: Daemon Processes, Workers, Connections, and Core Data Structures
Test Development Learning Exchange
Test Development Learning Exchange
Dec 31, 2019 · Fundamentals

Multithreading Concepts: Locks, Deadlock, Recursive Locks, and Daemon Threads

This article explains multithreading fundamentals, covering thread concepts, lock mechanisms for database access, deadlock causes and solutions, recursive locks (RLock), data race issues, and daemon thread behavior. It also discusses connection pooling, timeout strategies to avoid deadlock, and practical code examples in Python.

Connection PoolingDaemon ThreadLocks
0 likes · 6 min read
Multithreading Concepts: Locks, Deadlock, Recursive Locks, and Daemon Threads
NetEase Game Operations Platform
NetEase Game Operations Platform
Apr 4, 2019 · Databases

Deep Dive into mongos Connection Model and Adaptive Thread Pools in MongoDB

This article explains how MongoDB's mongos router manages client‑to‑mongos and mongos‑to‑mongod connections, compares the default per‑connection‑per‑thread model with the adaptive thread‑pool introduced in version 3.6, details the internal traditional and ASIO connection pools, relevant configuration parameters, and provides practical guidance on interpreting connection‑pool statistics.

Connection PoolingDatabase operationsMongoDB
0 likes · 21 min read
Deep Dive into mongos Connection Model and Adaptive Thread Pools in MongoDB
Aikesheng Open Source Community
Aikesheng Open Source Community
Dec 30, 2018 · Operations

Analysis of TCP Connection Failures Caused by ARP Queue Length (unres_qlen) in Linux Kernels

The article investigates intermittent TCP connection failures during application server startup caused by the Linux kernel ARP queue length parameter unres_qlen, reproduces the issue with a concurrent connection test, analyzes kernel internals, and recommends increasing unres_qlen for kernels prior to 3.3.

ARPConnection PoolingKernel Parameters
0 likes · 8 min read
Analysis of TCP Connection Failures Caused by ARP Queue Length (unres_qlen) in Linux Kernels
ITPUB
ITPUB
Sep 12, 2016 · Databases

Diagnosing SQL Server Connection Pool Exhaustion with sp_who2

When a timeout error occurs because the connection pool is full, you can use sp_who or sp_who2 to list active SQL Server sessions, interpret sleeping processes, understand ADO.NET pooling behavior, and employ SQL Server Profiler to pinpoint why connections are not being reused.

ADO.NETConnection PoolingSQL Server
0 likes · 7 min read
Diagnosing SQL Server Connection Pool Exhaustion with sp_who2
ITPUB
ITPUB
Apr 13, 2016 · Databases

Why Properly Closing Database Connections Is Critical—and How to Do It

Closing database connections promptly is essential for performance and availability, and this guide explains practical rules, connection‑pool benefits, safe coding patterns, exception handling, and how to diagnose lingering connections using MySQL's SHOW PROCESSLIST command.

Connection PoolingResource Managementbest practices
0 likes · 6 min read
Why Properly Closing Database Connections Is Critical—and How to Do It