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. Decisions
  2. Reporting data store — Azure SQL Database projection populated from event stores; React dashboards over BFF; PowerBI as external BI integration only

Reporting data store — Azure SQL Database projection populated from event stores; React dashboards over BFF; PowerBI as external BI integration only

proposedperformance efficiency
decisionsv3v4proposed0022reportingdashboardsprojectioncqrsazure-sqlreactpowerbiveritas

ADR-0022 — Reporting data store: Azure SQL Database projection populated from event stores; React dashboards over BFF; PowerBI as external BI integration only

Context

V2 shipped customer-facing dashboards on PowerBI (IMPORT mode) with one PowerBI workspace per customer, refreshed periodically from Log Analytics workspaces. The V2 architecture document (Architecture- Ontinue ION V2.md § PowerBI Dashboard implementation) records concrete limits that made this unsustainable at V3 scale:

  • Refresh limits: PowerBI Pro caps at 8 refreshes/day; Premium at 48 — neither meets the V3 “data freshness < 5 min” requirement (ION v3- Reporting Data Store.md § Performance).
  • Storage limits: Pro = 10 GB; Premium = 100 TB — cost scales per-customer.
  • Developer velocity: every customer workspace has to be manually created and updated for new/changed dashboards — does not scale past a few tens of customers, and V3 targets 500-1 000.
  • Direct-Query mode was evaluated as an escape hatch (§ Using PowerBI Direct Query) but ties every dashboard render to a live query against the primary store — not viable against the Cosmos DB event stores (ADR-0006, ADR-0007) at ION’s RU-cost model.

V3 needs a reporting substrate that:

  • Serves customer-facing dashboards in the ION Portal (Veritas) at < 5 min data freshness and 3-5 s render time.
  • Delivers modern dashboard UX — custom-branded, interactive, drill-down-first, animated transitions, mobile-responsive — matching the expectations of a customer-facing SaaS product in 2023-2024.
  • Supports flexible aggregations over incident, ticket, and investigation data (severity distribution, response actions, MTTR, trends, MITRE coverage).
  • Segregates customer data at row/schema level and supports bulk delete for offboarding.
  • Retains hot 6 months / cold 1 year with retention governance.
  • Handles ~500 events/sec sustained ingestion (peak higher per capacity-model D-1/D-2), 500+ queries/sec with simple-query latency < 60 s and complex aggregation < 180 s.
  • Supports external BI tools (PowerBI, Tableau, custom) as an integration surface, not as the primary dashboard engine.
  • Stays within Swiss data-residency boundary.
  • Reuses the existing ION Portal (Veritas) React runtime rather than adding a parallel dashboarding stack.

The reference doc treats this as one problem; this ADR splits it into two coupled decisions — the projection store technology and the dashboard rendering path — because they can be answered independently and each has its own alternatives.

Forces / Drivers

  • Requirement / Constraint: V3 dashboard freshness < 5 min; render 3-5 s; 500 events/sec ingest, 500+ queries/sec; multi-tenant segregation; customer offboarding delete-by-tenant; Swiss residency; RTO 1 h / RPO 0; PowerBI limits documented in Architecture- Ontinue ION V2.md § Limitations; BI-tool integration requirement; modern dashboard UX for a customer-facing SaaS surface (custom branding, interactivity, drill-down, animation, mobile); cost efficiency at 500-1 000 customer scale; existing React runtime already shipped as the ION Portal (Veritas).
  • Principle(s) embodied: § 8 Event Sourcing (reporting store is a CQRS read-model projection off the authoritative event store); § 21 Azure-native managed services first; § 14 Independent scalability (read path scales independently of the write-side event store); § 18 Data residency & compliance; § 19 Cost as design constraint; § 13 BFF pattern.
  • WAF pillar optimized: performance-efficiency (primary — < 5 min freshness, aggregation query performance); operational-excellence (single dashboard-authoring pipeline replacing per-customer PowerBI workspaces); cost-optimization (bounded projection storage vs. per-customer PowerBI Premium); security (row-level customer segregation, deletable per-tenant).

