From cff3179cd751b5399a056d4119b2eaa72a481f39 Mon Sep 17 00:00:00 2001 From: Mahdi Azarboon <21277296+azarboon@users.noreply.github.com> Date: Sat, 7 Dec 2024 12:38:03 +0800 Subject: [PATCH 1/2] Update connection-pooling.md --- docs/framework/data/adonet/connection-pooling.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/docs/framework/data/adonet/connection-pooling.md b/docs/framework/data/adonet/connection-pooling.md index debb0baca8cf8..12665a76e0bb2 100644 --- a/docs/framework/data/adonet/connection-pooling.md +++ b/docs/framework/data/adonet/connection-pooling.md @@ -6,7 +6,18 @@ ms.assetid: 955c057f-aea8-4ba8-aa6d-e3dfa18ba8d5 --- # Connection Pooling -Connecting to a data source can be time consuming. To minimize the cost of opening connections, ADO.NET uses an optimization technique called *connection pooling*, which minimizes the cost of repeatedly opening and closing connections. Connection pooling is handled differently for the .NET Framework data providers. +Connecting to a data source can be time consuming. To minimize the cost of opening connections, ADO.NET uses an optimization technique called *connection pooling*, which minimizes the cost of repeatedly opening and closing connections. Connection pooling is handled differently for the .NET Framework data providers. While connection pooling improves performance and resource utilization, several factors can influence its efficiency depending on the database environment and configuration: + +- **Connection Limits and Resource Constraints:** In database environments, connection limits are often tied to service tiers or resource configurations. For instance, Azure SQL Database defines connection limits based on the selected service tier, while Azure SQL Managed Instance enforces limits based on allocated resources, such as CPU, memory, or vCores. When connection pool configurations exceed these limits, applications may experience rejected connections, throttling, or degraded performance. + +- **Authentication Methods:** Token-based authentication mechanisms, such as Microsoft Entra ID authentication, can impact connection pooling due to token expiration. Expired tokens may invalidate connections within the pool, disrupting reuse. This behavior occurs in both cloud-based and on-premises database systems that use modern authentication protocols. + +- **Network Latency and Endpoints:** Network latency and endpoint configurations can influence the efficiency of connection pooling. Public endpoints, commonly used in cloud-hosted databases, typically introduce higher latency compared to private or direct connections. In cloud-native applications with dynamic IP addressing, connection reuse may be disrupted if firewall rules are not updated to accommodate changing IP addresses. + +- **Encryption Requirements:** Databases that enforce TLS/SSL encryption require alignment between connection pooling configurations and encryption settings. For example, omitting required encryption parameters in connection strings, such as `Encrypt=True`, can lead to connection failures, reducing pooling efficiency. + +- **DNS Resolution:** Private endpoints and custom DNS configurations may pose challenges for connection pooling. Misconfigured or inconsistent DNS settings can delay or block connection establishment, impacting the performance and reliability of connection reuse. This is especially relevant in environments with hybrid or private cloud setups. + ## In This Section From c3342d90cd931730a347ab6190e35e6828b6a26a Mon Sep 17 00:00:00 2001 From: Bill Wagner Date: Tue, 14 Jan 2025 11:23:32 -0500 Subject: [PATCH 2/2] Update docs/framework/data/adonet/connection-pooling.md --- docs/framework/data/adonet/connection-pooling.md | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/framework/data/adonet/connection-pooling.md b/docs/framework/data/adonet/connection-pooling.md index 12665a76e0bb2..c114a21de7ae5 100644 --- a/docs/framework/data/adonet/connection-pooling.md +++ b/docs/framework/data/adonet/connection-pooling.md @@ -17,7 +17,6 @@ Connecting to a data source can be time consuming. To minimize the cost of openi - **Encryption Requirements:** Databases that enforce TLS/SSL encryption require alignment between connection pooling configurations and encryption settings. For example, omitting required encryption parameters in connection strings, such as `Encrypt=True`, can lead to connection failures, reducing pooling efficiency. - **DNS Resolution:** Private endpoints and custom DNS configurations may pose challenges for connection pooling. Misconfigured or inconsistent DNS settings can delay or block connection establishment, impacting the performance and reliability of connection reuse. This is especially relevant in environments with hybrid or private cloud setups. - ## In This Section