ION DocsV3
  • Architecture
    • ION Architecture V2
      • ION V2 — Architecture Overview
      • V2 context
        • V2 capacity model
        • V2 constraints
        • V2 integration boundaries
        • V2 requirements
        • V2 solution strategy
      • V2 Structural Design
        • ION V2 Landscape
        • ION V2 Platform Views
          • ION V2 Delivery and Runway
          • ION V2 Incident-Processing Pipelines
          • ION V2 Platform Networking
          • ION V2 Platform Observability
          • ION V2 Platform Security
        • ION V2 System Context
        • ION V2 Systems
          • Alya System Topology
          • Cogs System Topology
          • Ion IQ System Topology
          • Kingsman System Topology
          • Pigeon System Topology
          • Veritas System Topology
          • Watchtower System Topology
      • V2 evolution and platform lineage
        • Tiberium Origins
          • Tiberium Architecture Overview
          • Tiberium Components Architecture Overview
        • Voyager and the V2 Merge
          • Voyager Architecture Overview
          • Voyager Identity Architecture Overview
          • Voyager Services Architecture Overview
      • V2 Platform Architecture
        • Alya Workbench
          • Mission Brief: Alya (Workbench for Cyber Defenders)
        • Asset Discovery
        • Automation
        • Customer Communications
          • Notification and Escalation Design
        • Reporting and Dashboards
        • Vulnerability Mitigations
      • V2 Well-Architected
        • V2 Reliability
          • Availability Architecture
        • V2 Security
          • API Management
            • API Management Architecture
            • API Management Guidelines
            • API Management Implementation
              • APIM Deployment and Debugging
              • APIM Global Policy Implementation
              • APIM Platform Provisioning
              • APIM Policy Authoring
              • APIM Service Onboarding
              • APIM Webhook Flow Implementation
            • API Management Policy Model
          • V2 Security Architecture
          • Teams Notification Security
          • Customer Data and PII
          • V2 Identity
            • Applications and Authorization
            • V2 Identity Architecture
            • Microsoft Entra ID
            • V2 Identity Standard
            • V2 Identity Implementation
              • Application Registration
              • Application Roles
              • Customer Identity Onboarding
              • Identity Lifecycle and Operations
              • Managed Identity
            • V2 Identity Workflows
              • Alya Workbench Identity Workflow
              • Customer Portal Identity Workflow
              • Microservices Identity Workflow
              • ServiceNow Inbound Identity Workflow
              • Microsoft Teams Identity Workflow
          • Customer Environment Access
            • Customer Environment Access Architecture
            • Customer Environment Access Guidelines
            • Customer Environment Access How-to
    • ION Architecture V3
      • ION V3 Architecture Overview
      • V3 context
        • V3 capacity model
        • V3 constraints
        • V3 integration boundaries
        • V3 requirements
        • V3 solution strategy
      • V3 Structural Design
        • Data and events
          • Archival and retention
          • Event model
          • Event sourcing
          • Event store
          • Micro-frontend interaction
          • Recovery and disaster recovery
          • Replay and reconstruction
          • Reporting and customer analytics
          • Event-sourcing requirements
          • Snapshots
          • UI interaction
        • ION v3 domains
          • Assets domain
            • Assets domain flows
            • Assets domain implementation
            • Assets domain model
          • Customer Collaboration domain
            • Customer Collaboration domain flows
            • Customer Collaboration domain implementation
            • Customer Collaboration domain model
          • Incident domain
            • Incident domain flows
            • Incident domain implementation
            • Incident domain model
          • Investigation domain
            • Investigation domain flows
            • Investigation domain implementation
            • Investigation domain model
          • Remediation domain
            • Remediation domain implementation
            • Remediation domain model
          • Ticket domain
            • Ticket domain flows
            • Ticket domain implementation
            • Ticket domain model
        • ION V3 Landscape
        • ION V3 Platform Views
          • Internal API
            • Internal API architecture
            • Internal API consumer guide
            • Internal API identity and access
            • Internal API implementation
          • Micro-Frontends
            • Micro-Frontends architecture
            • Micro-Frontends capability service (Signet)
            • Micro-Frontends composition
            • Micro-Frontends identity and access
            • Micro-Frontends implementation
            • Micro-Frontends real-time (SignalR)
            • Micro-Frontends routing and ingress
            • Shells and MFEs
          • SOAR Integration
            • SOAR Integration architecture
            • SOAR Integration customer onboarding
            • SOAR Integration Identity and Access Design
            • SOAR Integration implementation
            • SOAR Integration operations
        • ION V3 System Context
        • ION V3 systems
          • Alya
          • Cogs
          • ION IQ
          • Kingsman
          • Pigeon
          • Veritas
          • Watchtower
      • V2 to V3 evolution
        • V2 to V3 architecture delta
        • V2 to V3 decision changes
        • V2 to V3 migration guidance
        • V2 to V3 service impact
      • Well-Architected
        • Cost Optimization
          • Cost Governance
            • Cost Governance Architecture
            • Cost Governance Guidelines
            • Cost Governance Implementation
          • SKU Strategy
            • SKU Strategy Architecture
            • SKU Strategy Guidelines
            • SKU Strategy Implementation
        • Operational excellence
          • Audit Logs
            • Audit Logs Architecture
            • Audit Logs Guidelines
            • Audit Logs Implementation
          • CI/CD Runway
            • CI/CD Runway Architecture
            • CI/CD Runway Guidelines
            • CI/CD Runway Implementation
          • Feature Flags
            • Feature Flags Architecture
            • Feature Flags Guidelines
            • Feature Flags Implementation
          • Incident management
            • Incident management architecture
            • Incident management guidelines
            • Incident management implementation
          • Azure Landing Zone
            • Azure Landing Zone Architecture
            • Azure Landing Zone Guidelines
            • Azure Landing Zone Implementation
          • Notifications
            • Notifications Architecture
            • Notifications Guidelines
            • Notifications Implementation
          • Observability
            • Observability Architecture
            • Observability Guidelines
            • Observability Implementation
        • Performance efficiency
          • Capacity, sizing, and scaling
            • Capacity, sizing, and scaling architecture
            • Capacity, sizing, and scaling guidelines
            • Implement capacity, sizing, and scaling
          • UI responsiveness
            • UI responsiveness architecture
            • UI responsiveness guidelines
            • Implement UI responsiveness
        • V3 reliability
          • Application resilience patterns
          • Critical flows
          • Customer reliability assurance
            • ION Platform reliability and service continuity
            • Customer reliability slides
          • Disaster recovery
            • Disaster recovery architecture
            • Disaster recovery guidelines
            • Disaster recovery implementation
              • DR implementation: API Management
              • DR implementation: App Configuration
              • DR implementation: Application Gateway
              • DR implementation: Azure SQL Database
              • DR implementation: Container Apps
              • DR implementation: Container Registry
              • DR implementation: Cosmos DB
              • DR implementation: Event Hubs
              • DR implementation: Azure Front Door
              • DR implementation: Function Apps
              • DR implementation: Key Vault
              • DR implementation: Log Analytics and Application Insights
              • DR implementation: MySQL Flexible Server (Temporal)
              • DR implementation: PostgreSQL Flexible Server
              • DR implementation: Azure Managed Redis
              • DR implementation: Service Bus
              • DR implementation: SignalR
              • DR implementation: Storage accounts
            • Operational-data replication
            • Disaster recovery operations
          • Edge and routing
            • Azure Application Gateway
              • Azure Application Gateway architecture
              • Azure Application Gateway guidelines
              • Azure Application Gateway implementation
              • Azure Application Gateway resiliency
              • Azure Application Gateway security
            • Azure Front Door
              • Azure Front Door architecture
              • Azure Front Door guidelines
              • Azure Front Door implementation
              • Azure Front Door resiliency
              • Azure Front Door security
          • Event-store disaster recovery (moved)
          • Failure mode analysis
          • Graceful degradation
            • Graceful degradation architecture
            • Graceful degradation guidelines
            • Graceful degradation implementation
          • V3 reliability maturity model
            • V3 reliability maturity assessment
            • Maturity level 2: self-preservation
            • Maturity level 3: recovery readiness
            • Maturity level 4: maintain stability
            • Maturity level 5: stay resilient
          • Multi-region replication
            • Multi-region replication architecture
            • Multi-region replication guidelines
            • Multi-region replication implementation assessment
          • Reliability testing
          • Scaling and headroom
          • Targets and health model
          • Trade-offs and accepted risks
        • V3 Security
          • API Management
            • API Management Architecture
            • API Management Guidelines
            • API Management Implementation
              • API Contracts and Asynchronous Operations
              • APIM Deployment and Debugging
              • APIM Global Policy Implementation
              • APIM Platform Provisioning
              • APIM Policy Authoring
              • APIM Service Onboarding
              • APIM Webhook Flow Implementation
            • API Management Policy Model
          • V3 Security Architecture
          • Data protection
            • Data protection architecture
            • Data protection guidelines
            • Data protection implementation guidelines
              • API Management
              • Application Gateway
              • Azure SQL Database
              • Azure Container Apps
              • Azure Cosmos DB
              • Azure Front Door
              • Azure Function Apps
              • Azure Database for MySQL
              • Azure Database for PostgreSQL
              • Data protection procedures
          • V3 Security Guidelines
          • V3 Identity
            • Applications and Authorization in ION V3
            • V3 Identity Architecture
            • Capabilities
            • Microsoft Entra ID for ION V3
            • V3 Identity Standard
            • V3 Identity Implementation
              • App Service Authentication
              • Application Registration
              • Application Roles
              • Customer Azure RBAC
              • Customer Identity Onboarding
              • Identity Lifecycle and Operations
              • Mailbox-Scoped Access
              • Managed Identity
              • Workload Identity Federation
            • V3 Identity Workflows
              • Alya Workbench Identity Workflow
              • Customer Azure RBAC Identity Workflow
              • Customer Portal Identity Workflow
              • Mailbox Access Identity Workflow
              • Microservices Identity Workflow
              • ServiceNow Inbound Identity Workflow
              • Shell and MFE Identity Workflow
              • Microsoft Teams Identity Workflow
          • Customer Environment Access
            • Azure Lighthouse
              • Azure Lighthouse implementation
            • GDAP and Tenant Governance
              • Access Packages (legacy)
              • GDAP human access implementation
            • Customer environment access guidelines
            • Multi-tenant Entra apps
              • Multi-tenant Entra apps implementation
            • Teams B2B Direct Connect
              • Teams B2B Direct Connect implementation
          • Network Security
            • Network Security Architecture
            • Network Security Guidelines
            • Network Security Implementation
              • Egress and Static IPs
              • Resource Access Restrictions
          • V3 Security Patterns
    • ION Architecture V4
      • How V4 evolves from V3
  • Principles
  • Patterns
    • Application Permissions Only
    • Async REST
    • Audit Logs (Pattern)
    • Auth / AuthZ
    • Dead Letter Queue (DLQ)
    • Dual Writes (and how to avoid them)
    • ECST — Event-Carried State Transfer
    • Event Hubs Throttling
    • Feature Flags (Pattern)
    • Idempotent Write
    • MFE UI Interaction
    • Notifications (Pattern)
    • Private Data Store Access
    • Schema Evolution
    • Service Bus Topic Throttling
    • UI Interaction with an Event-Sourced Backend
  • Standards
    • API Standard
    • API Standards
    • Coding Standard
    • Coding Standards
    • Documentation Standard
    • Documentation Standards
    • Microservice Standard
    • Microservice Checklist
    • Operational Readiness Standard
    • ORR — Operational Readiness Review Checklist
  • Decisions
    • ADR-0001
    • ADR-0002
    • ADR-0003
    • ADR-0004
    • ADR-0005
    • ADR-0006
    • ADR-0007
    • ADR-0008
    • ADR-0009
    • ADR-0010
    • ADR-0011
    • ADR-0012
    • ADR-0013
    • ADR-0014
    • ADR-0015
    • ADR-0016
    • ADR-0017
    • ADR-0018
    • ADR-0019
    • ADR-0020
    • ADR-0021
    • ADR-0022
    • ADR-0023
    • ADR-0024
    • ADR-0025
    • ADR-0026
    • ADR-0027
    • ADR-0028
    • ADR-0029
    • ADR-0030
    • ADR-0031
    • ADR-0032
    • ADR-0033
    • ADR-0034
  • Services
  • Governance
    • Assumptions
    • Discrepancies
    • V3 reference coverage and conflict matrix