Decision

Two coupled decisions:

Part A — Projection store: Azure SQL Database (Hyperscale) as the reporting projection store

  • Azure SQL Database (Hyperscale tier) hosts the reporting projection(s) — one CQRS read model per bounded context (Incident, Ticket, Investigation).
  • Projections are populated by subscriber services that consume events from the Cosmos DB event stores via change feed / event backbone (per ADR-0006, ADR-0008), transform them into the reporting schema, and upsert into the SQL projection. Idempotent by event-position/checkpoint.
  • Multi-tenant segregation: customer_short column on every reporting table + Azure SQL Row-Level Security (RLS) policies keyed off the authenticated caller’s tenant claim.
  • Customer delete API: bounded-context services expose a delete-by-tenant operation that cascades across the projection.
  • Residency: Azure SQL instance provisioned in Switzerland North; zone-redundant HA within the region (target; the current tiers are interim and not zone-redundant, see Amendments); DR posture inherits ADR-0017.
  • Retention: hot 6 months in Hyperscale primary; cold 1 year in archived partitioned tables (or Blob archive with query-on-demand); purge policy runs off metadata table.

Part B — Dashboard rendering: React SPA dashboards in the ION Portal (Veritas), reading through a BFF

  • Customer-facing dashboards are rendered by a React SPA in the ION Portal (owned by Veritas system) using standard charting libraries.
  • The SPA calls a Veritas BFF (per ADR-0013) that terminates the user token, applies authorization, and queries the SQL projection.
  • Aggregation queries are exposed as REST endpoints per widget (json:api per ADR-0020), not as a generic query API — this bounds the query surface APIM / BFF must validate and the SQL projection must serve.
  • Real-time widget updates (where required) use SignalR push from Veritas BFF for incremental notifications; the underlying data still lives in the SQL projection.

Part C — PowerBI (and other BI tools): external integration only, via REST API

  • PowerBI is retired as the ION Portal dashboard engine.
  • PowerBI, Tableau, and custom BI tools remain supported as external integrations — customers/analysts who want to build their own dashboards call the same REST endpoints (json:api) that the SPA uses, or a purpose-built PowerBI-friendly OData/CSV export endpoint where warranted. No PowerBI-direct-query into the primary event store or SQL projection — external BI tools go through the API boundary only.

Alternatives Considered

Projection store technology

Option A1 — Azure SQL Database (Hyperscale) (selected — see Decision Part A)

Option A2 — Reuse Cosmos DB (query the event store or a Cosmos projection container)

Rejected — decisive: RU/query-cost model is wrong for BI-style aggregations across weeks/months of history. Reinforcing: cross-partition scans are expensive; aggregation surface (SUM/GROUP BY/window functions) is thinner than SQL; query cost is unpredictable per-dashboard-render.

Cosmos DB is the right shape for the event store’s write path (ADR-0007) — high-throughput single-partition reads keyed by aggregate id. Dashboard reads are the opposite shape (fan-out aggregations across tenants over time windows). CQRS exists exactly to split these two shapes.

Option A3 — Azure Data Explorer (ADX / Kusto)

Rejected — decisive: fixed cluster cost model is disproportionate to V3 volumes and reporting-query complexity. Reinforcing: operational overhead of ADX cluster tuning (ingestion mappings, materialized views, retention policies) exceeds what the reporting problem needs.

ADX is excellent for high-cardinality telemetry and log analytics (it is what Log Analytics/Application Insights uses under the hood — per ADR-0021). For dashboard aggregations that fit relational patterns, SQL is a better ergonomic and cost match at V3 scale. Revisit if incident volumes cross ADX’s sweet spot (billions of rows / sub-second slice-and-dice) — currently not the case.

Option A4 — Azure Synapse Analytics / dedicated SQL pool

