PLATFORM DECISION
Incident event store: Every incident change becomes an auditable, replayable event.
Each change to an incident is stored as an event, so history can be audited, replayed and recovered.
- Append-only history
- Replayable
- Tenant-keyed partitions
The decision
Every ION domain that owns business data is event-sourced: a change is appended to that incident’s own history, never written over what was recorded.
Event-sourced domains
Each domain that owns business data keeps its record as a history of events. Current state is derived from that history.
- Applies to
- Incidents, assets, investigations and tickets
Changes are appended
A command processor validates each change and appends it as an event. Nothing is written over what was recorded.
- Validated by
- A command processor
- Written to
- That incident's own history
Events are published
Consumers subscribe to the published events, each with its own subscription.
- Published from
- The committed history
- Driven by
- The database change feed
Views are projections
Every view, report and integration is a projection of that history.
- Built from
- The history
- Examples
- Portals, reports, SIEM updates
- Event sourcing
- CQRS
- Transactional outbox
Rationale
For you, the decision shows up like this.
- An audit trail you can see
Every event records who or what made the change, and the command behind it. You see it as audit entries in the Customer Portal; our defenders see the same history as activities in the Defender Workbench.
- One source of truth
The Customer Portal, the Defender Workbench, reports and updates to your SIEM all derive from the same history.
- Recoverable by replay
A damaged or outdated view is rebuilt by replaying the history, not repaired by hand.
- Consumers that do not interfere
Each consumer has its own subscription. A new report or automation is added without touching the component that records the incident, and a slow consumer never holds up incidents arriving.
- Scoped to your tenant
Each incident is its own stream, in a partition keyed by your workspace, and the incident API reaches it only through authorized calls.
Boundaries: s.
Entities:
- Command Queue [Message Broker]: Messaging Broker to reliably decouple applications for resiliency and scaling
- Command Handler [Compute]: Process, Validate Commands and Write Events
- Event store [Data Store]: Azure Cosmos DB · Event store Deny-by-default firewall; identity still checked
- Event Publisher [Compute]: Validate Events and Publish them for domain integrations
- Events Queue [Message Broker]: Messaging Broker to reliably decouple applications for resiliency and scaling
- Integration Handler [Compute]: Integration handlers react to events
- Integration Handler [Compute]: Integration handlers react to events from other stores
- Read models [Data Store]: Azure SQL Read models for queries: CQRS
- REST API [Compute]: Serves reads from the read model
- Event Replay [Service]: Republishes history from the store on request
- Projection Handler [Compute]: Builds read models from events
Relationships:
- ? to ?: (event)
- Messaging Broker to reliably decouple applications for resiliency and scaling to Projection Handler: (event)
How it fares across the Well-Architected pillars
ReliabilityThe history is durable, ordered and always the recovery source.
- Durable history. The history sits in a zone-redundant database with continuous backup and point-in-time restore. Restoring the event history is rehearsed.
- Committed first, then published. An event is committed before it is published, and it is published from the committed history. If a publish is missed, replay republishes from the store, so the history is always the recovery source. Views and consumers are eventually consistent with the history, and converge again after a missed publish.
- Ordered, retried, set aside. Commands for a workspace are processed in order. A command that breaks a business rule is recorded as a rejected event, not dropped. A transient problem is retried by redelivery, and a persistent one is set aside in a dead-letter queue for review.
- Duplicate detection. Events carry their event id as the message id, and the events topic detects duplicates.
SecurityIdentity-based access, scoped to your tenant, append-only with a governed purge.
- Identity, not secrets. The service uses managed identities, key-based authentication on the database is disabled, and access is through custom, least-privilege roles.
- Protected in transit and at rest. Data is encrypted at rest and TLS 1.2 or later is enforced by policy.
- Tenant-keyed. Streams are partitioned by a key that includes the workspace, and read-model queries filter by it. The data segregation page states the boundary at every hop.
- Residency. Event history, databases and messaging are policy-locked to Switzerland North, and recovery copies stay in Switzerland. AI model processing runs in regions approved by Legal and Security, mostly Sweden Central, with Switzerland North also approved.
- Signed where it matters. Sensitive data that services share over the message bus is signed by the service that owns it and verified by the receiver before use.
- Append-only, with a governed purge. Corrections are new events, and nothing is edited in place. When customer data must be deleted, a purge removes the history, the stored attachments and the read-model rows as separate, capped, paced and monitored steps.
Operational ExcellenceOne pattern to run, trace and rebuild.
- Traceable end to end. Every event carries correlation identifiers, so a published event can be followed back to the command that caused it.
- Views are disposable. A new report, or a fix to a view, is a replay into a read model, not a migration of the source of truth. Replay is also the runbook for recovery after a restore.
- One pattern to run. Every domain uses the same building block, and every service carries its own telemetry and policy-enforced diagnostics.
Performance EfficiencyWrites spread across partitions, reads are separate from writes, consumers scale on their own.
- Writes spread across partitions. Each incident is its own stream, so ordering is needed only within a workspace and load spreads across partitions.
- Reads and writes are separated. Writes append to the history. Portals and reports read from operational read models in Azure SQL and never replay the history, so each side can be tuned on its own. The read models are eventually consistent with the history.
- Consumers scale on their own. Each has its own subscription and works at its own pace. Large context is kept in blob storage and referenced from the event, so events stay small.
Trade-off
Related
Resiliency and DR · Security and identity · Observability and operations · Sentinel integration