共用方式為


EventHubBufferedProducerClientOptions.MaximumConcurrentSendsPerPartition Property

Definition

The number of batches that may be sent concurrently for a given partition. This option is superseded by the value specified for MaximumConcurrentSends, ensuring that limit is respected.

public int MaximumConcurrentSendsPerPartition { get; set; }
member this.MaximumConcurrentSendsPerPartition : int with get, set
Public Property MaximumConcurrentSendsPerPartition As Integer

Property Value

By default, each partition will allow only one publishing operation to be active in order to ensure that events are published in the order that they were enqueued.

Exceptions

Occurs when the requested count is not between 1 and 100 (inclusive).

Remarks

When batches for the same partition are published concurrently, the ordering of events is not guaranteed. If the order of events must be maintained, MaximumConcurrentSendsPerPartition should not exceed 1.

Applies to