Rejected — decisive: analytical warehouse tier over-provisioned for the reporting shape. Reinforcing: latency profile targets minutes-to-hours rather than the < 5 min freshness ION needs; cost disproportionate.

Synapse fits data-warehouse workloads (ETL from many sources into a star schema for BI). ION’s reporting shape is closer to operational-report projections off event streams.

Option A5 — Azure Database for PostgreSQL Flexible

Rejected — decisive: Hyperscale scale-out story on Azure SQL is better matched to V3 read-scale (500+ QPS with named replicas). Reinforcing: RLS + Entra auth integration on Azure SQL is first-class; existing Ontinue/Anvil expertise leans SQL Server. Not rejected on capability grounds — Postgres could serve the same shape; Azure SQL Hyperscale wins on the specific scale-out primitive ION needs plus platform-team fit.

Option A6 — Materialized views inside Cosmos DB

Rejected — decisive: Cosmos materialized-view surface is thin (aggregations limited; no windowed functions); RU cost still scales with view-refresh frequency.

Option A7 — Time-series database (InfluxDB / TimescaleDB self-hosted)

Rejected — decisive: § 21 Azure-native first — self-hosted with no capability gap that Azure SQL doesn’t cover. Reinforcing: incident data is not purely time-series — significant relational joins across incident / ticket / investigation are needed.

Option A8 — Real-time OLAP (Druid / Pinot / ClickHouse self-hosted)

Rejected — decisive: § 21 Azure-native first; sub-second OLAP capability is not what dashboards need at ION’s scale (3-5 s render budget is comfortable for SQL Hyperscale).

Option A9 — Elasticsearch / OpenSearch (self-hosted or Elastic Cloud)

Rejected — decisive: § 21 Azure-native first for the self-hosted variant; Elastic Cloud fails Swiss residency and § 21 (not Azure PaaS). Reinforcing: aggregation ergonomics and relational-join support are worse than SQL for this shape.

Dashboard rendering path

Option B1 — React SPA + BFF over REST (json:api) (selected — see Decision Part B)

Option B2 — Retain PowerBI (embedded) as the primary dashboard engine

Rejected — decisive: the concrete V2 limits documented in Architecture- Ontinue ION V2.md § Limitations — refresh caps (8-48/day), per-customer workspace manual maintenance, storage caps, developer velocity. None of these can be reconciled with V3’s freshness target and 500-1 000 customer scale.

Reinforcing grounds:

  • Modern dashboard UX is structurally hard on PowerBI. Customer-facing SaaS dashboards in 2023-2024 are expected to be brand-integrated, highly interactive, animated, mobile-responsive, and deeply customisable at the widget level. PowerBI Embedded’s visual model, theming, and interaction surface are optimised for internal business-analyst reports, not for a customer-facing product surface. Every non-trivial UX requirement (custom drill-down flows, tailored animations, per-widget layout control, cross-widget state) becomes a workaround. In contrast, the React ecosystem provides a vast catalogue of open-source and commercial charting/dashboard libraries — Recharts, Visx, Nivo, ECharts, D3, AG Grid / AG Charts, Highcharts, Chart.js, Tremor, MUI X Charts, and others — giving ION direct access to first-class primitives, composition, theming, and interaction models. The UX ceiling is dramatically higher on React for the same engineering effort.
  • PowerBI Embedded cost at ION scale. PowerBI Embedded is provisioned as a capacity (A/EM SKU) that must be sized for peak concurrent load across all customers, and per-user licensing applies to embedded scenarios in several configurations. At 500-1 000 customers with ~20 UI-access users per customer and dashboard usage concentrated in business hours, PowerBI Embedded is an expensive fixed capacity that scales with peak concurrency rather than with actual value delivered. A React SPA hosted on the ION Portal (Veritas) has effectively zero incremental infrastructure cost — the Portal, BFF, edge, and SQL projection are already provisioned; adding dashboard components is application-tier work, not a new licensed capacity line.
  • Duplicate runtime. Keeping PowerBI Embedded alongside the already-shipped React Portal means two rendering runtimes, two theming systems, two auth-embedding models, two support surfaces, and two deployment cadences — for zero product benefit over consolidating on React.

