你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

CosmosClientOptions.MaxRetryWaitTimeOnRateLimitedRequests Property

Definition

Gets or sets the maximum retry time in seconds for the Azure Cosmos DB service.

public TimeSpan? MaxRetryWaitTimeOnRateLimitedRequests { get; set; }
member this.MaxRetryWaitTimeOnRateLimitedRequests : Nullable<TimeSpan> with get, set
Public Property MaxRetryWaitTimeOnRateLimitedRequests As Nullable(Of TimeSpan)

Property Value

The default value is 30 seconds.

Remarks

The minimum interval is seconds. Any interval that is smaller will be ignored.

When a request fails due to a rate limiting error, the service sends back a response that contains a value indicating the client should not retry before the RetryAfter time period has elapsed.

This property allows the application to set a maximum wait time for all retry attempts. If the cumulative wait time exceeds the this value, the client will stop retrying and return the error to the application.

For more information, see Handle rate limiting/request rate too large.

Applies to

See also