DR implementation: SignalR
Tier: T1. Azure SignalR carries the shell’s single real-time connection for all MFEs. Real-time updates are an enhancement: the MFEs read state over REST, so a SignalR outage degrades the experience but does not stop the T0 flow. Every MFE MUST fall back to REST polling when the connection stays down. That fallback is not implemented yet (gap RT-02), so today users see stale live views until the connection returns or they refresh.
Current configuration (prd)
| Setting | Shell SignalR (current) | Legacy Alya SignalR (v1) |
|---|---|---|
| Instance | sigr-assgr-prd-chn-01 | sigr-asbff-prd-chn-01 |
| SKU | Standard_S1, capacity 1 | Standard_S1, capacity 1 |
| Zones | None. Standard does not support availability zones | None |
| State | Connections and user-group memberships. Memberships survive reconnects but are lost if the instance is recreated; MFEs re-subscribe on every new connection | Connections and groups |
| Ingress | WebSocket through agw-alya-shell-sigr. Front Door has no WebSocket failover for this path | WebSocket through agw-alya-sigr |
New work uses only the Shell SignalR instance. The legacy instance stays until its consumers migrate (legacy v1).
Failure scenarios
| Scenario | Behaviour | Recovery | RTO and RPO |
|---|---|---|---|
| Zone loss | If the unit is in the lost zone, every connection drops until Microsoft recovers | Microsoft-managed. MFEs show stale live views (no polling fallback, RT-02) | Until Microsoft recovers. RPO 0, because the data is in the stores |
| Instance unavailable | No real-time updates | Clients reconnect automatically when SignalR returns. After the retries are exhausted, a page reload reconnects | Microsoft-managed |
| Application Gateway down | The WebSocket leg stops | Recover the gateway | Gateway RTO |
| Instance deleted | No real-time updates. User-group memberships are lost | Recreate from Terraform. Update the BFF connection settings if the endpoint changes. MFEs re-subscribe on the new connection | Under an hour |
| Capacity exhausted at 1 unit | New connections are refused | Scale the units | Minutes |
Recovery procedure
Recreate or scale the instance
Owner: Alya shell BFF team
Re-run the Terraform with the target SKU and capacity. Check the negotiate
endpoint (/api/v2/signalr/negotiate on portal.alya), then open the shell,
confirm that the connection is established, and confirm that an MFE that shows
live data subscribes again (a 204 from assgr-int in the BFF logs).
Rules
- SignalR MUST be Premium, zone-redundant, in
prd. - MFEs MUST work through REST polling when SignalR is unavailable (not yet implemented, RT-02).
- MFEs MUST register their group subscriptions again on every new connection ID and catch up over REST, because delivery is at most once and memberships are lost if the instance is recreated.
Gaps
| ID | Severity | Gap | Owner |
|---|---|---|---|
| DR-09 | MEDIUM | Standard_S1, capacity 1, with no availability-zone support, on both the Shell and the legacy instance | Alya shell BFF team |
| RT-02 | LOW | The MFE REST polling fallback is not implemented | FE Guild |