OntinueION Docs
  1. Architecture
  2. ION Architecture V3
  3. Well-Architected
  4. V3 reliability
  5. Disaster recovery
  6. Disaster recovery implementation
  7. DR implementation: Cosmos DB

DR implementation: Cosmos DB

reliability
architecturev3

DR implementation: Cosmos DB

Tier: T0. Cosmos DB hosts the event stores, which are the source of truth for the platform (ADR-0007, ADR-0018). Three event stores are on the T0 path: incidents, tickets, and investigations.

This page is the home of event-store disaster recovery. It covers the account configuration, the recovery sequence (restore, validate ordering, replay), retention and snapshots, and the per-account gaps. It replaces the former event-store DR pages.

Current configuration (prd)

AccountRoleBackupZone-redundantStatus
cosno-bcincIncidents event store (T0)Continuous, 30 daysYesMeets the guidelines
cosno-bcinv-prd-chn-01Investigations event store (T0)Periodic, every 240 minutes, 8-hour retention, geo backup storageYesDR-01, HIGH
cosno-bctkt-<env>-chn-01Tickets event store (T0)UnknownUnknownDR-02, HIGH. Referenced in code, not found in the inventory
cosno-bcremRemediationPeriodic, the same settingsYesDR-06
cosno-crbffBFF storePeriodic, the same settingsYesDR-06
cosno-dprso-prd-chn-02Service storeContinuous, 30 daysNoDR-07
Other accountsService storesContinuous, 30 daysYesMeet the guidelines

