-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support different EndpointRoutingMode (#1842)
- Loading branch information
Showing
6 changed files
with
141 additions
and
22 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
src/Microsoft.Azure.SignalR.Common/Endpoints/EndpointRoutingMode.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Copyright (c) Microsoft. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
namespace Microsoft.Azure.SignalR | ||
{ | ||
public enum EndpointRoutingMode | ||
{ | ||
/// <summary> | ||
/// Choose endpoint randomly by weight. | ||
/// The weight is defined as (the remaining connection quota / the connection capacity). | ||
/// This is the default mode. | ||
/// </summary> | ||
Weighted, | ||
|
||
/// <summary> | ||
/// Choose the endpoint with least connection count. | ||
/// This mode distributes connections evenly among endpoints. | ||
/// </summary> | ||
LeastConnection, | ||
|
||
/// <summary> | ||
/// Choose the endpoint randomly | ||
/// </summary> | ||
Random, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters