MUST load domain MFEs through Module Federation and lazy-load remote routes or components.
MUST keep authentication bootstrap, top-level routing, shared presentation providers, remote loading, compatibility checks, and platform error boundaries in the shell.
MUST-NOT put domain rendering or domain query state in the shell.
MUST provide usable loading, remote-unavailable, and retry states without taking down unrelated MFEs.
MUST test shell and remote contracts independently and in composed journeys.
MFE and BFF ownership
MUST give each MFE ownership of its domain UI, local query client, internal routes, telemetry, BFF, and release lifecycle.
MUST-NOT share hidden mutable state or query caches across MFEs.
MUST terminate user tokens at the receiving MFE BFF and use managed identity downstream.
MUST serve UI queries from operational or reporting projections, not from event-store scans.
SHOULD expose task-oriented BFF responses that avoid browser request waterfalls and unnecessary payloads.
SignalR and subscriptions
MUST use the shell-owned single browser SignalR connection through the SignalR BFF.
MUST-NOT let individual MFEs create their own SignalR connections.
MUST scope subscriptions by authorized tenant, capability, and resource and dispose them when no longer needed.
MUST treat notifications as hints or progress signals and reconcile domain state through the owning MFE BFF.
MUST deduplicate notifications and tolerate live delivery overlapping catch-up.
Reconnect and freshness
MUST let the shell manage reconnect with bounded exponential backoff and jitter and re-register active subscriptions.
MUST let each MFE catch up from its last observed position through its BFF or perform a scoped refresh when resume is unavailable.
MUST expose stale or reconnecting state when a freshness gap could affect user decisions.
MUST-NOT equate a missed SignalR message with failed domain work.
Asynchronous behavior
MUST return 202 Accepted and a status resource for operations beyond the synchronous latency budget.
MUST show accepted or queued state immediately and preserve the operation identifier across navigation or reload where the journey requires it.
MUST use status polling or retrieval as the reliable completion mechanism; SignalR is an optional accelerator.
MUST refresh the authoritative projection after completion instead of treating progress notifications as final domain state.
MUST-NOT keep browser HTTP requests open for long-running work.
Validation
MUST test cold and warm MFE loads, slow networks, remote failure, BFF throttling, SignalR disconnects, missed and duplicate notifications, catch-up, and async-operation resumption.
MUST measure user-perceived interaction and journey latency in addition to backend latency.
SHOULD define bundle, request-count, and latency budgets for each high-value journey and enforce them in delivery pipelines where practical.