All accounts are single-region in Switzerland North. The Periodic accounts use Periodic mode in gma, apa, and bta too.

Why the investigations event store is HIGH

With Periodic backup at a 4-hour interval and 8-hour retention:

  • A corruption can be rolled back only to the last 4-hour snapshot. Up to 4 hours of investigation events can be lost, against an event-store RPO of about 100 seconds in ADR-0018.
  • A corruption that is found more than 8 hours later cannot be restored at all.
  • A Periodic restore needs a Microsoft support request. It is not self-service, which adds time that ION does not control to the T0 RTO of 4 hours.

Moving to continuous backup is an online, one-way migration. It is the remediation for DR-01 and DR-06.

Failure scenarios

ScenarioBehaviourRecoveryRTO and RPO
Node failureTransparentAutomaticRTO 0. RPO 0
Zone loss, zone-redundant accountTransparentAutomaticRTO 0. RPO 0
Zone loss, cosno-dprsoPossible unavailability until Microsoft recoversMicrosoft-managedUntil Microsoft recovers
Logical corruption or a bad writerInvalid events or documentsContain, then PITR to a new account, validate, replay (data recovery flow)T0 objective of 4 hours or less. RPO is second-level on continuous, or up to 4 hours on Periodic
Container or database deletedMissing dataContinuous: restore the deleted container or database in place. Periodic: support requestMinutes to hours
Account deletedThe store is goneContinuous: restore the deleted account from the restorable list within retention. Periodic: support requestHours
Throttling (429)Write latency, and retries pile upRaise the RU/s, or let autoscale act. Shed load with degraded-modeMinutes
Switzerland North region outageThe event stores are unavailableNone in ION. The transactional platform waits for the region, an accepted risk in ADR-0017Not covered. See the region outage procedure

