Implement UI responsiveness
Integrate an MFE
- Publish a versioned Module Federation remote contract and compatibility expectations.
- Register lazy routes or components in the Alya or Veritas shell with loading, timeout, retry, and error-boundary behavior.
- Keep the MFE’s query client, domain state, internal routing, and telemetry local.
- Route browser requests to the MFE-owned BFF; terminate the user token there and use managed identity downstream.
- Test the remote independently, against supported shell versions, and in every composed journey it participates in.
Add real-time updates
- Define notifications as tenant-scoped invalidation or progress signals with stable identity and a resumable event or projection position where available.
- Register the MFE’s desired subscription through the shell API; do not create a SignalR client in the MFE.
- Dispose route- or component-scoped subscriptions when they are no longer active.
- Deduplicate notifications and invalidate or refetch affected queries through the MFE BFF.
- Persist the last observed position for the active browser session and implement a BFF catch-up endpoint or scoped-refresh fallback.
- Test disconnect during activity, reconnect, subscription re-registration, catch-up overlap, duplicate delivery, and an expired resume position.
Implement a long-running interaction
- Submit the command to the MFE BFF with an idempotency and correlation identifier where the API contract requires them.
- On
202 Accepted, store the operation identifier and render accepted or queued state immediately. - Poll or retrieve the status resource with bounded backoff. Subscribe to SignalR progress only as an acceleration path.
- On completion, fetch the authoritative domain projection through the MFE BFF.
- On reload or reconnect, resume status retrieval from the stored operation identifier.
- Render actionable failed, cancelled, expired, and retry states without assuming a transport disconnect means failure.
Validate a journey
Test cold and warm remote loads, request count and payload, slow network, shell and remote compatibility, MFE BFF latency, projection staleness, SignalR reconnect, catch-up duration, and async completion at the canonical peak concurrency. Capture browser timings and distributed correlation data so frontend delay can be separated from BFF, projection, and downstream delay.