Technology Architecture (Phase D)
Technology Architecture (Phase D)
Decisions: ADR 1, ADR 8, ADR 9, ADR 10. Mutable document.
Fabric estate
| Item | Dev | Test | Prod | Notes |
|---|---|---|---|---|
| Capacity | F2 (paused outside hours) | F4 (paused outside test windows) | F8 to start; split into ingest and
analytics capacities if reporting is throttled by
backfills |
Pay-as-you-go first; reserved after three months of metrics |
Workspace acme-ingest-restricted-{env} |
✔ | ✔ | ✔ | lh_bronze, lh_silver (with
control schema), pipelines, landing files, the Bronze
loader (the anonymisation gate; the only identity with vault
lookup-or-create), the erasure job, all other notebooks including the
Gold jobs (which write across workspaces into lh_gold),
environment |
Workspace acme-analytics-{env} |
✔ | ✔ | ✔ | lh_gold (tables and Files/publications),
semantic models, reports, the report generator notebook, operations
dashboard |
Workspace acme-realtime-{env} |
— | ✔ | ✔ | Eventstream from Service Bus, Activator rules (same region as the lakehouses: OneLake and job events require same-region consumers) |
| Environment (Spark) | Fabric runtime (latest GA), libraries pinned: delta,
requests, azure-servicebus,
azure-identity, azure-data-tables |
Shared across notebooks; per-layer Spark profiles in data architecture | ||
| Variable library | ✔ | ✔ | ✔ | Lakehouse and workspace ids, Key Vault name, storage account, schedules per environment; referenced by pipelines and notebooks instead of hard-coded ids |
| Git integration | Feature branches → develop → main;
deployment pipelines dev → test → prod |
fabric-cicd or deployment pipelines; notebooks, pipelines, lakehouse definitions, semantic models in Git. Exception: the eventstream's Service Bus source supports neither Git integration nor managed identity, so it is configured per environment by runbook with a shared access key from Key Vault |
Azure estate (per environment)
| Resource | SKU / plan | Purpose |
|---|---|---|
Function App func-ingest |
Flex Consumption, .NET 10 isolated (extractor runtime pending the WP0b PoCs) | HubSpot extractor, Google Ads extractor, webhook receiver, nudge worker, webhook dispatcher, delivery adapter |
| Storage account | Standard LRS | Function runtime storage and the adapter state tables in Azure Table Storage (page cursors, nudge log, delivery log, subscriber registry, requests used); no business data |
Azure SQL Database sql-acme-vault |
S1 (DTU) at launch; General Purpose serverless, zone-redundant, if the vault SLA must exceed the DTU tier's | Token vault: token_map, subject_link; TDE
with a customer-managed key in Key Vault; Entra-only authentication;
PIM-eligible roles for the gate identity and the erasure role; auditing
to Log Analytics |
Storage account stacmeevidence |
Standard LRS, immutable container with a time-based retention policy | Erasure evidence records (write once) |
| Service Bus namespace | Standard | Queue ingest-nudges; topic data-changed
with subscriptions; Premium only if private endpoints or > 1 MB
messages are required |
| Power Automate | Approvals in Teams; one Premium per-user licence for the flow owner if the HTTP trigger is used | Report sign-off (ADR 11) |
| Key Vault | Standard, RBAC, purge protection | Source credentials, webhook secrets, channel credentials, the vault lookup key, the vault's customer-managed key |
| Application Insights + Log Analytics | Pay-as-you-go, 30-day retention, sampling on | Function telemetry, custom metrics (requests used, rows, latency) |
| API Management (optional) | Consumption | Front the webhook receiver and push gateway if rate limiting or IP allow-lists are required |
| Container Apps or App Service (optional) | Consumption / B1 | Push gateway (SSE) if dashboards need it; otherwise omit |
| Azure SignalR Service (optional) | Free / Standard | Only if SSE proves insufficient |
| Region | Same as the Fabric capacity | Avoid egress and satisfy same-region event constraints |
Security
- Identity: Entra ID groups per role (
data-engineer,marketing-analyst,report-consumer,platform-operator); workspace roles assigned to groups, never individuals; restricted workspace membership reviewed quarterly. - Secrets: Key Vault only; Functions use managed identity; Fabric connections owned by a service principal or team group; no secrets in notebooks, pipeline parameters or Git. Two recorded exceptions: the Salesforce connector's organisational-account consent lives in the Fabric connection (Fabric-managed), and the eventstream's Service Bus source uses a shared access key held in Key Vault.
- Network: public endpoints with Entra authentication at launch; workspace outbound access protection and private endpoints as a later hardening step if IT Security requires (note: private links affect cross-workspace event consumption).
- Data: identifiers never enter OneLake (anonymisation gate before Bronze); the token vault is the only store with a mapping and is reachable only by the restricted workspace identity (lookup-or-create) and the PIM-elevated erasure role (delete, reverse lookup); sensitivity labels on the restricted lakehouse (Confidential, tokenised personal data); Purview classification if the organisation uses Purview; OneLake security for Gold tables if finer than workspace is needed.
- Logging: payload logging is forbidden in adapters, pipelines and notebooks; structured logs carry ids and counts only; a code-review item and a quarterly log sample check enforce it.
- Webhooks inbound: signature validation, replay window check on timestamp, IP allow-list at APIM if available.
Observability
| Signal | Source | Destination | Alert |
|---|---|---|---|
| Run status, rows, duration | control.ingestion_run |
Operations dashboard | Freshness SLA missed per tier → Teams via Activator |
| Pipeline and notebook job events | Fabric job events | Activator | Failed job → Teams channel; three consecutive failures → page |
| Capacity utilisation, throttling | Capacity Metrics app | — | Background utilisation > 80% smoothed → capacity review |
| Function errors, 429s, latency | Application Insights | Log Analytics | Auth failure or circuit open → immediate alert |
| API budget | control.api_budget |
Dashboard | > 70% of daily allocation → warning |
| Reconciliation | control.reconciliation_result |
Dashboard | investigate verdict → ticket |
| Delivery failures | control.delivery_log, Service Bus DLQ depth |
Dashboard, Azure Monitor | DLQ > 0 for 1 hour → alert |
| Direct Lake fallback | TABLETRAITS() check in release pipeline |
CI | Any table not Direct Lake → release blocked |
Service-level objectives (assumed): Tier 1 business event published within 30 minutes of the source change for 99% of runs (15-minute poll plus Silver, event job and relay); Tier 3 Gold complete by 07:00 local on 99% of days; reconciliation discrepancy < 0.1% rows per object per day; platform availability 99.5% monthly.
Infrastructure as code and delivery
- Azure: Bicep (or Terraform) modules per environment; GitHub Actions or Azure DevOps pipelines; OIDC federated credentials for the deployment identity.
- Fabric: Terraform provider for Microsoft Fabric for workspaces, capacities and permissions; Fabric Git integration for items; deployment pipelines with environment-specific parameters (lakehouse ids, Key Vault names).
- Functions: build, unit tests, contract tests against sandbox portals, deploy by slot or by revision.
- Semantic models: TMDL in Git; release checklist includes the fallback check and a Capacity Metrics review.
Capacity and cost model
| Cost driver | Behaviour as volume grows | Lever |
|---|---|---|
| Fabric capacity (fixed while running) | Flat until background smoothing exceeds the SKU; then throttling, then upgrade | Incremental loads; Python notebooks for small objects; schedule backfills on a pay-as-you-go burst capacity, then pause; split ingest and analytics capacities |
| OneLake storage | Linear with Bronze versions and Gold history; compressed Parquet | Retention policy; VACUUM; cheapest resource, do not optimise early |
| Data movement meters (copy activity, pipelines) | Linear with rows moved | Incremental mode; avoid full reloads except Google Ads entity snapshots |
| Spark compute | Linear with rows transformed; cold starts per run | Partition-scoped jobs; high-concurrency session reuse; Python notebooks where Spark is not needed |
| Azure Functions | Near zero at idle; linear with API calls and webhook volume | Flex Consumption; batch reads |
| Service Bus | Flat (Standard) up to millions of operations | Standard tier suffices |
| Source API allocations | Salesforce and HubSpot add-ons cost money when exceeded; Google Ads access level | Freshness tiers; reconciliation budget; CDC/webhooks reduce polling |
| People | Dominant cost | Managed services; one adapter pattern; runbooks |
Order-of-magnitude expectation at launch, from live West Europe rates fetched on 2026-10-26 (cost estimate): production on F8 pay-as-you-go with storage, Functions, the token vault, Service Bus, Key Vault, monitoring, approvals and Power BI Pro for 30 consumers is about 1,580–1,640 EUR a month at list price excluding VAT, falling to about 1,120–1,180 once the capacity is reserved; dev and test add under 170; the historical backfill is a one-off of about 1,490 on a temporary F64.
Scaling behaviour: adding a source adds one adapter, registry rows and Gold conformance work, not platform changes. A 10× growth in engagement events moves the Silver events job from Python to Spark and the capacity from F8 to F16 or F32; nothing else changes. A 10× growth in report consumers costs nothing in capacity under Direct Lake until the model exceeds the SKU memory limit.
Disaster recovery
- Platform loss in region: redeploy from IaC and Git in a second region, point at Bronze export (if the optional cross-region export is enabled) or re-extract from sources (bounded by source retention and API allocation). RTO 1 business day without the export; hours with it.
- Logical corruption: Delta time travel and RESTORE on Silver and Gold; replay from Bronze.
- Credential loss: rotation runbook; sources unaffected (read-only).