What the targets claim

  • RTO 0 and RPO 0 apply only to node and zone failures, for committed events on zone-redundant accounts.
  • A logical failure on a T0 event store has the T0 objective of RTO 4 hours or less, at the PITR granularity of the account.
  • A regional outage is not covered. The event-store targets in ADR-0018, RTO 30 minutes or less and RPO 0, belong to the planned multi-region posture, which is a proposal.
  • Every value is an objective until a drill measures it.

Recovery procedures

The event-store sequence is stricter than a normal database restore, because the event log is the source of truth and every projection is rebuilt from it.

1

Find the restore point

Owner: Owning service team

Freeze the event-producing command handlers first, or make sure their commands are held in a durable queue.

Find the first bad write from the application logs and the change feed. Choose a timestamp just before it, in UTC. Check that it is inside the retention window with az cosmosdb restorable-database-account list.

2

Restore to a new account

Owner: Owning service team, approved by the incident commander

Run az cosmosdb restore with --target-database-account-name <account>-rst-<yyyymmdd>, the source account, and the restore timestamp. Restore only the affected databases and containers if you can. The new account does not inherit the networking, RBAC, or diagnostics settings, so apply them from Terraform before any app connects.

3

Validate and replay

Owner: Owning service team

Run the event-store checks:

  • the total event count, and the count per stream;
  • a deterministic sample of event hashes;
  • sequence continuity per aggregate: no gaps and no duplicate sequence numbers;
  • the final event at the restore point: its identifier, timestamp, and aggregate sequence.

