Skip to content

Commit cb498cb

Browse files
authored
Update distribution-concepts.md
https://skype.visualstudio.com/SPOOL/_workitems/edit/2661267 Update docs to add more detail to min/max concurrent offers
1 parent ffe5f60 commit cb498cb

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

articles/communication-services/concepts/router/distribution-concepts.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,20 @@ When the distribution process locates a suitable Worker who has an open channel
201201

202202
**OfferTTL -** The time-to-live for each offer generated
203203

204-
**Mode -** The **distribution modes** which contain both `minConcurrentOffers` and `maxConcurrentOffers` properties.
204+
**Mode -** The **distribution modes** which contain both `minConcurrentOffers` and `maxConcurrentOffers` properties. Set two integers for these two variables to control the concurrent numbers of active workers that job offer will be distributed. Example of setting min and max concurrent offers variables:
205+
206+
```csharp
207+
"mode": {
208+
"kind": "longest-idle",
209+
"minConcurrentOffers": 1,
210+
"maxConcurrentOffers": 5,
211+
"bypassSelectors": false
212+
}
213+
}
214+
```
215+
216+
By setting min to 1, active offers are distributed to minimum 1 active worker if there is; by setting max to 5, offers are distributed to maximum 5 active workers if there are. Moreover, it always try to match to most workers, for example, if there are 5 suitable workers, the offers would be sent to all 5 workers instead of 1.
217+
205218

206219
> [!Important]
207220
> When a Job offer is generated for a Worker it consumes one of the channel configurations matching the channel ID of the Job. The consumption of this channel means the Worker will not receive another offer unless additional capacity for that channel is available on the Worker. If the Worker declines the offer or the offer expires, the channel is released.

0 commit comments

Comments
 (0)