ION DocsV3
  • Architecture
    • ION Architecture V2
      • ION V2 — Architecture Overview
      • V2 context
        • V2 capacity model
        • V2 constraints
        • V2 integration boundaries
        • V2 requirements
        • V2 solution strategy
      • V2 Structural Design
        • ION V2 Landscape
        • ION V2 Platform Views
          • ION V2 Delivery and Runway
          • ION V2 Incident-Processing Pipelines
          • ION V2 Platform Networking
          • ION V2 Platform Observability
          • ION V2 Platform Security
        • ION V2 System Context
        • ION V2 Systems
          • Alya System Topology
          • Cogs System Topology
          • Ion IQ System Topology
          • Kingsman System Topology
          • Pigeon System Topology
          • Veritas System Topology
          • Watchtower System Topology
      • V2 evolution and platform lineage
        • Tiberium Origins
          • Tiberium Architecture Overview
          • Tiberium Components Architecture Overview
        • Voyager and the V2 Merge
          • Voyager Architecture Overview
          • Voyager Identity Architecture Overview
          • Voyager Services Architecture Overview
      • V2 Platform Architecture
        • Alya Workbench
          • Mission Brief: Alya (Workbench for Cyber Defenders)
        • Asset Discovery
        • Automation
        • Customer Communications
          • Notification and Escalation Design
        • Reporting and Dashboards
        • Vulnerability Mitigations
      • V2 Well-Architected
        • V2 Reliability
          • Availability Architecture
        • V2 Security
          • API Management
            • API Management Architecture
            • API Management Guidelines
            • API Management Implementation
              • APIM Deployment and Debugging
              • APIM Global Policy Implementation
              • APIM Platform Provisioning
              • APIM Policy Authoring
              • APIM Service Onboarding
              • APIM Webhook Flow Implementation
            • API Management Policy Model
          • V2 Security Architecture
          • Teams Notification Security
          • Customer Data and PII
          • V2 Identity
            • Applications and Authorization
            • V2 Identity Architecture
            • Microsoft Entra ID
            • V2 Identity Standard
            • V2 Identity Implementation
              • Application Registration
              • Application Roles
              • Customer Identity Onboarding
              • Identity Lifecycle and Operations
              • Managed Identity
            • V2 Identity Workflows
              • Alya Workbench Identity Workflow
              • Customer Portal Identity Workflow
              • Microservices Identity Workflow
              • ServiceNow Inbound Identity Workflow
              • Microsoft Teams Identity Workflow
          • Customer Environment Access
            • Customer Environment Access Architecture
            • Customer Environment Access Guidelines
            • Customer Environment Access How-to
    • ION Architecture V3
      • ION V3 Architecture Overview
      • V3 context
        • V3 capacity model
        • V3 constraints
        • V3 integration boundaries
        • V3 requirements
        • V3 solution strategy
      • V3 Structural Design
        • Data and events
          • Archival and retention
          • Event model
          • Event sourcing
          • Event store
          • Micro-frontend interaction
          • Recovery and disaster recovery
          • Replay and reconstruction
          • Reporting and customer analytics
          • Event-sourcing requirements
          • Snapshots
          • UI interaction
        • ION v3 domains
          • Assets domain
            • Assets domain flows
            • Assets domain implementation
            • Assets domain model
          • Customer Collaboration domain
            • Customer Collaboration domain flows
            • Customer Collaboration domain implementation
            • Customer Collaboration domain model
          • Incident domain
            • Incident domain flows
            • Incident domain implementation
            • Incident domain model
          • Investigation domain
            • Investigation domain flows
            • Investigation domain implementation
            • Investigation domain model
          • Remediation domain
            • Remediation domain implementation
            • Remediation domain model
          • Ticket domain
            • Ticket domain flows
            • Ticket domain implementation
            • Ticket domain model
        • ION V3 Landscape
        • ION V3 Platform Views
          • Internal API
            • Internal API architecture
            • Internal API consumer guide
            • Internal API identity and access
            • Internal API implementation
          • Micro-Frontends
            • Micro-Frontends architecture
            • Micro-Frontends capability service (Signet)
            • Micro-Frontends composition
            • Micro-Frontends identity and access
            • Micro-Frontends implementation
            • Micro-Frontends real-time (SignalR)
            • Micro-Frontends routing and ingress
            • Shells and MFEs
          • SOAR Integration
            • SOAR Integration architecture
            • SOAR Integration customer onboarding
            • SOAR Integration Identity and Access Design
            • SOAR Integration implementation
            • SOAR Integration operations
        • ION V3 System Context
        • ION V3 systems
          • Alya
          • Cogs
          • ION IQ
          • Kingsman
          • Pigeon
          • Veritas
          • Watchtower
      • V2 to V3 evolution
        • V2 to V3 architecture delta
        • V2 to V3 decision changes
        • V2 to V3 migration guidance
        • V2 to V3 service impact
      • Well-Architected
        • Cost Optimization
          • Cost Governance
            • Cost Governance Architecture
            • Cost Governance Guidelines
            • Cost Governance Implementation
          • SKU Strategy
            • SKU Strategy Architecture
            • SKU Strategy Guidelines
            • SKU Strategy Implementation
        • Operational excellence
          • Audit Logs
            • Audit Logs Architecture
            • Audit Logs Guidelines
            • Audit Logs Implementation
          • CI/CD Runway
            • CI/CD Runway Architecture
            • CI/CD Runway Guidelines
            • CI/CD Runway Implementation
          • Feature Flags
            • Feature Flags Architecture
            • Feature Flags Guidelines
            • Feature Flags Implementation
          • Incident management
            • Incident management architecture
            • Incident management guidelines
            • Incident management implementation
          • Azure Landing Zone
            • Azure Landing Zone Architecture
            • Azure Landing Zone Guidelines
            • Azure Landing Zone Implementation
          • Notifications
            • Notifications Architecture
            • Notifications Guidelines
            • Notifications Implementation
          • Observability
            • Observability Architecture
            • Observability Guidelines
            • Observability Implementation
        • Performance efficiency
          • Capacity, sizing, and scaling
            • Capacity, sizing, and scaling architecture
            • Capacity, sizing, and scaling guidelines
            • Implement capacity, sizing, and scaling
          • UI responsiveness
            • UI responsiveness architecture
            • UI responsiveness guidelines
            • Implement UI responsiveness
        • V3 reliability
          • Application resilience patterns
          • Critical flows
          • Customer reliability assurance
            • ION Platform reliability and service continuity
            • Customer reliability slides
          • Disaster recovery
            • Disaster recovery architecture
            • Disaster recovery guidelines
            • Disaster recovery implementation
              • DR implementation: API Management
              • DR implementation: App Configuration
              • DR implementation: Application Gateway
              • DR implementation: Azure SQL Database
              • DR implementation: Container Apps
              • DR implementation: Container Registry
              • DR implementation: Cosmos DB
              • DR implementation: Event Hubs
              • DR implementation: Azure Front Door
              • DR implementation: Function Apps
              • DR implementation: Key Vault
              • DR implementation: Log Analytics and Application Insights
              • DR implementation: MySQL Flexible Server (Temporal)
              • DR implementation: PostgreSQL Flexible Server
              • DR implementation: Azure Managed Redis
              • DR implementation: Service Bus
              • DR implementation: SignalR
              • DR implementation: Storage accounts
            • Operational-data replication
            • Disaster recovery operations
          • Edge and routing
            • Azure Application Gateway
              • Azure Application Gateway architecture
              • Azure Application Gateway guidelines
              • Azure Application Gateway implementation
              • Azure Application Gateway resiliency
              • Azure Application Gateway security
            • Azure Front Door
              • Azure Front Door architecture
              • Azure Front Door guidelines
              • Azure Front Door implementation
              • Azure Front Door resiliency
              • Azure Front Door security
          • Event-store disaster recovery (moved)
          • Failure mode analysis
          • Graceful degradation
            • Graceful degradation architecture
            • Graceful degradation guidelines
            • Graceful degradation implementation
          • V3 reliability maturity model
            • V3 reliability maturity assessment
            • Maturity level 2: self-preservation
            • Maturity level 3: recovery readiness
            • Maturity level 4: maintain stability
            • Maturity level 5: stay resilient
          • Multi-region replication
            • Multi-region replication architecture
            • Multi-region replication guidelines
            • Multi-region replication implementation assessment
          • Reliability testing
          • Scaling and headroom
          • Targets and health model
          • Trade-offs and accepted risks
        • V3 Security
          • API Management
            • API Management Architecture
            • API Management Guidelines
            • API Management Implementation
              • API Contracts and Asynchronous Operations
              • APIM Deployment and Debugging
              • APIM Global Policy Implementation
              • APIM Platform Provisioning
              • APIM Policy Authoring
              • APIM Service Onboarding
              • APIM Webhook Flow Implementation
            • API Management Policy Model
          • V3 Security Architecture
          • Data protection
            • Data protection architecture
            • Data protection guidelines
            • Data protection implementation guidelines
              • API Management
              • Application Gateway
              • Azure SQL Database
              • Azure Container Apps
              • Azure Cosmos DB
              • Azure Front Door
              • Azure Function Apps
              • Azure Database for MySQL
              • Azure Database for PostgreSQL
              • Data protection procedures
          • V3 Security Guidelines
          • V3 Identity
            • Applications and Authorization in ION V3
            • V3 Identity Architecture
            • Capabilities
            • Microsoft Entra ID for ION V3
            • V3 Identity Standard
            • V3 Identity Implementation
              • App Service Authentication
              • Application Registration
              • Application Roles
              • Customer Azure RBAC
              • Customer Identity Onboarding
              • Identity Lifecycle and Operations
              • Mailbox-Scoped Access
              • Managed Identity
              • Workload Identity Federation
            • V3 Identity Workflows
              • Alya Workbench Identity Workflow
              • Customer Azure RBAC Identity Workflow
              • Customer Portal Identity Workflow
              • Mailbox Access Identity Workflow
              • Microservices Identity Workflow
              • ServiceNow Inbound Identity Workflow
              • Shell and MFE Identity Workflow
              • Microsoft Teams Identity Workflow
          • Customer Environment Access
            • Azure Lighthouse
              • Azure Lighthouse implementation
            • GDAP and Tenant Governance
              • Access Packages (legacy)
              • GDAP human access implementation
            • Customer environment access guidelines
            • Multi-tenant Entra apps
              • Multi-tenant Entra apps implementation
            • Teams B2B Direct Connect
              • Teams B2B Direct Connect implementation
          • Network Security
            • Network Security Architecture
            • Network Security Guidelines
            • Network Security Implementation
              • Egress and Static IPs
              • Resource Access Restrictions
          • V3 Security Patterns
    • ION Architecture V4
      • How V4 evolves from V3
  • Principles
  • Patterns
    • Application Permissions Only
    • Async REST
    • Audit Logs (Pattern)
    • Auth / AuthZ
    • Dead Letter Queue (DLQ)
    • Dual Writes (and how to avoid them)
    • ECST — Event-Carried State Transfer
    • Event Hubs Throttling
    • Feature Flags (Pattern)
    • Idempotent Write
    • MFE UI Interaction
    • Notifications (Pattern)
    • Private Data Store Access
    • Schema Evolution
    • Service Bus Topic Throttling
    • UI Interaction with an Event-Sourced Backend
  • Standards
    • API Standard
    • API Standards
    • Coding Standard
    • Coding Standards
    • Documentation Standard
    • Documentation Standards
    • Microservice Standard
    • Microservice Checklist
    • Operational Readiness Standard
    • ORR — Operational Readiness Review Checklist
  • Decisions
    • ADR-0001
    • ADR-0002
    • ADR-0003
    • ADR-0004
    • ADR-0005
    • ADR-0006
    • ADR-0007
    • ADR-0008
    • ADR-0009
    • ADR-0010
    • ADR-0011
    • ADR-0012
    • ADR-0013
    • ADR-0014
    • ADR-0015
    • ADR-0016
    • ADR-0017
    • ADR-0018
    • ADR-0019
    • ADR-0020
    • ADR-0021
    • ADR-0022
    • ADR-0023
    • ADR-0024
    • ADR-0025
    • ADR-0026
    • ADR-0027
    • ADR-0028
    • ADR-0029
    • ADR-0030
    • ADR-0031
    • ADR-0032
    • ADR-0033
    • ADR-0034
  • Services
  • Governance
    • Assumptions
    • Discrepancies
    • V3 reference coverage and conflict matrix
