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: aspnetcore/blazor/host-and-deploy/server.md
+22-2Lines changed: 22 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -250,7 +250,17 @@ Blazor works best when using WebSockets as the SignalR transport due to lower la
250
250
251
251
## Azure SignalR Service
252
252
253
-
Werecommendusingthe [AzureSignalRService](xref:signalr/scale#azure-signalr-service) forserver-sideBlazorapps. Theserviceworksinconjunctionwiththeapp's Blazor Hub for scaling up a server-side Blazor app to a large number of concurrent SignalR connections. In addition, the SignalR Service'sglobalreachandhigh-performancedatacenterssignificantlyaidinreducinglatencyduetogeography.
253
+
:::monikerrange=">= aspnetcore-8.0"
254
+
255
+
ForBlazorWebAppsthatadoptinteractiveserver-siderendering, considerusingthe [AzureSignalRService](xref:signalr/scale#azure-signalr-service). Theserviceworksinconjunctionwiththeapp's Blazor Hub for scaling up to a large number of concurrent SignalR connections. In addition, the service'sglobalreachandhigh-performancedatacenterssignificantlyaidinreducinglatencyduetogeography. Ifyourhostingenvironmentalreadyhandlestheseconcerns, usingtheAzureSignalRServiceisn't necessary.
256
+
257
+
:::moniker-end
258
+
259
+
:::monikerrange="< aspnetcore-8.0"
260
+
261
+
Considerusingthe [AzureSignalRService](xref:signalr/scale#azure-signalr-service), whichworksinconjunctionwiththeapp's Blazor Hub for scaling up to a large number of concurrent SignalR connections. In addition, the service'sglobalreachandhigh-performancedatacenterssignificantlyaidinreducinglatencyduetogeography. Ifyourhostingenvironmentalreadyhandlestheseconcerns, usingtheAzureSignalRServiceisn't necessary.
262
+
263
+
:::moniker-end
254
264
255
265
> [!IMPORTANT]
256
266
>When [WebSockets](https://wikipedia.org/wiki/WebSocket) are disabled, Azure App Service simulates a real-time connection using HTTP Long Polling. HTTP Long Polling is noticeably slower than running with WebSockets enabled, which doesn't use polling to simulate a client-server connection. In the event that Long Polling must be used, you may need to configure the maximum poll interval (`MaxPollIntervalInSeconds`), which defines the maximum poll interval allowed for Long Polling connections in [Azure SignalR Service](#azure-signalr-service) if the service ever falls back from WebSockets to Long Polling. If the next poll request does not come in within `MaxPollIntervalInSeconds`, Azure SignalR Service cleans up the client connection. Note that Azure SignalR Service also cleans up connections when cached waiting to write buffer size is greater than 1 MB to ensure service performance. Default value for `MaxPollIntervalInSeconds` is 5 seconds. The setting is limited to 1-300 seconds.
@@ -347,7 +357,17 @@ Scaling server-side Blazor apps on Azure Container Apps requires specific consid
347
357
348
358
## Azure App Service without the Azure SignalR Service
0 commit comments