V2 to V3 migration guidance
Migrate by authority boundary rather than by replacing every component at once. Keep external integrations synchronized while moving command handling and history into the V3 domains.
1. Establish event and identity contracts
- Define versioned commands and CloudEvents for Incident, Investigation, and Ticket.
- Include tenant, aggregate, sequence, correlation, causation, actor, and schema version metadata.
- Make consumers idempotent before enabling replay or parallel V2/V3 delivery.
- Route user access through APIM and the owning BFF; use managed identity for downstream service calls.
2. Move incident authority
- Ingest Sentinel incidents into the Incident Store with deterministic source identifiers and deduplication.
- Route all accepted ION incident commands through the Incident aggregate.
- Project committed changes back to Sentinel with idempotent synchronization.
- Reconcile divergence by turning external changes into commands and events; do not overwrite the event stream.
- Cut over when replay reproduces the operational projection and synchronization lag and failure rates meet service objectives.
3. Introduce the Ticket Store as a migration facade
- Stop new ION callers from writing ServiceNow directly.
- Send every create, update, assignment, escalation, and closure command through the Ticket Store.
- Continue reading and reconciling authoritative persisted ticket state from ServiceNow during migration.
- Record synchronization attempts and conflicts so processing can be replayed.
- Move authority away from ServiceNow only through an explicit later decision; routing through the Ticket Store alone does not transfer persisted-state authority.
4. Move automation to Investigation and Temporal
- Create one Investigation aggregate for each incident selected for technical analysis.
- Record plans, evidence, findings, classifications, conclusions, approvals, and response outcomes in the Investigation stream.
- Map Temporal workflow and activity identifiers to the Investigation and execution identifiers that initiated them.
- Let Temporal own durable scheduling, retries, timers, and signals. Workers submit commands back to Investigation; Temporal state never replaces domain events.
- Drain or complete in-flight Logic Apps before disabling their triggers, and use correlation identifiers to prevent duplicate execution during overlap.
5. Build projections and user experiences
- Build operational and reporting projections from committed events, then compare them with V2 views before directing users to V3.
- Replace Power BI and Power Apps journeys incrementally with domain MFEs.
- Load MFEs through the Alya or Veritas shell using Module Federation.
- Give each MFE an owned BFF and deployment lifecycle. Keep authentication bootstrap, shared providers, remote loading, error boundaries, and the browser’s SignalR connection in the shell and SignalR BFF.
6. Apply current operational limits
- Size and monitor the event store for indefinite live retention until verified Blob archival and TTL expiry are implemented. Do not enable TTL before archive verification and restore tests succeed.
- Rehydrate aggregates from complete streams until snapshot creation, validation, invalidation, and fallback behavior are implemented.
- Test node and availability-zone recovery in Switzerland North. Do not set cross-region recovery objectives based on proposed replicas or warm-spare designs.
Cutover controls
For each domain, require replay parity, projection reconciliation, duplicate and out-of-order event tests, synchronization dashboards, dead-letter recovery, and a rollback route that stops new V3 commands without deleting committed history. Roll out by tenant or bounded capability, observe the coexistence period, and remove the V2 path only after queued work and synchronization conflicts are clear.