OntinueION Docs
  1. Patterns
  2. MFE UI Interaction

MFE UI Interaction

from references
patternsv2v3v4from-references

MFE UI Interaction

Source references: Event Sourcing- MFE UI Interaction Design Pattern.md; Micro Frontends.md; MFE Patterns.md; MFE- Authentication & Authorisation Patterns.md; Planned MFE Architecture for Incidents and Investigation in Alya FE.md.


Problem

ION V3 composes user experiences from independently deliverable Micro-Frontends (see ADR-0023). This introduces UI-composition problems the single-app pattern in ui-interaction.md does not answer:

  • If every MFE opens its own SignalR connection, Azure SignalR concurrent connection quotas explode (≥ N MFEs × M users) and reconnection storms amplify.
  • If the Shell owns all message routing, it becomes a Single Point of Failure — a crash in the Shell freezes real-time updates for every MFE.
  • MFEs must not couple to each other (independent delivery is the whole point), yet they must cooperate on shared cross-cutting concerns: auth token, capabilities, theme, notifications, connection lifecycle.
  • MFEs are composed across multiple shells (Alya, Veritas) with different user personas — a single hard-wired assumption breaks reuse.

Solution

Shell owns cross-cutting concerns and the SignalR connection lifecycle only. MFEs own their business subscriptions, data, state, and side effects.

