Tag

connection pooling

1 views collected around this technical thread.

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.

JavaMySQLPerformance
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.

JavaMySQLPerformance
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.

JavaMySQLPerformance
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.

PerformancePigstyPostgreSQL
0 likes · 7 min read
Understanding High-Concurrency Connection Issues in PostgreSQL and the Benefits of Using pgBouncer
Architect's Guide
Architect's Guide
Nov 24, 2024 · Databases

Analyzing the Time Cost of Establishing MySQL Database Connections in Java Applications

This article examines how a Java web application connects to a MySQL database, measuring each step of the TCP handshake, authentication, and setup with Wireshark, and demonstrates that a single connection can take over 200 ms, highlighting the importance of connection pooling.

JavaMySQLPerformance
0 likes · 6 min read
Analyzing the Time Cost of Establishing MySQL Database Connections in Java Applications
Architecture Digest
Architecture Digest
Jul 21, 2024 · Databases

Analyzing the Cost of Establishing MySQL Database Connections in Java Applications

This article examines the detailed steps and timing of establishing a MySQL database connection using Java, measures the latency of the TCP handshake and authentication phases, and demonstrates why connection pooling is essential for high‑traffic web applications.

JavaMySQLPerformance
0 likes · 7 min read
Analyzing the Cost of Establishing MySQL Database Connections in Java Applications
Selected Java Interview Questions
Selected Java Interview Questions
Jul 19, 2024 · Databases

Analyzing the Cost of Establishing a MySQL Database Connection in Java

This article investigates the time consumption of creating and closing a MySQL connection from a Java application, measuring each network and protocol step with Wireshark and code examples, and demonstrates why connection pooling is essential for high‑traffic web services.

JavaMySQLPerformance
0 likes · 6 min read
Analyzing the Cost of Establishing a MySQL Database Connection in Java
Architecture Digest
Architecture Digest
Mar 29, 2024 · Databases

Analyzing the Cost of Establishing MySQL Database Connections in Java Applications

This article examines the detailed steps and performance impact of creating a MySQL connection from a Java web application, measures the latency of the handshake and authentication using Wireshark, and demonstrates why connection pooling is essential for high‑traffic services.

JavaMySQLPerformance
0 likes · 6 min read
Analyzing the Cost of Establishing MySQL Database Connections in Java Applications
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.

JavaMySQLPerformance
0 likes · 7 min read
Analyzing the Cost of Establishing MySQL Database Connections in Java Applications
Python Programming Learning Circle
Python Programming Learning Circle
Sep 25, 2023 · Databases

Python Database Access: DB‑API, PyMySQL, and Connection Pooling

This article explains Python's DB‑API standard, shows how to install and use PyMySQL for MySQL operations, demonstrates basic CRUD commands, safeguards against SQL injection, and provides detailed examples of using DBUtils connection pools with both locking and lock‑free multithreaded approaches.

DatabaseMultithreadingMySQL
0 likes · 17 min read
Python Database Access: DB‑API, PyMySQL, and Connection Pooling
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 DevelopmentHttpClientJava
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.

MySQLPerformance OptimizationSharding-JDBC
0 likes · 16 min read
Reducing Sharding-JDBC Database Connection Count: Analysis and Custom Partitioning Optimization
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.

Backend DevelopmentRedisconnection pooling
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.

MySQLMySQL 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 DevelopmentHttpClientJava
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.

JavaMySQLPerformance
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 InterfaceDatabase AdministrationMySQL
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.

CachingHigh AvailabilityLoad Balancing
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.

IPCPHPSwoole
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.

AsyncIODatabaseMySQL
0 likes · 38 min read
Asynchronous MySQL Operations with aiomysql and SQLAlchemy in Python