Option B3 — PowerBI (Direct-Query mode) against the SQL projection

Rejected — decisive: couples dashboard render latency to PowerBI’s query-generation model and to the shared SQL query budget; customer branding/UX in the ION Portal is severely constrained by PowerBI’s embedded surface. Reinforcing: still one PowerBI workspace per customer for tenancy segregation — the developer-velocity problem does not go away.

Option B4 — Server-rendered dashboards (SSR HTML/PNG)

Rejected — decisive: no client-side interactivity (drill-down, filters, custom time ranges are all first-class requirements per ION v3- Reporting Data Store.md § Dashboard Requirements).

Option B5 — Grafana (self-hosted or Grafana Cloud)

Rejected — decisive: § 21 Azure-native first for self-hosted; Grafana Cloud fails § 21 (not Azure PaaS) and Swiss residency. Reinforcing: customer-facing UX requires custom branding and deep Portal integration that Grafana embedded views do not provide well.

Option B6 — Azure Managed Grafana

Rejected — decisive: Managed Grafana is a good fit for internal ops dashboards (Azure Monitor sources), not customer-facing brand-integrated dashboards. Reinforcing: RBAC and tenant segregation for customer-facing multi-tenant use is not Managed Grafana’s design center. May adopt separately for internal SRE dashboards; out of scope of this ADR.

External BI integration path

Option C1 — REST API (json:api) + optional CSV/OData export endpoint (selected — see Decision Part C)

Option C2 — Grant PowerBI direct connection into the SQL projection

Rejected — decisive: exposes the projection’s SQL surface as a customer-facing contract, forfeiting the ability to evolve schema or migrate stores without breaking every customer BI setup. Reinforcing: AuthN/AuthZ enforcement becomes SQL-level RLS only (no APIM policy, no BFF layer, no rate limits).

Option C3 — No BI-tool integration; ION Portal is the only surface

Rejected — decisive: business requirement explicit in ION v3- Reporting Data Store.md § Integration with BI Tools.

Rationale

Splitting the projection store from the event store is a direct realisation of § 8 (Event Sourcing) with CQRS — the write model (Cosmos DB, single-partition-per-aggregate reads) and the read model (SQL, cross-tenant aggregations) have fundamentally different access patterns, and the only clean way to serve both well is to project the events into a store optimised for each shape.

Azure SQL Hyperscale wins as the projection store because it hits the V3 targets on the axes that matter — 500+ QPS with named replicas, sub-second aggregation on the hot 6-month partition, RLS for multi-tenant segregation, native Entra auth, Swiss residency, and a familiar SQL query surface for the reporting team. ADX and Synapse are over-provisioned; Cosmos is the wrong shape; self-hosted options fail § 21 with no capability gap to justify the exception.

React SPA + BFF wins as the render path because it removes every V2 PowerBI limit at once — no refresh caps, no per-customer workspace, no import-storage limit, and the developer-velocity problem collapses to “ship a React component” instead of “update N PowerBI workspaces”. BFF layer enforces authorization consistently with the rest of the platform.

Two further arguments matter as much as the V2 limits, and are specific to ION’s V3 posture:

  • UX ceiling. PowerBI Embedded is a business-analyst tool retrofitted as a customer-facing surface; every modern-dashboard requirement (custom branding, drill-down flows, animated transitions, mobile-responsive layout, cross-widget state) is an uphill fight. The React ecosystem gives ION direct access to a mature catalogue of open-source and commercial charting/dashboard libraries (Recharts, Visx, Nivo, ECharts, D3, AG Grid/Charts, Highcharts, Chart.js, Tremor, MUI X Charts) with first-class composition, theming, and interaction models — the same engineering effort buys a dramatically higher UX ceiling.
  • Cost, given the runtime ION already has. The ION Portal (Veritas) React runtime, its BFF, its edge, and the SQL projection are all already provisioned. Adding dashboards is application-tier work with effectively zero incremental infrastructure cost. PowerBI Embedded, by contrast, requires a licensed capacity (A/EM SKU) sized for peak concurrent load across all customers plus embedded-user licensing — a new fixed cost line that scales with peak concurrency, not with delivered value. At 500-1 000 customers this is a materially worse cost curve than the React option.