Composition topology

┌───────────────── Shell (Alya | Veritas) ────────────────────┐
│  Auth (MSAL) · Capabilities · Theme · Notifications · Router│
│  ┌────────────────────────────────────────────────┐  │
│  │ SignalRProvider (@fe-ws/signalr, MF singleton)     │  │
│  │ single connection · { connection, isConnected }    │  │
│  └───────────────────────┬────────────────────────┘  │
└────────────────────────────────┼───────────────────────────┘
                              │ useSignalR · useHubEvent
            ┌─────────────────┼──────────────────────┐
            ▼                 ▼                      ▼
     ┌────────────┐    ┌─────────────┐        ┌────────────┐
     │ Incidents  │◀───│Investigation│        │  Service   │
     │    MFE     │sub-│    MFE      │        │  Requests  │
     │            │shell│            │        │    MFE     │
     └────────────┘    └─────────────┘        └────────────┘
        │  own BFF          │  own BFF              │  own BFF
        ▼                   ▼                       ▼
     BFF/APIM ───────── subscribe via APIM assgr-int ──────▶ Shell SignalR BFF

Core rules:

  1. One SignalR connection per authenticated browser session. Shell creates it after MSAL login by calling the Shell SignalR BFF negotiate endpoint (the BFF validates the Entra token and returns a SignalR client token bound to the user’s oid).
  2. Shell owns the connection, not the business. The connection and its state are shared through the @fe-ws/signalr Module Federation singleton (useSignalR, useHubEvent). The shell never subscribes to entities, never parses business payloads, and never invokes MFE methods directly.
  3. MFEs subscribe via their own BFF. Once a connection exists, each MFE calls its own BFF (for example POST /api/subscriptions/investigation/{id}). The BFF authorizes the user for the entity, then asks the Shell SignalR BFF to add the user to the group {entity_name}-{entity_id}. Group membership is backend-controlled — never asserted from the client.
  4. MFEs re-register on a new connection. When the connection ID changes, each MFE re-subscribes and issues a REST catch-up call to fill the gap. Delivery to the browser is at most once.
  5. Capability header propagation. Shell holds the JWT and capability token (see Auth / AuthZ); MFEs attach both to every BFF call, including the subscription call.
  6. Cross-MFE communication only via URL, events, or backend. Direct imports across MFEs are forbidden. Deep-linking via routes is the normal composition primitive (Incidents MFE hosts Investigation MFE as a sub-shell for /incidents-management/incident/investigation/:id).
  7. Shared context providers stay in Shell. Theme, MSAL, Notifications, Telemetry, and the SignalR connection — provided by Shell. Local providers stay in MFE — React Query client, error boundaries, feature-flag scope. This prevents one MFE from invalidating queries in another.
  8. Timeout fallback. If the connection is not established, or stays down, for longer than N seconds, the MFE downgrades to REST polling with the same catch-up endpoint. (Directive; not yet implemented — see the V3 real-time gaps.)

