Event-sourcing requirements
These are the requirements the Incident, Investigation, and Ticket event stores are built to satisfy. They are consolidated from the V3 event-store design references and govern the implementation described in the rest of this section.
Business requirements
| Requirement | Priority | Intent |
|---|---|---|
| Immutable historical record | Must | Capture every state-changing action immutably for audit, compliance, and historical analysis. |
| Complete lifecycle tracking | Must | Capture the full lifecycle of each incident, investigation, and ticket — every state change and action is traceable. |
| Efficient state retrieval | Must | Reconstruct the state of any aggregate at any point in time from its event history. |
| High-volume ingestion | Must | Scale to large event volumes without losing performance or reliability. |
| Data security and integrity | Must | Protect event data from unauthorized access and modification across the whole stream. |
| Design for deletion | Must | Segregate customer data and delete it on offboarding through a REST or messaging interface. |
| Multi-tenant, multi-workspace aggregation | Must | Model schemas that support tenant and workspace aggregation and queries. |
| Multiple ingestion sources | Must | Allow for future SIEM, EDR, and XDR ingestion sources beyond Sentinel. |
| Event archiving | Should | Archive and clean up events by retention period and offboarding. |
| Cost-efficient storage | Must | Keep storage and query of large volumes cost-effective over time. |
Functional requirements
| Area | Requirement |
|---|---|
| Persistence | Durable, scalable, append-only storage; events immutable once persisted. |
| Ordering | Preserve per-stream order so transitions reconstruct correctly. |
| Versioning | Version events to handle schema change over time. |
| Streams | Organize events into per-aggregate streams. |
| Archival | Archive events after a defined period to optimize cost and performance. |
| Retrieval | Stream-based and real-time retrieval; audit-log queries by user, entity, and customer. |
| Schema | Clear, expressive event schemas with an AsyncAPI specification shared with stakeholders. |
| Projections | Let consumers receive events in order to build independent read models. |
Non-functional requirements
| Category | Target |
|---|---|
| Ingestion throughput | Up to 500 events/sec (see the capacity model for the 1,000-customer envelope). |
| Recovery time objective (RTO) | 1 hour. |
| Recovery point objective (RPO) | 0 — no data loss. |
| Availability | 99.9% SLO. |
| Hot retention | 6 months in Cosmos DB. |
| Cold retention | 1 year in Blob storage. |
| Data residency | Azure Switzerland North; recovery copies in Switzerland West only. No ADR-0034 exception applies to the event store (GDPR). |
| Access | Managed Identity only; connection strings and access keys rejected; private network access only. |
| Deletion | Tenant-segregated; REST or messaging interface to delete a customer’s data on offboarding. |
Data-freshness targets
Freshness is measured from ingestion to a usable projection.
| Data | Freshness target |
|---|---|
| Incidents | Less than 30 seconds |
| Vulnerabilities | Less than 60 seconds |
| Assets | Less than 60 minutes |
| Risk posture | Less than 60 minutes |
| Reports and dashboards | Less than 60 minutes |