PowerBI relegated to external integration via REST API preserves the business requirement (customer BI teams can still build their own dashboards) without dragging PowerBI’s V2 limits back onto the critical path. The API contract (json:api) becomes the durable boundary; the store can evolve behind it.

Consequences

Positive

  • Dashboard freshness < 5 min becomes achievable — projection lag is the event-subscriber lag, not a scheduled PowerBI refresh.
  • Developer velocity: dashboards ship as React components in the Portal repo; one deployment for all customers, no per-customer workspace maintenance.
  • Modern-dashboard UX ceiling unlocked — direct access to the full React charting/dashboarding ecosystem (open-source and commercial); custom branding, animation, drill-down, and mobile-responsive layouts become application-tier work, not vendor-shaped workarounds.
  • Materially lower infrastructure cost than PowerBI Embedded at 500-1 000 customer scale — no separately-licensed dashboarding capacity; leverages the ION Portal (Veritas) React runtime, BFF, edge, and SQL projection already provisioned.
  • Multi-tenant segregation via RLS + Entra tenant claim is uniform and auditable.
  • Customer offboarding delete is a bounded operation (delete-by-tenant on projection + retention purge) — a documented capability.
  • SQL query surface is a familiar and cost-predictable substrate for the reporting team.
  • External BI integration is preserved via REST API — customer BI teams can still consume, without a live SQL connection.

Negative

  • Introduces a new stateful Azure PaaS surface (Azure SQL Hyperscale) with its own DR, PITR, cost, schema-migration, and performance-tuning concerns — added to the operational surface already carried by Cosmos event stores.
  • Projection subscribers are another moving part — event-schema changes (per ADR-0005) now have projection-side migration implications; backfill runs must be supported.
  • Eventual consistency between event store and projection is visible to dashboard users (a few seconds normally, up to the freshness SLO under load).
  • Cold-tier retention design (partitioned tables vs. Blob archive) is a follow-up; not settled by this ADR.
  • PowerBI migration for existing customers is a change-management cost — customers with existing PowerBI integrations need a migration path to the REST API.

Neutral / follow-ups

  • Publish V3 reporting design with the projection schema per bounded context and the RLS policy shape.
  • Publish patterns/projections.md codifying idempotent event-to-projection subscriber design (checkpointing, backfill, replay).
  • ADR follow-up: hot/cold retention tiering mechanism (partitioned tables in Hyperscale vs. Blob archive).
  • Coordinate with pending MFE UI ADR — reporting widgets are first-class MFE candidates (per user’s note that MFE patterns refs exist).
  • Internal SRE dashboards (Azure Monitor Metrics) may use Managed Grafana separately — out of scope here.
  • Contract-test the BFF query endpoints against the projection schema.

WAF Pillar Impact

  • Primary pillar: performance-efficiency — freshness < 5 min, 500+ QPS with named replicas, aggregation latency inside render budget.
  • Secondary pillars: operational-excellence (dashboards ship as React code, not per-customer PowerBI workspaces); cost-optimization (Hyperscale storage bounded by projection footprint, not per-customer PowerBI Premium); security (RLS + Entra tenant claim; API boundary controls external BI access).
  • Trade-offs: New stateful surface = new operational tax; eventual consistency is user-visible; PowerBI migration path is a change-management cost. ION accepts these because the V2 PowerBI limits are structurally incompatible with V3 targets.

Previous approach (V2)