When to use

  • Use for any Shell composing multiple MFEs (Alya, Veritas today; future portal shells).
  • Use the sub-shell pattern (MFE composes another MFE) when domains are naturally nested — e.g. Investigation surfaces are entered via Incident context (see referenced Alya plan).
  • Do not open a second SignalR connection from an MFE — always ride the Shell’s connection through @fe-ws/signalr.
  • Do not send client-to-hub messages (useHubSend). The hub is Serverless with no upstream; commands go over REST to the MFE’s BFF.
  • Do not route business messages through the Shell — the Shell shares the connection only.
  • Do not put role/persona branching inside MFEs — use the capability contract (see Auth / AuthZ).

Consequences

Positive

  • Connection count is bounded (1 per session) regardless of MFE count.
  • Shell is small and stable — reduces SPOF surface to lifecycle only.
  • MFEs are independently deployable and testable; a broken MFE cannot bring down its neighbours (error boundaries at the Shell).
  • Same MFE runs across multiple shells (Alya + Veritas) with different personas without code changes — capability contract absorbs the difference.

Negative

  • Requires disciplined ownership: Shell team and MFE teams must agree on the lifecycle contract and BFF subscription convention.
  • Debugging real-time issues spans Shell (connection) + MFE (subscription)
    • BFF (group management) — three logs to correlate.
  • Module Federation runtime (rsbuild) adds build-time complexity and a shared-deps discipline.

