Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
CosmosClientOptions.MaxRequestsPerTcpConnection Property
Definition
- Namespace:
- Microsoft.Azure.Cosmos
- Assembly:
- Microsoft.Azure.Cosmos.Client.dll
- Package:
- Microsoft.Azure.Cosmos v3.58.0
- Package:
- Microsoft.Azure.Cosmos v3.59.0-preview.0
- Source:
- CosmosClientOptions.cs
Important
Some information relates to prerelease product that may be substantially modified before itβs released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
(Direct/TCP) Controls the number of requests allowed simultaneously over a single TCP connection. When more requests are in flight simultaneously, the direct/TCP client will open additional connections.
public int? MaxRequestsPerTcpConnection { get; set; }
member this.MaxRequestsPerTcpConnection : Nullable<int> with get, set
Public Property MaxRequestsPerTcpConnection As Nullable(Of Integer)
Property Value
The default settings allow 30 simultaneous requests per connection.
Do not set this value lower than 4 requests per connection or higher than 50-100 requests per connection.
The former can lead to a large number of connections to be created.
The latter can lead to head of line blocking, high latency and timeouts.
Remarks
Applications with a very high degree of parallelism per connection, with large requests or responses, or with very tight latency requirements might get better performance with 8-16 requests per connection.
Applies to
Azure SDK for .NET
Feedback
Was this page helpful?
