You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-web-pubsub/concept-performance.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,15 +12,15 @@ author: bjqian
12
12
13
13
One of the key benefits of using Azure Web PubSub Service is the ease of scaling. In a large-scale scenario, performance is an important factor.
14
14
15
-
In this guide, we'll introduce the factors that affect Web PubSub service performance. We'll describe typical performance in different use-case scenarios.
15
+
In this guide, we introduce the factors that affect Web PubSub service performance. We describe typical performance in different use-case scenarios.
16
16
17
17
## Quick evaluation using metrics
18
-
Before going through the factors that impact the performance, let's first introduce an easy way to monitor the pressure of your service. There's a metrics called **Server Load** on the Portal.
18
+
Before going through the factors that impact the performance, let's first introduce an easy way to monitor the pressure of your service. There's a metric called **Server Load** on the Portal.
19
19
20
-
<kbd></kbd>
20
+
<kbd></kbd>
21
21
22
22
23
-
It shows the computing pressure of your Azure Web PubSub service. You could test on your own scenario and check this metrics to decide whether to scale up. The latency inside Azure Web PubSub service would remain low if the Server Load is below 70%.
23
+
It shows the computing pressure of your Azure Web PubSub service. You could test on your own scenario and check this metric to decide whether to scale up. The latency inside Azure Web PubSub service would remain low if the Server Load is below 70%.
24
24
25
25
> [!NOTE]
26
26
> If you are using unit 50 or larger **and** your scenario is mainly sending to small groups (group size <20), you need to check [sending to small group](#small-group) for reference. In those scenarios there is large routing cost which is not included in the Server Load.
@@ -110,17 +110,17 @@ The service supports a specific subprotocol called `json.webpubsub.azure.v1`, wh
110
110
Group member and group count are two factors that affect performance. To simplify the analysis, we define two kinds of groups:
111
111
112
112
-**Big group**: The group number is always 10. The group member count is equal to (max
113
-
connection count) / 10. For example, for Unit1, if there are 1,000 connection counts, then every group has 1000 / 10 = 100 members.
113
+
connection count) / 10. For example, for Unit 1, if there are 1,000 connection counts, then every group has 1000 / 10 = 100 members.
114
114
-**Small group**: Every group has 10 connections. The group number is equal to (max
115
-
connection count) / 10. For example, for Unit1, if there are 1,000 connection counts, then we have 1000 / 10 = 100 groups.
115
+
connection count) / 10. For example, for Unit 1, if there are 1,000 connection counts, then we have 1000 / 10 = 100 groups.
116
116
117
117
**Send to group** brings a routing cost to Azure Web PubSub Service because it has to find the target connections through a distributed data structure. As the sending connections increase, the cost increases.
118
118
119
119
##### Big group
120
120
121
121
For **send to big group**, the outbound bandwidth becomes the bottleneck before hitting the routing cost limit. The following table lists the maximum outbound bandwidth.
122
122
123
-
| Send to big group |Unit1 | Unit2 | Unit10 | Unit50 | Unit100| Unit 200 | Unit 500 | Unit 1000 |
123
+
| Send to big group |Unit 1 | Unit 2 | Unit 10 | Unit 50 | Unit 100| Unit 200 | Unit 500 | Unit 1000 |
@@ -133,9 +133,9 @@ For **send to big group**, the outbound bandwidth becomes the bottleneck before
133
133
134
134
##### Small group
135
135
136
-
The routing cost is significant for sending message to many small groups. Currently, the Azure Web PubSub Service implementation hits the routing cost limit at Unit 50. Adding more CPU and memory doesn't help, so Unit100 can't improve further by design. If you need more inbound bandwidth, need to scale up to use **Premium_P2**(unit >100).
136
+
The routing cost is significant for sending message to many small groups. Currently, the Azure Web PubSub Service implementation hits the routing cost limit at Unit 50. Adding more CPU and memory doesn't help, so Unit 100 can't improve further by design. If you need more inbound bandwidth, need to scale up to use **Premium_P2**(unit >100).
137
137
138
-
| Send to small group |Unit1 | Unit2 | Unit10 | Unit50 | Unit100| Unit 200 | Unit 500 | Unit 1000 |
138
+
| Send to small group |Unit 1 | Unit 2 | Unit 10 | Uni 50 | Unit 100| Unit 200 | Unit 500 | Unit 1000 |
@@ -162,7 +162,7 @@ For every event, it formulates an HTTP POST request to the registered upstream a
162
162
163
163
In this case, the app server writes back the original message back in the http response. The behavior of **echo** determines that the maximum inbound bandwidth is equal to the maximum outbound bandwidth. For details, see the following table.
164
164
165
-
| Echo |Unit1 | Unit2 | Unit10 | Unit50 | Unit100| Unit 200 | Unit 500 | Unit 1000 |
165
+
| Echo |Unit 1 | Unit 2 | Unit 10 | Unit 50 | Unit 100| Unit 200 | Unit 500 | Unit 1000 |
0 commit comments