Failure modes

  • Shell UI thread block — SignalR keep-alives may time out. Mitigation: keep Shell rendering minimal; consider WebWorker-hosted SignalR client for heavy Shells.
  • MFE unmount leaks — MFEs that keep hub handlers or subscriptions after unmount hold references to detached trees. useHubEvent unregisters its handler on unmount; MFEs must do the same for any handler they register directly.
  • Subscription drift after reconnect — MFE sees a new connection but forgets to re-subscribe. Catch-up REST call is mandatory as belt-and-braces.
  • User-wide unsubscribe — group membership is per user, so an unsubscribe in one tab also stops events in the user’s other tabs. The catch-up rule limits the impact.
  • Capability mismatch across shells — same MFE + different Shell yields different visible actions; validate via capability contract in BFF, not by inspecting Shell name in FE code.

References

  • ADRs: ADR-0023 MFE UI architecture; ADR-0009 API contracts (REST + JSON:API); ADR-0012 Identity; ADR-0013 AuthN/AuthZ.
  • Patterns: UI Interaction; Auth / AuthZ; Async REST; Notifications.
  • WA: well-architected/performance-efficiency/ui-responsiveness/; well-architected/reliability/graceful-degradation/.

Applied in

  • Alya Shell — hosts Incidents MFE (which sub-shells Investigation MFE), Service Requests MFE, Automation Workbench MFE. The Shell SignalR BFF realizes this pattern; see the V3 real-time design.
  • Veritas — customer & advisor portal shells compose overlapping MFE set with public-persona capability scope.
  • Pigeon — adaptive-card UI in Teams reuses the same subscription contract via its bot-side BFF (no browser SignalR, but the group model is identical).

On this page

  • Problem
  • Solution
  • Composition topology
  • When to use
  • Consequences
  • Positive
  • Negative
  • Failure modes
  • References
  • Applied in
PreviousIdempotent Write
NextNotifications (Pattern)
Edit on GitHubSecurity