V2 shipped PowerBI IMPORT mode with one Power BI workspace per customer, refreshed periodically from Log Analytics data. The legacy V2 ADR3 proposed one Ontinue-owned Log Analytics workspace per customer, but that exact topology is not independently corroborated; see ADR-0031. Concrete V2 limits recorded in Architecture- Ontinue ION V2.md:

  • Refresh limits (Pro 8/day, Premium 48/day) → cannot meet < 5 min freshness.
  • Storage caps (Pro 10 GB, Premium 100 TB) with per-customer cost.
  • Manual workspace-per-customer maintenance → developer velocity breaks past a few tens of customers.
  • Direct-Query mode considered but ties render latency to live SQL/Cosmos queries with no caching or aggregation layer.

V3 replaces all of this with the projection store + React dashboards posture above. PowerBI is retained as an external integration surface via the REST API, not as the dashboard engine.

Amendments

  • 2026-10-15 — Current SQL tiers are interim and not zone-redundant. Part A selects zone-redundant Azure SQL Hyperscale. The deployed prd databases are not zone-redundant:

    • sqldb-bcinc-prd runs on Premium P1. Premium supports zone redundancy, so this is a configuration gap (DR-04, HIGH).
    • The other databases run on Standard DTU tiers (S1 and S3). These tiers do not support zone redundancy (DR-05, MEDIUM).

    The DTU tiers are interim. The target remains zone-redundant Hyperscale, or another zone-redundant tier where Hyperscale is not justified. Backup storage is geo-redundant, which is a backup copy and not a DR capability. See the Azure SQL DR page.

  • 2026-10-15 — Reliability objectives pointer. The RTO 1 h and RPO 0 in Forces / Drivers are design objectives for the planned warm spare, not current guarantees. Current objectives are stated per scenario in the ADR-0017 amendment “Reliability objectives clarified”.

References

  • references/ION v3- Reporting Data Store.md — V3 business, functional, non-functional requirements; retention policy; residency; SLO.
  • references/Event Store- Dashboards.md — projection design shape (severity pie, response bar, trend line, drill-down).
  • references/Architecture- Ontinue ION V2.md § Deployment View — Customer Interaction — V2 PowerBI implementation and its documented limits.
  • references/Architecture V2- ADR3 - Log Analytics Workspace design.md — V2 customer-workspace-per-customer decision that shaped the V2 PowerBI IMPORT model.
  • context/capacity-model.md — 500 events/sec ingest, 500+ QPS on reads, dashboard freshness < 5 min.

Related ADRs

  • Depends on: ADR-0006 (event store is the source; projection is a CQRS read model); ADR-0007 (Cosmos event store change feed / subscription drives the projection); ADR-0008 (projection subscribers consume events over the backbone where applicable); ADR-0013 (BFF terminates user token; RLS uses Entra tenant claim); ADR-0017 (DR posture applies to Azure SQL Hyperscale); ADR-0020 (widget REST endpoints follow json:api).
  • Depended on by: pending MFE UI architecture ADR (dashboard widgets are MFE candidates); per-widget SLI catalogue.
  • Related: ADR-0021 (projection lag and dashboard-render latency are SLIs measured through the observability stack).

On this page

  • Context
  • Forces / Drivers
  • Decision
  • Part A — Projection store: Azure SQL Database (Hyperscale) as the reporting projection store
  • Part B — Dashboard rendering: React SPA dashboards in the ION Portal (Veritas), reading through a BFF
  • Part C — PowerBI (and other BI tools): external integration only, via REST API
  • Alternatives Considered
  • Projection store technology
  • Dashboard rendering path
  • External BI integration path
  • Rationale
  • Consequences
  • WAF Pillar Impact
  • Previous approach (V2)
  • Amendments
  • References
  • Related ADRs
PreviousObservability stack — Application Insights + Log Analytics + Azure Monitor Metrics, instrumented via OpenTelemetry
NextMicro-Frontend (MFE) UI architecture — domain MFEs composed via Module Federation, capability-based auth, BFF-per-MFE
Edit on GitHubSecurity