Then disable the normal projectors and rebuild the projections with isolated, idempotent replay workers against clean projection stores, using the replay procedures. Replay MUST NOT write to the event store.

4

Cut over

Owner: Owning service team, approved by the destructive restore approver

Reconcile the projector checkpoints, the pending commands, and the dead-lettered messages. Open the restored account read-only and validate business state and backlog. Then re-point the service configuration to the restored account, resume the consumers, and drain the Service Bus backlog at a controlled rate. Keep the damaged account read-only until the post-incident review closes. Making the restored account permanent is a separate failback change.

Rules

  • Event-store accounts MUST use continuous backup with 30-day retention in prd, as set by data protection.
  • Accounts MUST be zone-redundant in gma and prd.
  • The backup mode MUST be set explicitly in Terraform (backup { type = "Continuous", tier = "Continuous30Days" }). The live state showed that relying on the defaults hid the Periodic accounts.
  • prd accounts MUST have prevent_destroy and a CanNotDelete lock.
  • A restore MUST target a new account. It MUST NOT overwrite the damaged account in place.
  • Each bounded context MUST have its own event-store account.
  • Event stores MUST keep append-only events, per-aggregate sequence numbers, and session consistency, and MUST NOT use multi-region writes.
  • Services MUST reach the event store with managed identity and data-plane roles, not shared keys.
  • Every projector MUST be idempotent and safe to replay.
  • Writes MUST NOT reopen until pending commands and dead-lettered messages are reconciled.

Retention, archival, and snapshots

CapabilityTargetStatus
Hot retentionSix months of queryable events (DATA-1)Not enforced. Events stay in the hot store indefinitely
Cold retentionOne year of replay-capable events in Blob storage (DATA-1, DATA-2)Not implemented. No archival workflow moves or verifies events
SnapshotsOptional speed-up for long streams (DATA-3)Designed, not implemented. Replay from the stream is the only recovery mechanism
  • PITR retention is a recovery control. It MUST NOT be treated as the cold-retention target.
  • Recovery MUST NOT depend on snapshots until snapshot creation, versioning, integrity checks, and fallback to stream replay are implemented.
  • Snapshots SHOULD be re-evaluated for an aggregate when its stream length causes a measured reconstruction problem.

The design is in archival and snapshots.

Gaps

IDSeverityGapOwner
DR-01HIGHInvestigations event store on Periodic backupInvestigations team, CPE
DR-02HIGHTickets event store not found in the inventoryTickets team, CPE
DR-06MEDIUMcosno-bcrem and cosno-crbff on Periodic backupOwning service teams
DR-07MEDIUMcosno-dprso not zone-redundantOwning service team

Validation and drills

  • Twice a year in gma: restore an event store to a new account, validate it, and replay one projection.
  • Record the drill evidence: the selected restore point, the backup lag, the restore duration, the replay throughput, the projection catch-up time, the validation results, and the final RTO and RPO. A walkthrough without a real restore does not validate PITR.
  • The event-store drill has been run once. Its results are not yet recorded here (RT-04).
  • Plan review: run a Resource Graph check on backupPolicy.type and on the zone redundancy of every location.

Related pages

  • Replay
  • Event design: recovery runbook
  • Data protection: Cosmos DB
  • Data protection procedure: restore a Cosmos DB event store
  • Microsoft Learn: Continuous backup with PITR
  • Microsoft Learn: Migrate from Periodic to continuous backup

On this page

  • Current configuration (prd)
  • Failure scenarios
  • What the targets claim
  • Recovery procedures
  • Rules
  • Retention, archival, and snapshots
  • Gaps
  • Validation and drills
  • Related pages
PreviousDR implementation: Container Registry
NextDR implementation: Event Hubs
Edit on GitHubSecurity