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_shortcolumn 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 designwith the projection schema per bounded context and the RLS policy shape. - Publish
patterns/projections.mdcodifying 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
prddatabases are not zone-redundant:sqldb-bcinc-prdruns 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).