Data and events
This section is the canonical ION V3 design for domain events, event stores, projections, reporting, UI interaction, replay, and recovery. ION records every accepted domain change as an immutable event in a tenant-scoped aggregate stream. Azure Cosmos DB is the event-store substrate; Change Feed publishes committed facts to projectors and to the shared Azure Service Bus backbone.
Event-sourced aggregates
Three V3 domains are event-sourced. Each has one aggregate root, one stream per instance, and a dedicated Cosmos DB account.
| Aggregate | Stream prefix | Owning system | Authority boundary |
|---|---|---|---|
IonSecurityIncident | IonSecurityIncident-{incidentId} | Watchtower | Incident Store is the source of truth; Sentinel is an ingestion source and a synchronized external projection. |
IonInvestigation | IonInvestigation-{investigationId} | Cogs | Investigation Store owns investigation history; Temporal executes workflows but is not the authority. |
IonSecurityTicket | IonSecurityTicket-{ticketId} | Watchtower | Every ION ticket command passes through the Ticket Store; ServiceNow stays authoritative for persisted ticket state during migration. |
Configuration, caches, and other replaceable data stay in conventional stores. The adoption test is in ADR-0006.
Read and reporting stores
| Concern | Store | Role |
|---|---|---|
| Operational reads | Azure SQL Database | Rebuildable CQRS projections for lists, queues, and current-state UI. |
| Customer analytics | Azure SQL Database | Tenant-isolated reporting projections behind the Veritas BFF (ADR-0022). |
| AI and workflow state | PostgreSQL | Selected AI-engineering and Temporal services only; not the default operational store. |
| Cold event archive | Azure Blob Storage | Intended one-year cold tier (see retention status below). |
Two features are designed but not yet implemented
The platform runs on event streams and projections today, but two lifecycle features in the V3 design are not live. They are stated once here and are not repeated on every page.
- Retention workflow. The intended policy is six months hot plus one year cold via verified Blob archival and Cosmos TTL. The archive-verify-TTL workflow is not deployed, so live events currently remain in Cosmos indefinitely.
- Snapshots. Snapshot support is designed but not implemented, so aggregates reconstruct from the full stream. The reference design treats snapshots as unnecessary below ~100 events per aggregate, which is the normal case.
Pages
| Page | Covers |
|---|---|
| Requirements | Business, functional, and non-functional requirements and service targets. |
| Event sourcing | Building blocks, patterns, and the end-to-end command-to-projection flow. |
| Event model | Event types, naming conventions, commands, CloudEvents envelope, event and stream specification, and versioning. |
| Event store | Cosmos DB implementation: streams, partitioning, transactional batch, concurrency, Change Feed, and retention. |
| Snapshots | Snapshot design, creation from Change Feed, and use in state reconstruction (designed, not yet implemented). |
| Archival and retention | Archive-verify-expire pattern, Cosmos TTL, warm Blob layout, and the step-by-step archival workflow (designed, not yet implemented). |
| UI interaction | CQRS read/write flow, BFF and Sidecar, SignalR groups, and the MFE shared-connection pattern. |
| Micro-frontend interaction | MFE composition, shell-as-lifecycle-orchestrator, and committed-event-to-MFE real-time delivery. |
| Reporting | Customer analytics projections and technology boundaries. |
| Replay and reconstruction | Scoped, isolated, side-effect-safe replay; Cosmos read mechanics; projection repair, rebuild, backfill, and reprocessing. |
| Recovery and disaster recovery | Failure-to-mechanism matrix, recovery order, command-queue continuity, and the phased DR runbook. |
Diagrams
Phase diagrams (event store ph1–ph3, incident ph1–ph3, ticket ph1–ph2) are migration views, not the final topology.