Enterprise Grade: Fabric, TOGAF and the full C4 model
Generated from EnterpriseGrade/Architecture/ on every change to main: the C4 views come from the Structurizr workspace, the documents from the TOGAF phases and the Architecture Decision Records. Built 2026-11-06 11:17 UTC.
Start with the overview or the main document.
C4 views
Context
Level 1. The platform, its users and the external systems it reads from, notifies and publishes to.
graph LR
linkStyle default fill:#ffffff
subgraph diagram ["System Context View: Marketing Data Platform"]
style diagram fill:#ffffff,stroke:#ffffff
1["<div style='font-weight: bold'>Marketing Operations</div><div style='font-size: 70%; margin-top: 0px'>[Person]</div><div style='font-size: 80%; margin-top:10px'>Reviews daily performance,<br />acts on alerts, paces<br />campaigns, signs off reports</div>"]
style 1 fill:#1f4e79,stroke:#153654,color:#ffffff
10["<div style='font-weight: bold'>Downstream systems</div><div style='font-size: 70%; margin-top: 0px'>[Software System]</div><div style='font-size: 80%; margin-top:10px'>Sales tooling, marketing<br />automation, dashboards and<br />other consumers of business<br />events</div>"]
style 10 fill:#8c8c8c,stroke:#626262,color:#ffffff
11["<div style='font-weight: bold'>Report recipients</div><div style='font-size: 70%; margin-top: 0px'>[Software System]</div><div style='font-size: 80%; margin-top:10px'>Clients, partners and<br />internal functions that<br />receive published reports<br />over a contracted channel</div>"]
style 11 fill:#8c8c8c,stroke:#626262,color:#ffffff
12["<div style='font-weight: bold'>Microsoft Teams and Exchange</div><div style='font-size: 70%; margin-top: 0px'>[Software System]</div><div style='font-size: 80%; margin-top:10px'>Human notification and<br />approval channels</div>"]
style 12 fill:#8c8c8c,stroke:#626262,color:#ffffff
13["<div style='font-weight: bold'>Marketing Data Platform</div><div style='font-size: 70%; margin-top: 0px'>[Software System]</div><div style='font-size: 80%; margin-top:10px'>Ingests, retains, conforms<br />and serves marketing data<br />through a Bronze, Silver,<br />Gold lakehouse; replaces<br />identifiers with vault tokens<br />before Bronze; publishes<br />business events and<br />signed-off reports</div>"]
style 13 fill:#2e5c8a,stroke:#204060,color:#ffffff
2["<div style='font-weight: bold'>Marketing Analyst</div><div style='font-size: 70%; margin-top: 0px'>[Person]</div><div style='font-size: 80%; margin-top:10px'>Runs funnel and attribution<br />analysis on Gold</div>"]
style 2 fill:#1f4e79,stroke:#153654,color:#ffffff
3["<div style='font-weight: bold'>Finance</div><div style='font-size: 70%; margin-top: 0px'>[Person]</div><div style='font-size: 80%; margin-top:10px'>Reconciles spend with<br />invoices; reviews<br />restatements; signs off spend<br />reports</div>"]
style 3 fill:#1f4e79,stroke:#153654,color:#ffffff
4["<div style='font-weight: bold'>Data Engineering</div><div style='font-size: 70%; margin-top: 0px'>[Person]</div><div style='font-size: 80%; margin-top:10px'>Operates ingestion; triggers<br />reloads and replays; reviews<br />reconciliation</div>"]
style 4 fill:#1f4e79,stroke:#153654,color:#ffffff
5["<div style='font-weight: bold'>Data Protection Officer</div><div style='font-size: 70%; margin-top: 0px'>[Person]</div><div style='font-size: 80%; margin-top:10px'>Owns the classification<br />register; triggers and signs<br />off erasure runs</div>"]
style 5 fill:#1f4e79,stroke:#153654,color:#ffffff
7["<div style='font-weight: bold'>Salesforce</div><div style='font-size: 70%; margin-top: 0px'>[Software System]</div><div style='font-size: 80%; margin-top:10px'>CRM of record: leads,<br />contacts, accounts,<br />opportunities, campaigns.<br />Read-only to the platform.</div>"]
style 7 fill:#8c8c8c,stroke:#626262,color:#ffffff
8["<div style='font-weight: bold'>HubSpot</div><div style='font-size: 70%; margin-top: 0px'>[Software System]</div><div style='font-size: 80%; margin-top:10px'>Marketing CRM: contacts,<br />companies, deals, engagement<br />and email events. Read-only<br />to the platform; sends<br />webhooks.</div>"]
style 8 fill:#8c8c8c,stroke:#626262,color:#ffffff
9["<div style='font-weight: bold'>Google Ads</div><div style='font-size: 70%; margin-top: 0px'>[Software System]</div><div style='font-size: 80%; margin-top:10px'>Advertising platform: account<br />structure, date-segmented<br />performance reports, 30-day<br />change history. No push<br />mechanism.</div>"]
style 9 fill:#8c8c8c,stroke:#626262,color:#ffffff
13-- "<div>Posts HMAC-signed event<br />payloads to registered<br />endpoints of</div><div style='font-size: 70%'>[HTTPS, JSON]</div>" -->10
13-- "<div>Sends Teams messages and<br />email alerts through</div><div style='font-size: 70%'>[Microsoft Graph]</div>" -->12
13-- "<div>Delivers report files,<br />flagged as original or<br />revision, over the contracted<br />channel to</div><div style='font-size: 70%'>[SFTP, HTTPS API, email, Power BI app]</div>" -->11
1-- "<div>Views performance and pacing<br />reports in</div><div style='font-size: 70%'>[Power BI]</div>" -->13
2-- "<div>Explores funnel and<br />attribution models in</div><div style='font-size: 70%'>[Power BI]</div>" -->13
3-- "<div>Reviews spend by ad account<br />and month in</div><div style='font-size: 70%'>[Power BI]</div>" -->13
4-- "<div>Triggers reloads and replays;<br />monitors runs in</div><div style='font-size: 70%'>[Fabric portal]</div>" -->13
5-- "<div>Triggers and signs off<br />erasure runs in</div><div style='font-size: 70%'>[Fabric pipeline, approval step]</div>" -->13
12-- "<div>Delivers alert messages and<br />approval requests to</div><div style='font-size: 70%'>[Teams client]</div>" -->1
13-- "<div>Reads records changed since<br />the watermark, soft deletes<br />and bulk history from</div><div style='font-size: 70%'>[Salesforce REST and Bulk API 2.0, HTTPS]</div>" -->7
13-- "<div>Reads objects by<br />last-modified window and<br />batch-reads records from</div><div style='font-size: 70%'>[HubSpot CRM v3 API, HTTPS, JSON]</div>" -->8
8-- "<div>Sends property-change,<br />creation and deletion<br />webhooks to</div><div style='font-size: 70%'>[HTTPS, signed JSON]</div>" -->13
13-- "<div>Reads entities,<br />date-segmented reports and<br />change events from</div><div style='font-size: 70%'>[Google Ads API, REST searchStream]</div>" -->9
endContainers
Level 2 overview: the spine from the three sources through the adapters, the gate and the three lakehouses to serving and the bus. Audience views carry the detail.
graph LR
linkStyle default fill:#ffffff
subgraph diagram ["Container View: Marketing Data Platform"]
style diagram fill:#ffffff,stroke:#ffffff
7["<div style='font-weight: bold'>Salesforce</div><div style='font-size: 70%; margin-top: 0px'>[Software System]</div><div style='font-size: 80%; margin-top:10px'>CRM of record: leads,<br />contacts, accounts,<br />opportunities, campaigns.<br />Read-only to the platform.</div>"]
style 7 fill:#8c8c8c,stroke:#626262,color:#ffffff
8["<div style='font-weight: bold'>HubSpot</div><div style='font-size: 70%; margin-top: 0px'>[Software System]</div><div style='font-size: 80%; margin-top:10px'>Marketing CRM: contacts,<br />companies, deals, engagement<br />and email events. Read-only<br />to the platform; sends<br />webhooks.</div>"]
style 8 fill:#8c8c8c,stroke:#626262,color:#ffffff
9["<div style='font-weight: bold'>Google Ads</div><div style='font-size: 70%; margin-top: 0px'>[Software System]</div><div style='font-size: 80%; margin-top:10px'>Advertising platform: account<br />structure, date-segmented<br />performance reports, 30-day<br />change history. No push<br />mechanism.</div>"]
style 9 fill:#8c8c8c,stroke:#626262,color:#ffffff
subgraph 13 ["Marketing Data Platform"]
style 13 fill:#ffffff,stroke:#204060,color:#204060
subgraph group1 ["Control and security"]
style group1 fill:#ffffff,stroke:#cccccc,color:#cccccc,stroke-dasharray:5
14["<div style='font-weight: bold'>Orchestrator</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric Data Factory pipelines]</div><div style='font-size: 80%; margin-top:10px'>Schedules runs per freshness<br />tier from registries and<br />watermarks; fans out per<br />object; writes the run<br />ledger; reframes semantic<br />models; runs publication and<br />erasure pipelines</div>"]
style 14 fill:#1e7145,stroke:#154f30,color:#ffffff
end
subgraph group2 ["Ingestion"]
style group2 fill:#ffffff,stroke:#cccccc,color:#cccccc,stroke-dasharray:5
16["<div style='font-weight: bold'>Salesforce copy activity</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric Data Factory copy activity, Salesforce objects connector]</div><div style='font-size: 80%; margin-top:10px'>Lands SystemModstamp windows<br />every 15 minutes and the Bulk<br />API history as files for the<br />Bronze loader; authenticates<br />with an<br />organisational-account<br />consent held in the Fabric<br />connection</div>"]
style 16 fill:#1e7145,stroke:#154f30,color:#ffffff
17["<div style='font-weight: bold'>HubSpot adapter</div><div style='font-size: 70%; margin-top: 0px'>[Container: Azure Functions, .NET 10 isolated, Flex Consumption (runtime pending PoC, ADR 8)]</div><div style='font-size: 80%; margin-top:10px'>Incremental search and batch<br />read of CRM objects;<br />historical list extraction;<br />webhook receiver; nudge<br />worker; reconciliation counts</div>"]
style 17 fill:#0078d4,stroke:#005494,color:#ffffff
28["<div style='font-weight: bold'>Google Ads adapter</div><div style='font-size: 70%; margin-top: 0px'>[Container: Azure Functions, .NET 10 isolated, Flex Consumption, REST searchStream (runtime pending PoC, ADR 8)]</div><div style='font-size: 80%; margin-top:10px'>Daily entity snapshots;<br />performance reports for<br />trailing 30 and 90 days;<br />hourly change_event;<br />reconciliation totals</div>"]
style 28 fill:#0078d4,stroke:#005494,color:#ffffff
end
subgraph group3 ["Lakehouse"]
style group3 fill:#ffffff,stroke:#cccccc,color:#cccccc,stroke-dasharray:5
30["<div style='font-weight: bold'>Bronze loader</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric notebook, Python and Spark]</div><div style='font-size: 80%; margin-top:10px'>Promotes landing files to<br />Bronze Delta through the<br />anonymisation gate:<br />classification check, PII<br />scan, vault tokenisation,<br />payload rewrite,<br />generalisation, dedupe,<br />provenance; purges landing<br />files after 7 days; the only<br />writer of Bronze and the only<br />identity with vault<br />lookup-or-create</div>"]
style 30 fill:#1e7145,stroke:#154f30,color:#ffffff
39[("<div style='font-weight: bold'>lh_bronze</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric Lakehouse, Delta]</div><div style='font-size: 80%; margin-top:10px'>Append-only raw tables with<br />identifiers replaced by<br />tokens; landing files (the<br />only place with identifiers,<br />7 days). Restricted<br />workspace.</div>")]
style 39 fill:#1e7145,stroke:#154f30,color:#ffffff
41[("<div style='font-weight: bold'>lh_silver and control</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric Lakehouse, Delta, Change Data Feed]</div><div style='font-size: 80%; margin-top:10px'>Typed current state and<br />history keyed by tokens;<br />control schema (registries,<br />watermarks, run ledger,<br />reconciliation results,<br />outbox cursor, publication<br />log, erasure log, mirrored<br />adapter state). Restricted<br />workspace.</div>")]
style 41 fill:#1e7145,stroke:#154f30,color:#ffffff
50[("<div style='font-weight: bold'>lh_gold</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric Lakehouse, Delta, V-Order]</div><div style='font-size: 80%; margin-top:10px'>Tokenised star schema,<br />business_event table with<br />Change Data Feed on, and the<br />Files area holding generated<br />report files. Analytics<br />workspace.</div>")]
style 50 fill:#1e7145,stroke:#154f30,color:#ffffff
end
subgraph group4 ["Notification"]
style group4 fill:#ffffff,stroke:#cccccc,color:#cccccc,stroke-dasharray:5
54["<div style='font-weight: bold'>Relay</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric notebook, Python, azure-servicebus]</div><div style='font-size: 80%; margin-top:10px'>Reads the business_event<br />change feed since the last<br />published version; publishes<br />to the topic; advances the<br />outbox cursor</div>"]
style 54 fill:#1e7145,stroke:#154f30,color:#ffffff
55["<div style='font-weight: bold'>Service Bus</div><div style='font-size: 70%; margin-top: 0px'>[Container: Azure Service Bus Standard]</div><div style='font-size: 80%; margin-top:10px'>Session-enabled queue<br />ingest-nudges; topic<br />data-changed with one<br />subscription per consumer,<br />duplicate detection on event<br />id, dead-letter queues,<br />sessions per subject</div>"]
style 55 fill:#0078d4,stroke:#005494,color:#ffffff
end
subgraph group5 ["Privacy"]
style group5 fill:#ffffff,stroke:#cccccc,color:#cccccc,stroke-dasharray:5
61[("<div style='font-weight: bold'>Token vault</div><div style='font-size: 70%; margin-top: 0px'>[Container: Azure SQL Database, TDE with customer-managed key, Entra-only authentication, PIM, auditing]</div><div style='font-size: 80%; margin-top:10px'>token_map and subject_link:<br />lookup hash (HMAC of the<br />normalised identifier),<br />random token, identifier<br />encrypted under the<br />customer-managed key, subject<br />type, jurisdiction,<br />erased_at. The only place<br />erasure must succeed.</div>")]
style 61 fill:#0078d4,stroke:#005494,color:#ffffff
end
subgraph group6 ["Serving"]
style group6 fill:#ffffff,stroke:#cccccc,color:#cccccc,stroke-dasharray:5
52["<div style='font-weight: bold'>Semantic models</div><div style='font-size: 70%; margin-top: 0px'>[Container: Power BI]</div><div style='font-size: 80%; margin-top:10px'>Direct Lake on OneLake models<br />over Gold with row- and<br />object-level security</div>"]
style 52 fill:#1e7145,stroke:#154f30,color:#ffffff
end
end
14-- "<div>Runs after each landed window<br />on</div><div style='font-size: 70%'>[Fabric notebook activity]</div>" -->30
30-- "<div>Reads landing files from,<br />appends tokenised<br />deduplicated rows with<br />provenance to, and purges<br />landing files in</div><div style='font-size: 70%'>[Spark, Delta, OneLake]</div>" -->39
30-- "<div>Looks up or creates tokens<br />for normalised identifiers in</div><div style='font-size: 70%'>[TDS, Entra token, batched]</div>" -->61
30-- "<div>Reads the classification<br />register from and writes<br />quarantine references to</div><div style='font-size: 70%'>[Delta]</div>" -->41
14-- "<div>Reads registries and<br />watermarks from, and writes<br />run ledger and cursors to</div><div style='font-size: 70%'>[Fabric lakehouse table activities]</div>" -->41
14-- "<div>Runs after each event job and<br />star build</div><div style='font-size: 70%'>[Fabric notebook activity]</div>" -->54
54-- "<div>Reads business_event changes<br />since the last published<br />version from</div><div style='font-size: 70%'>[Delta Change Data Feed]</div>" -->50
54-- "<div>Reads and advances the outbox<br />cursor in</div><div style='font-size: 70%'>[Delta]</div>" -->41
54-- "<div>Publishes business events<br />with MessageId=event_id to<br />the data-changed topic on</div><div style='font-size: 70%'>[AMQP]</div>" -->55
52-- "<div>Frames Delta versions and<br />pages columns on demand from</div><div style='font-size: 70%'>[Direct Lake on OneLake]</div>" -->50
14-- "<div>Reframes after each star<br />build</div><div style='font-size: 70%'>[Fabric semantic model refresh API]</div>" -->52
14-- "<div>Starts incremental and<br />historical Salesforce runs on</div><div style='font-size: 70%'>[Fabric pipeline activity]</div>" -->16
16-- "<div>Reads records changed since<br />the watermark, soft deletes<br />and bulk history from</div><div style='font-size: 70%'>[Salesforce REST and Bulk API 2.0, HTTPS]</div>" -->7
16-- "<div>Lands incremental windows and<br />bulk history as JSONL files<br />in the landing folder of</div><div style='font-size: 70%'>[OneLake, Lakehouse Files]</div>" -->39
14-- "<div>Invokes incremental,<br />historical and count<br />operations with a window on</div><div style='font-size: 70%'>[HTTPS, JSON]</div>" -->17
14-- "<div>Invokes snapshot,<br />trailing-window report and<br />change_event pulls on</div><div style='font-size: 70%'>[HTTPS, JSON]</div>" -->28
17-- "<div>Reads objects by<br />last-modified window and<br />batch-reads records from</div><div style='font-size: 70%'>[HubSpot CRM v3 API, HTTPS, JSON]</div>" -->8
8-- "<div>Sends property-change,<br />creation and deletion<br />webhooks to</div><div style='font-size: 70%'>[HTTPS, signed JSON]</div>" -->17
17-- "<div>Enqueues nudged object ids on<br />the ingest-nudges queue of</div><div style='font-size: 70%'>[AMQP]</div>" -->55
55-- "<div>Delivers batches of nudged<br />ids to</div><div style='font-size: 70%'>[AMQP]</div>" -->17
28-- "<div>Reads entities,<br />date-segmented reports and<br />change events from</div><div style='font-size: 70%'>[Google Ads API, REST searchStream]</div>" -->9
17-- "<div>Writes JSONL pages and<br />manifests to the landing<br />folder of</div><div style='font-size: 70%'>[OneLake ADLS Gen2 API, HTTPS]</div>" -->39
28-- "<div>Writes JSONL pages and<br />manifests to the landing<br />folder of</div><div style='font-size: 70%'>[OneLake ADLS Gen2 API, HTTPS]</div>" -->39
endContainers-DataEngineering
Level 2 for Data Engineering and the support team: ingestion, lakehouse and control, grouped by boundary; the operations console is drawn dashed because ADR 12 is Proposed.
graph LR
linkStyle default fill:#ffffff
subgraph diagram ["Container View: Marketing Data Platform"]
style diagram fill:#ffffff,stroke:#ffffff
4["<div style='font-weight: bold'>Data Engineering</div><div style='font-size: 70%; margin-top: 0px'>[Person]</div><div style='font-size: 80%; margin-top:10px'>Operates ingestion; triggers<br />reloads and replays; reviews<br />reconciliation</div>"]
style 4 fill:#1f4e79,stroke:#153654,color:#ffffff
6["<div style='font-weight: bold'>Support team</div><div style='font-size: 70%; margin-top: 0px'>[Person]</div><div style='font-size: 80%; margin-top:10px'>The vendor's team on call<br />under the support<br />subscription; works in the<br />operations console (ADR 12,<br />Proposed)</div>"]
style 6 fill:#1f4e79,stroke:#153654,color:#ffffff
7["<div style='font-weight: bold'>Salesforce</div><div style='font-size: 70%; margin-top: 0px'>[Software System]</div><div style='font-size: 80%; margin-top:10px'>CRM of record: leads,<br />contacts, accounts,<br />opportunities, campaigns.<br />Read-only to the platform.</div>"]
style 7 fill:#8c8c8c,stroke:#626262,color:#ffffff
8["<div style='font-weight: bold'>HubSpot</div><div style='font-size: 70%; margin-top: 0px'>[Software System]</div><div style='font-size: 80%; margin-top:10px'>Marketing CRM: contacts,<br />companies, deals, engagement<br />and email events. Read-only<br />to the platform; sends<br />webhooks.</div>"]
style 8 fill:#8c8c8c,stroke:#626262,color:#ffffff
9["<div style='font-weight: bold'>Google Ads</div><div style='font-size: 70%; margin-top: 0px'>[Software System]</div><div style='font-size: 80%; margin-top:10px'>Advertising platform: account<br />structure, date-segmented<br />performance reports, 30-day<br />change history. No push<br />mechanism.</div>"]
style 9 fill:#8c8c8c,stroke:#626262,color:#ffffff
subgraph 13 ["Marketing Data Platform"]
style 13 fill:#ffffff,stroke:#204060,color:#204060
subgraph group1 ["Control and security"]
style group1 fill:#ffffff,stroke:#cccccc,color:#cccccc,stroke-dasharray:5
14["<div style='font-weight: bold'>Orchestrator</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric Data Factory pipelines]</div><div style='font-size: 80%; margin-top:10px'>Schedules runs per freshness<br />tier from registries and<br />watermarks; fans out per<br />object; writes the run<br />ledger; reframes semantic<br />models; runs publication and<br />erasure pipelines</div>"]
style 14 fill:#1e7145,stroke:#154f30,color:#ffffff
15["<div style='font-weight: bold'>Key Vault</div><div style='font-size: 70%; margin-top: 0px'>[Container: Azure Key Vault]</div><div style='font-size: 80%; margin-top:10px'>Source credentials, webhook<br />secrets, the vault lookup<br />key, the customer-managed key<br />for the vault; RBAC and purge<br />protection</div>"]
style 15 fill:#0078d4,stroke:#005494,color:#ffffff
end
subgraph group2 ["Ingestion"]
style group2 fill:#ffffff,stroke:#cccccc,color:#cccccc,stroke-dasharray:5
16["<div style='font-weight: bold'>Salesforce copy activity</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric Data Factory copy activity, Salesforce objects connector]</div><div style='font-size: 80%; margin-top:10px'>Lands SystemModstamp windows<br />every 15 minutes and the Bulk<br />API history as files for the<br />Bronze loader; authenticates<br />with an<br />organisational-account<br />consent held in the Fabric<br />connection</div>"]
style 16 fill:#1e7145,stroke:#154f30,color:#ffffff
17["<div style='font-weight: bold'>HubSpot adapter</div><div style='font-size: 70%; margin-top: 0px'>[Container: Azure Functions, .NET 10 isolated, Flex Consumption (runtime pending PoC, ADR 8)]</div><div style='font-size: 80%; margin-top:10px'>Incremental search and batch<br />read of CRM objects;<br />historical list extraction;<br />webhook receiver; nudge<br />worker; reconciliation counts</div>"]
style 17 fill:#0078d4,stroke:#005494,color:#ffffff
28["<div style='font-weight: bold'>Google Ads adapter</div><div style='font-size: 70%; margin-top: 0px'>[Container: Azure Functions, .NET 10 isolated, Flex Consumption, REST searchStream (runtime pending PoC, ADR 8)]</div><div style='font-size: 80%; margin-top:10px'>Daily entity snapshots;<br />performance reports for<br />trailing 30 and 90 days;<br />hourly change_event;<br />reconciliation totals</div>"]
style 28 fill:#0078d4,stroke:#005494,color:#ffffff
29[("<div style='font-weight: bold'>Adapter state store</div><div style='font-size: 70%; margin-top: 0px'>[Container: Azure Table Storage]</div><div style='font-size: 80%; margin-top:10px'>Page cursors, nudge log,<br />delivery log, subscriber<br />registry, requests used,<br />breaker state; written by the<br />Functions (which cannot write<br />Delta) and mirrored hourly<br />into the control schema</div>")]
style 29 fill:#0078d4,stroke:#005494,color:#ffffff
end
subgraph group3 ["Lakehouse"]
style group3 fill:#ffffff,stroke:#cccccc,color:#cccccc,stroke-dasharray:5
30["<div style='font-weight: bold'>Bronze loader</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric notebook, Python and Spark]</div><div style='font-size: 80%; margin-top:10px'>Promotes landing files to<br />Bronze Delta through the<br />anonymisation gate:<br />classification check, PII<br />scan, vault tokenisation,<br />payload rewrite,<br />generalisation, dedupe,<br />provenance; purges landing<br />files after 7 days; the only<br />writer of Bronze and the only<br />identity with vault<br />lookup-or-create</div>"]
style 30 fill:#1e7145,stroke:#154f30,color:#ffffff
39[("<div style='font-weight: bold'>lh_bronze</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric Lakehouse, Delta]</div><div style='font-size: 80%; margin-top:10px'>Append-only raw tables with<br />identifiers replaced by<br />tokens; landing files (the<br />only place with identifiers,<br />7 days). Restricted<br />workspace.</div>")]
style 39 fill:#1e7145,stroke:#154f30,color:#ffffff
40["<div style='font-weight: bold'>Silver jobs</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric notebooks, Python and Spark]</div><div style='font-size: 80%; margin-top:10px'>Parse, type and conform;<br />MERGE current state and SCD2<br />history by source version;<br />quality gates; quarantine</div>"]
style 40 fill:#1e7145,stroke:#154f30,color:#ffffff
41[("<div style='font-weight: bold'>lh_silver and control</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric Lakehouse, Delta, Change Data Feed]</div><div style='font-size: 80%; margin-top:10px'>Typed current state and<br />history keyed by tokens;<br />control schema (registries,<br />watermarks, run ledger,<br />reconciliation results,<br />outbox cursor, publication<br />log, erasure log, mirrored<br />adapter state). Restricted<br />workspace.</div>")]
style 41 fill:#1e7145,stroke:#154f30,color:#ffffff
42["<div style='font-weight: bold'>State sync</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric notebook, Python]</div><div style='font-size: 80%; margin-top:10px'>Mirrors adapter state into<br />the control schema every<br />hour; rolls requests used<br />into api_budget</div>"]
style 42 fill:#1e7145,stroke:#154f30,color:#ffffff
43["<div style='font-weight: bold'>Gold jobs</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric notebooks, Python and Spark]</div><div style='font-size: 80%; margin-top:10px'>Tier 1 event job every 15<br />minutes and the star build<br />hourly or nightly:<br />dimensions, facts rebuilt per<br />date, allow-listed columns,<br />business events inserted if<br />absent on a deterministic id,<br />OPTIMIZE. Run in the<br />restricted workspace and<br />write across workspaces into<br />lh_gold.</div>"]
style 43 fill:#1e7145,stroke:#154f30,color:#ffffff
50[("<div style='font-weight: bold'>lh_gold</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric Lakehouse, Delta, V-Order]</div><div style='font-size: 80%; margin-top:10px'>Tokenised star schema,<br />business_event table with<br />Change Data Feed on, and the<br />Files area holding generated<br />report files. Analytics<br />workspace.</div>")]
style 50 fill:#1e7145,stroke:#154f30,color:#ffffff
51["<div style='font-weight: bold'>Reconciler</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric notebook, Python]</div><div style='font-size: 80%; margin-top:10px'>Compares source counts with<br />Silver per object and<br />source-modified-day; passes<br />hash samples through the gate<br />before comparing; writes<br />verdicts and reload requests</div>"]
style 51 fill:#1e7145,stroke:#154f30,color:#ffffff
end
subgraph group4 ["Notification"]
style group4 fill:#ffffff,stroke:#cccccc,color:#cccccc,stroke-dasharray:5
55["<div style='font-weight: bold'>Service Bus</div><div style='font-size: 70%; margin-top: 0px'>[Container: Azure Service Bus Standard]</div><div style='font-size: 80%; margin-top:10px'>Session-enabled queue<br />ingest-nudges; topic<br />data-changed with one<br />subscription per consumer,<br />duplicate detection on event<br />id, dead-letter queues,<br />sessions per subject</div>"]
style 55 fill:#0078d4,stroke:#005494,color:#ffffff
end
subgraph group5 ["Operations (ADR 12, Proposed)"]
style group5 fill:#ffffff,stroke:#cccccc,color:#cccccc,stroke-dasharray:5
64["<div style='font-weight: bold'>Operations console</div><div style='font-size: 70%; margin-top: 0px'>[Container: ASP.NET Core BFF and API (modular monolith), Vue 3, PostgreSQL with pgvector; Azure Container Apps]</div><div style='font-size: 80%; margin-top:10px'>Read-only cockpit over every<br />adapter: health with its<br />reasons, runs and cursors,<br />budgets, queues,<br />reconciliation, restatements,<br />privacy and publication runs,<br />incidents and lessons; every<br />figure deep-links to the<br />place that owns it; alerts<br />open incidents. Proposed in<br />ADR 12.</div>"]
style 64 fill:#0078d4,stroke:#005494,color:#ffffff
end
end
17-- "<div>Persists page cursors,<br />webhook receipts, breaker<br />state and requests used in</div><div style='font-size: 70%'>[Table Storage REST, managed identity]</div>" -->29
28-- "<div>Persists page cursors and<br />requests used in</div><div style='font-size: 70%'>[Table Storage REST, managed identity]</div>" -->29
17-- "<div>Reads the private-app token<br />and webhook secret from</div><div style='font-size: 70%'>[Key Vault REST, managed identity]</div>" -->15
28-- "<div>Reads the OAuth refresh token<br />and client secret from</div><div style='font-size: 70%'>[Key Vault REST, managed identity]</div>" -->15
14-- "<div>Runs after each landed window<br />on</div><div style='font-size: 70%'>[Fabric notebook activity]</div>" -->30
30-- "<div>Reads landing files from,<br />appends tokenised<br />deduplicated rows with<br />provenance to, and purges<br />landing files in</div><div style='font-size: 70%'>[Spark, Delta, OneLake]</div>" -->39
30-- "<div>Reads the vault lookup key<br />from</div><div style='font-size: 70%'>[Key Vault REST, workspace identity]</div>" -->15
30-- "<div>Reads the classification<br />register from and writes<br />quarantine references to</div><div style='font-size: 70%'>[Delta]</div>" -->41
14-- "<div>Reads registries and<br />watermarks from, and writes<br />run ledger and cursors to</div><div style='font-size: 70%'>[Fabric lakehouse table activities]</div>" -->41
14-- "<div>Runs hourly</div><div style='font-size: 70%'>[Fabric notebook activity]</div>" -->42
42-- "<div>Reads adapter state from</div><div style='font-size: 70%'>[Table Storage REST]</div>" -->29
42-- "<div>Upserts mirrored adapter<br />state and api_budget into the<br />control schema of</div><div style='font-size: 70%'>[Delta MERGE]</div>" -->41
14-- "<div>Runs Silver jobs for touched<br />objects on</div><div style='font-size: 70%'>[Fabric notebook activity]</div>" -->40
40-- "<div>Reads new raw versions for<br />the window from</div><div style='font-size: 70%'>[Spark, Delta]</div>" -->39
40-- "<div>Merges current state, appends<br />SCD2 history and quarantine<br />rows into</div><div style='font-size: 70%'>[Spark, Delta MERGE]</div>" -->41
14-- "<div>Runs the Tier 1 event job<br />every 15 minutes and the star<br />build hourly or nightly on</div><div style='font-size: 70%'>[Fabric notebook activity]</div>" -->43
43-- "<div>Reads conformed entities and<br />the Silver change feed from</div><div style='font-size: 70%'>[Spark, Delta]</div>" -->41
43-- "<div>Rebuilds date partitions and<br />inserts business events if<br />absent in</div><div style='font-size: 70%'>[Spark, Delta, cross-workspace write]</div>" -->50
14-- "<div>Runs daily count and weekly<br />hash reconciliation on</div><div style='font-size: 70%'>[Fabric notebook activity]</div>" -->51
51-- "<div>Requests source counts per<br />object and day from</div><div style='font-size: 70%'>[HTTPS, JSON]</div>" -->17
51-- "<div>Requests daily metric totals<br />per account from</div><div style='font-size: 70%'>[HTTPS, JSON]</div>" -->28
51-- "<div>Counts records per<br />SystemModstamp day in</div><div style='font-size: 70%'>[SOQL COUNT over REST with JWT bearer, HTTPS]</div>" -->7
51-- "<div>Counts Silver rows per day;<br />writes reconciliation results<br />and reload requests to</div><div style='font-size: 70%'>[Spark, Delta]</div>" -->41
64-. "<div>Reads the ops view schema<br />over control (runs, windows,<br />cursors, budgets, verdicts;<br />never payloads) through the<br />SQL analytics endpoint of</div><div style='font-size: 70%'>[TDS, SELECT on ops views only]</div>" .->41
64-. "<div>Reads the restatement log,<br />business events and the<br />publication log through the<br />SQL analytics endpoint of</div><div style='font-size: 70%'>[TDS, SELECT on ops views only]</div>" .->50
64-. "<div>Reads cursors, receipts,<br />breaker state and delivery<br />logs from</div><div style='font-size: 70%'>[Table Storage REST, reader]</div>" .->29
64-. "<div>Reads queue and subscription<br />counts, including dead<br />letters, of</div><div style='font-size: 70%'>[ARM, reader]</div>" .->55
64-. "<div>Reads secret metadata (ages<br />and expiry, never values)<br />from</div><div style='font-size: 70%'>[Key Vault REST, reader]</div>" .->15
64-. "<div>Reads job instances for deep<br />links into pipeline runs of</div><div style='font-size: 70%'>[Fabric REST, read-only]</div>" .->14
4-- "<div>Triggers reloads and replays;<br />monitors runs in</div><div style='font-size: 70%'>[Fabric portal]</div>" -->14
4-- "<div>Reviews the run ledger,<br />reconciliation results and<br />quarantine in</div><div style='font-size: 70%'>[SQL analytics endpoint]</div>" -->41
4-. "<div>Triages incidents and reads<br />adapter mechanics in</div><div style='font-size: 70%'>[HTTPS, Entra]</div>" .->64
6-. "<div>Operates the platform under<br />the support subscription<br />through</div><div style='font-size: 70%'>[HTTPS, Entra guest]</div>" .->64
14-- "<div>Starts incremental and<br />historical Salesforce runs on</div><div style='font-size: 70%'>[Fabric pipeline activity]</div>" -->16
16-- "<div>Reads records changed since<br />the watermark, soft deletes<br />and bulk history from</div><div style='font-size: 70%'>[Salesforce REST and Bulk API 2.0, HTTPS]</div>" -->7
16-- "<div>Lands incremental windows and<br />bulk history as JSONL files<br />in the landing folder of</div><div style='font-size: 70%'>[OneLake, Lakehouse Files]</div>" -->39
14-- "<div>Invokes incremental,<br />historical and count<br />operations with a window on</div><div style='font-size: 70%'>[HTTPS, JSON]</div>" -->17
14-- "<div>Invokes snapshot,<br />trailing-window report and<br />change_event pulls on</div><div style='font-size: 70%'>[HTTPS, JSON]</div>" -->28
17-- "<div>Reads objects by<br />last-modified window and<br />batch-reads records from</div><div style='font-size: 70%'>[HubSpot CRM v3 API, HTTPS, JSON]</div>" -->8
8-- "<div>Sends property-change,<br />creation and deletion<br />webhooks to</div><div style='font-size: 70%'>[HTTPS, signed JSON]</div>" -->17
17-- "<div>Enqueues nudged object ids on<br />the ingest-nudges queue of</div><div style='font-size: 70%'>[AMQP]</div>" -->55
55-- "<div>Delivers batches of nudged<br />ids to</div><div style='font-size: 70%'>[AMQP]</div>" -->17
28-- "<div>Reads entities,<br />date-segmented reports and<br />change events from</div><div style='font-size: 70%'>[Google Ads API, REST searchStream]</div>" -->9
17-- "<div>Writes JSONL pages and<br />manifests to the landing<br />folder of</div><div style='font-size: 70%'>[OneLake ADLS Gen2 API, HTTPS]</div>" -->39
28-- "<div>Writes JSONL pages and<br />manifests to the landing<br />folder of</div><div style='font-size: 70%'>[OneLake ADLS Gen2 API, HTTPS]</div>" -->39
endContainers-Business
Level 2 for Marketing Operations, analysts and Finance: what they see and sign off, reports, approvals, deliveries and alerts.
graph LR
linkStyle default fill:#ffffff
subgraph diagram ["Container View: Marketing Data Platform"]
style diagram fill:#ffffff,stroke:#ffffff
1["<div style='font-weight: bold'>Marketing Operations</div><div style='font-size: 70%; margin-top: 0px'>[Person]</div><div style='font-size: 80%; margin-top:10px'>Reviews daily performance,<br />acts on alerts, paces<br />campaigns, signs off reports</div>"]
style 1 fill:#1f4e79,stroke:#153654,color:#ffffff
2["<div style='font-weight: bold'>Marketing Analyst</div><div style='font-size: 70%; margin-top: 0px'>[Person]</div><div style='font-size: 80%; margin-top:10px'>Runs funnel and attribution<br />analysis on Gold</div>"]
style 2 fill:#1f4e79,stroke:#153654,color:#ffffff
3["<div style='font-weight: bold'>Finance</div><div style='font-size: 70%; margin-top: 0px'>[Person]</div><div style='font-size: 80%; margin-top:10px'>Reconciles spend with<br />invoices; reviews<br />restatements; signs off spend<br />reports</div>"]
style 3 fill:#1f4e79,stroke:#153654,color:#ffffff
11["<div style='font-weight: bold'>Report recipients</div><div style='font-size: 70%; margin-top: 0px'>[Software System]</div><div style='font-size: 80%; margin-top:10px'>Clients, partners and<br />internal functions that<br />receive published reports<br />over a contracted channel</div>"]
style 11 fill:#8c8c8c,stroke:#626262,color:#ffffff
12["<div style='font-weight: bold'>Microsoft Teams and Exchange</div><div style='font-size: 70%; margin-top: 0px'>[Software System]</div><div style='font-size: 80%; margin-top:10px'>Human notification and<br />approval channels</div>"]
style 12 fill:#8c8c8c,stroke:#626262,color:#ffffff
subgraph 13 ["Marketing Data Platform"]
style 13 fill:#ffffff,stroke:#204060,color:#204060
subgraph group1 ["Lakehouse"]
style group1 fill:#ffffff,stroke:#cccccc,color:#cccccc,stroke-dasharray:5
50[("<div style='font-weight: bold'>lh_gold</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric Lakehouse, Delta, V-Order]</div><div style='font-size: 80%; margin-top:10px'>Tokenised star schema,<br />business_event table with<br />Change Data Feed on, and the<br />Files area holding generated<br />report files. Analytics<br />workspace.</div>")]
style 50 fill:#1e7145,stroke:#154f30,color:#ffffff
end
subgraph group2 ["Publication"]
style group2 fill:#ffffff,stroke:#cccccc,color:#cccccc,stroke-dasharray:5
58["<div style='font-weight: bold'>Report generator</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric notebook, Python]</div><div style='font-size: 80%; margin-top:10px'>Renders versioned report<br />definitions from Gold at<br />pinned Delta versions into<br />CSV, XLSX or PDF; writes a<br />publication manifest<br />(definition version, period,<br />Gold versions, supersedes) to<br />the publication log</div>"]
style 58 fill:#1e7145,stroke:#154f30,color:#ffffff
59["<div style='font-weight: bold'>Approval workflow</div><div style='font-size: 70%; margin-top: 0px'>[Container: Power Automate approvals in Teams]</div><div style='font-size: 80%; margin-top:10px'>Routes a generated report to<br />the named approver; records<br />approve or reject with who<br />and when; returns the<br />decision to the orchestrator</div>"]
style 59 fill:#0078d4,stroke:#005494,color:#ffffff
60["<div style='font-weight: bold'>Delivery adapter</div><div style='font-size: 70%; margin-top: 0px'>[Container: Azure Functions, .NET 10 isolated]</div><div style='font-size: 80%; margin-top:10px'>Delivers approved report<br />files over the recipient's<br />contracted channel (SFTP,<br />HTTPS API, email, Power BI<br />app); retries; records<br />delivery evidence</div>"]
style 60 fill:#0078d4,stroke:#005494,color:#ffffff
end
subgraph group3 ["Serving"]
style group3 fill:#ffffff,stroke:#cccccc,color:#cccccc,stroke-dasharray:5
52["<div style='font-weight: bold'>Semantic models</div><div style='font-size: 70%; margin-top: 0px'>[Container: Power BI]</div><div style='font-size: 80%; margin-top:10px'>Direct Lake on OneLake models<br />over Gold with row- and<br />object-level security</div>"]
style 52 fill:#1e7145,stroke:#154f30,color:#ffffff
53["<div style='font-weight: bold'>Activator</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric Real-Time Intelligence, Eventstream and Activator]</div><div style='font-size: 80%; margin-top:10px'>Rules on the data-changed<br />eventstream and on Fabric job<br />events; sends Teams messages<br />and email; triggers<br />pipelines, including<br />re-publication on<br />metrics.restated</div>"]
style 53 fill:#1e7145,stroke:#154f30,color:#ffffff
end
end
53-- "<div>Sends Teams messages and<br />email alerts through</div><div style='font-size: 70%'>[Microsoft Graph]</div>" -->12
58-- "<div>Reads Gold at pinned Delta<br />versions from, and writes<br />report files to<br />Files/publications of</div><div style='font-size: 70%'>[Spark, Delta time travel, OneLake]</div>" -->50
60-- "<div>Reads approved report files<br />from Files/publications of</div><div style='font-size: 70%'>[OneLake ADLS Gen2 API, managed identity]</div>" -->50
60-- "<div>Delivers report files,<br />flagged as original or<br />revision, over the contracted<br />channel to</div><div style='font-size: 70%'>[SFTP, HTTPS API, email, Power BI app]</div>" -->11
52-- "<div>Frames Delta versions and<br />pages columns on demand from</div><div style='font-size: 70%'>[Direct Lake on OneLake]</div>" -->50
1-- "<div>Views performance and pacing<br />reports in</div><div style='font-size: 70%'>[Power BI]</div>" -->52
1-- "<div>Approves or rejects generated<br />reports in</div><div style='font-size: 70%'>[Teams]</div>" -->59
2-- "<div>Explores funnel and<br />attribution models in</div><div style='font-size: 70%'>[Power BI]</div>" -->52
2-- "<div>Runs ad-hoc SQL over Gold<br />through the SQL analytics<br />endpoint of</div><div style='font-size: 70%'>[TDS]</div>" -->50
3-- "<div>Reviews spend by ad account<br />and month in</div><div style='font-size: 70%'>[Power BI]</div>" -->52
3-- "<div>Approves spend reports in</div><div style='font-size: 70%'>[Teams]</div>" -->59
12-- "<div>Delivers alert messages and<br />approval requests to</div><div style='font-size: 70%'>[Teams client]</div>" -->1
endContainers-Downstream
Level 2 for downstream integrators: how business events leave the platform and reach webhooks, dashboards and Teams.
graph LR
linkStyle default fill:#ffffff
subgraph diagram ["Container View: Marketing Data Platform"]
style diagram fill:#ffffff,stroke:#ffffff
10["<div style='font-weight: bold'>Downstream systems</div><div style='font-size: 70%; margin-top: 0px'>[Software System]</div><div style='font-size: 80%; margin-top:10px'>Sales tooling, marketing<br />automation, dashboards and<br />other consumers of business<br />events</div>"]
style 10 fill:#8c8c8c,stroke:#626262,color:#ffffff
12["<div style='font-weight: bold'>Microsoft Teams and Exchange</div><div style='font-size: 70%; margin-top: 0px'>[Software System]</div><div style='font-size: 80%; margin-top:10px'>Human notification and<br />approval channels</div>"]
style 12 fill:#8c8c8c,stroke:#626262,color:#ffffff
subgraph 13 ["Marketing Data Platform"]
style 13 fill:#ffffff,stroke:#204060,color:#204060
subgraph group1 ["Lakehouse"]
style group1 fill:#ffffff,stroke:#cccccc,color:#cccccc,stroke-dasharray:5
50[("<div style='font-weight: bold'>lh_gold</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric Lakehouse, Delta, V-Order]</div><div style='font-size: 80%; margin-top:10px'>Tokenised star schema,<br />business_event table with<br />Change Data Feed on, and the<br />Files area holding generated<br />report files. Analytics<br />workspace.</div>")]
style 50 fill:#1e7145,stroke:#154f30,color:#ffffff
end
subgraph group2 ["Notification"]
style group2 fill:#ffffff,stroke:#cccccc,color:#cccccc,stroke-dasharray:5
54["<div style='font-weight: bold'>Relay</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric notebook, Python, azure-servicebus]</div><div style='font-size: 80%; margin-top:10px'>Reads the business_event<br />change feed since the last<br />published version; publishes<br />to the topic; advances the<br />outbox cursor</div>"]
style 54 fill:#1e7145,stroke:#154f30,color:#ffffff
55["<div style='font-weight: bold'>Service Bus</div><div style='font-size: 70%; margin-top: 0px'>[Container: Azure Service Bus Standard]</div><div style='font-size: 80%; margin-top:10px'>Session-enabled queue<br />ingest-nudges; topic<br />data-changed with one<br />subscription per consumer,<br />duplicate detection on event<br />id, dead-letter queues,<br />sessions per subject</div>"]
style 55 fill:#0078d4,stroke:#005494,color:#ffffff
56["<div style='font-weight: bold'>Webhook dispatcher</div><div style='font-size: 70%; margin-top: 0px'>[Container: Azure Functions, .NET 10 isolated]</div><div style='font-size: 80%; margin-top:10px'>Delivers HMAC-signed JSON<br />events to registered<br />endpoints with exponential<br />retry and dead-lettering</div>"]
style 56 fill:#0078d4,stroke:#005494,color:#ffffff
57["<div style='font-weight: bold'>Push gateway</div><div style='font-size: 70%; margin-top: 0px'>[Container: ASP.NET Core, .NET 10, TypedResults.ServerSentEvents]</div><div style='font-size: 80%; margin-top:10px'>Streams business events to<br />dashboards over Server-Sent<br />Events. Optional.</div>"]
style 57 fill:#0078d4,stroke:#005494,color:#ffffff
end
subgraph group3 ["Serving"]
style group3 fill:#ffffff,stroke:#cccccc,color:#cccccc,stroke-dasharray:5
53["<div style='font-weight: bold'>Activator</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric Real-Time Intelligence, Eventstream and Activator]</div><div style='font-size: 80%; margin-top:10px'>Rules on the data-changed<br />eventstream and on Fabric job<br />events; sends Teams messages<br />and email; triggers<br />pipelines, including<br />re-publication on<br />metrics.restated</div>"]
style 53 fill:#1e7145,stroke:#154f30,color:#ffffff
end
end
54-- "<div>Reads business_event changes<br />since the last published<br />version from</div><div style='font-size: 70%'>[Delta Change Data Feed]</div>" -->50
54-- "<div>Publishes business events<br />with MessageId=event_id to<br />the data-changed topic on</div><div style='font-size: 70%'>[AMQP]</div>" -->55
55-- "<div>Delivers events matching the<br />subscription filter to</div><div style='font-size: 70%'>[AMQP]</div>" -->56
55-- "<div>Delivers events to the<br />dashboard subscription of</div><div style='font-size: 70%'>[AMQP]</div>" -->57
55-- "<div>Feeds the data-changed topic<br />into the eventstream consumed<br />by</div><div style='font-size: 70%'>[Fabric eventstream, Azure Service Bus source, shared access key]</div>" -->53
56-- "<div>Posts HMAC-signed event<br />payloads to registered<br />endpoints of</div><div style='font-size: 70%'>[HTTPS, JSON]</div>" -->10
57-- "<div>Streams events to dashboards<br />of</div><div style='font-size: 70%'>[Server-Sent Events over HTTPS]</div>" -->10
53-- "<div>Sends Teams messages and<br />email alerts through</div><div style='font-size: 70%'>[Microsoft Graph]</div>" -->12
endContainers-Privacy
Level 2 for the Data Protection Officer: where identifiers live for seven days, the gate, the vault, erasure and its evidence.
graph LR
linkStyle default fill:#ffffff
subgraph diagram ["Container View: Marketing Data Platform"]
style diagram fill:#ffffff,stroke:#ffffff
5["<div style='font-weight: bold'>Data Protection Officer</div><div style='font-size: 70%; margin-top: 0px'>[Person]</div><div style='font-size: 80%; margin-top:10px'>Owns the classification<br />register; triggers and signs<br />off erasure runs</div>"]
style 5 fill:#1f4e79,stroke:#153654,color:#ffffff
subgraph 13 ["Marketing Data Platform"]
style 13 fill:#ffffff,stroke:#204060,color:#204060
subgraph group1 ["Control and security"]
style group1 fill:#ffffff,stroke:#cccccc,color:#cccccc,stroke-dasharray:5
15["<div style='font-weight: bold'>Key Vault</div><div style='font-size: 70%; margin-top: 0px'>[Container: Azure Key Vault]</div><div style='font-size: 80%; margin-top:10px'>Source credentials, webhook<br />secrets, the vault lookup<br />key, the customer-managed key<br />for the vault; RBAC and purge<br />protection</div>"]
style 15 fill:#0078d4,stroke:#005494,color:#ffffff
end
subgraph group2 ["Lakehouse"]
style group2 fill:#ffffff,stroke:#cccccc,color:#cccccc,stroke-dasharray:5
30["<div style='font-weight: bold'>Bronze loader</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric notebook, Python and Spark]</div><div style='font-size: 80%; margin-top:10px'>Promotes landing files to<br />Bronze Delta through the<br />anonymisation gate:<br />classification check, PII<br />scan, vault tokenisation,<br />payload rewrite,<br />generalisation, dedupe,<br />provenance; purges landing<br />files after 7 days; the only<br />writer of Bronze and the only<br />identity with vault<br />lookup-or-create</div>"]
style 30 fill:#1e7145,stroke:#154f30,color:#ffffff
39[("<div style='font-weight: bold'>lh_bronze</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric Lakehouse, Delta]</div><div style='font-size: 80%; margin-top:10px'>Append-only raw tables with<br />identifiers replaced by<br />tokens; landing files (the<br />only place with identifiers,<br />7 days). Restricted<br />workspace.</div>")]
style 39 fill:#1e7145,stroke:#154f30,color:#ffffff
41[("<div style='font-weight: bold'>lh_silver and control</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric Lakehouse, Delta, Change Data Feed]</div><div style='font-size: 80%; margin-top:10px'>Typed current state and<br />history keyed by tokens;<br />control schema (registries,<br />watermarks, run ledger,<br />reconciliation results,<br />outbox cursor, publication<br />log, erasure log, mirrored<br />adapter state). Restricted<br />workspace.</div>")]
style 41 fill:#1e7145,stroke:#154f30,color:#ffffff
end
subgraph group3 ["Privacy"]
style group3 fill:#ffffff,stroke:#cccccc,color:#cccccc,stroke-dasharray:5
61[("<div style='font-weight: bold'>Token vault</div><div style='font-size: 70%; margin-top: 0px'>[Container: Azure SQL Database, TDE with customer-managed key, Entra-only authentication, PIM, auditing]</div><div style='font-size: 80%; margin-top:10px'>token_map and subject_link:<br />lookup hash (HMAC of the<br />normalised identifier),<br />random token, identifier<br />encrypted under the<br />customer-managed key, subject<br />type, jurisdiction,<br />erased_at. The only place<br />erasure must succeed.</div>")]
style 61 fill:#0078d4,stroke:#005494,color:#ffffff
62["<div style='font-weight: bold'>Erasure job</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric pipeline and notebook, Python]</div><div style='font-size: 80%; margin-top:10px'>Path A deletes the subject's<br />mapping in the vault; Path B<br />rewrites the subject out of<br />landing files and purges<br />logs; verifies per store;<br />appends the evidence record;<br />summarises in control</div>"]
style 62 fill:#1e7145,stroke:#154f30,color:#ffffff
63[("<div style='font-weight: bold'>Erasure evidence store</div><div style='font-size: 70%; margin-top: 0px'>[Container: Azure Blob Storage, immutable storage (WORM)]</div><div style='font-size: 80%; margin-top:10px'>Append-only evidence records<br />(request id, identifier hash,<br />scope, store, time, who,<br />result) under a time-based<br />retention policy with a hash<br />chain</div>")]
style 63 fill:#0078d4,stroke:#005494,color:#ffffff
end
end
30-- "<div>Reads landing files from,<br />appends tokenised<br />deduplicated rows with<br />provenance to, and purges<br />landing files in</div><div style='font-size: 70%'>[Spark, Delta, OneLake]</div>" -->39
30-- "<div>Looks up or creates tokens<br />for normalised identifiers in</div><div style='font-size: 70%'>[TDS, Entra token, batched]</div>" -->61
30-- "<div>Reads the vault lookup key<br />from</div><div style='font-size: 70%'>[Key Vault REST, workspace identity]</div>" -->15
30-- "<div>Reads the classification<br />register from and writes<br />quarantine references to</div><div style='font-size: 70%'>[Delta]</div>" -->41
62-- "<div>Deletes lookup hash,<br />encrypted identifier and<br />subject links for the subject<br />in</div><div style='font-size: 70%'>[TDS, Entra token, PIM-elevated]</div>" -->61
62-- "<div>Rewrites the subject's<br />records out of landing files<br />younger than 7 days in</div><div style='font-size: 70%'>[OneLake]</div>" -->39
62-- "<div>Writes the erasure summary to<br />control in</div><div style='font-size: 70%'>[Delta]</div>" -->41
62-- "<div>Appends the per-store<br />evidence record to</div><div style='font-size: 70%'>[Blob REST, immutable policy]</div>" -->63
5-- "<div>Triggers and signs off<br />erasure runs in</div><div style='font-size: 70%'>[Fabric pipeline, approval step]</div>" -->62
5-- "<div>Reviews evidence records in</div><div style='font-size: 70%'>[Azure portal, read-only]</div>" -->63
endComponents-HubSpotAdapter
Level 3. Inside the HubSpot adapter Function App.
graph LR
linkStyle default fill:#ffffff
subgraph diagram ["Component View: Marketing Data Platform - HubSpot adapter"]
style diagram fill:#ffffff,stroke:#ffffff
8["<div style='font-weight: bold'>HubSpot</div><div style='font-size: 70%; margin-top: 0px'>[Software System]</div><div style='font-size: 80%; margin-top:10px'>Marketing CRM: contacts,<br />companies, deals, engagement<br />and email events. Read-only<br />to the platform; sends<br />webhooks.</div>"]
style 8 fill:#8c8c8c,stroke:#626262,color:#ffffff
subgraph 13 ["Marketing Data Platform"]
style 13 fill:#ffffff,stroke:#204060,color:#204060
subgraph 17 ["HubSpot adapter"]
style 17 fill:#ffffff,stroke:#005494,color:#005494
18["<div style='font-weight: bold'>Webhook receiver</div><div style='font-size: 70%; margin-top: 0px'>[Component: HTTP-triggered function]</div><div style='font-size: 80%; margin-top:10px'>Validates the HubSpot v3<br />signature and timestamp;<br />acknowledges within<br />milliseconds; enqueues object<br />ids</div>"]
style 18 fill:#9bc2e6,stroke:#6c87a1,color:#000000
19["<div style='font-weight: bold'>Nudge worker</div><div style='font-size: 70%; margin-top: 0px'>[Component: Service Bus queue-triggered function]</div><div style='font-size: 80%; margin-top:10px'>Batch-reads nudged ids (100<br />per call) and lands current<br />records with op=webhook_nudge</div>"]
style 19 fill:#9bc2e6,stroke:#6c87a1,color:#000000
20["<div style='font-weight: bold'>Incremental extractor</div><div style='font-size: 70%; margin-top: 0px'>[Component: HTTP-triggered function]</div><div style='font-size: 80%; margin-top:10px'>Searches by<br />hs_lastmodifieddate window<br />and pages by keyset on<br />hs_object_id (one sort rule,<br />200 per page); counts for<br />reconciliation; batch-reads<br />state; writes the manifest</div>"]
style 20 fill:#9bc2e6,stroke:#6c87a1,color:#000000
21["<div style='font-weight: bold'>Historical extractor</div><div style='font-size: 70%; margin-top: 0px'>[Component: HTTP-triggered function]</div><div style='font-size: 80%; margin-top:10px'>Pages the list endpoints<br />(async export for large<br />portals) for the initial load</div>"]
style 21 fill:#9bc2e6,stroke:#6c87a1,color:#000000
22["<div style='font-weight: bold'>Reconciliation counter</div><div style='font-size: 70%; margin-top: 0px'>[Component: HTTP-triggered function]</div><div style='font-size: 80%; margin-top:10px'>Returns source-side counts<br />per object and<br />source-modified-day</div>"]
style 22 fill:#9bc2e6,stroke:#6c87a1,color:#000000
23["<div style='font-weight: bold'>Rate limiter</div><div style='font-size: 70%; margin-top: 0px'>[Component: .NET class library]</div><div style='font-size: 80%; margin-top:10px'>Paced per-caller limiter, at<br />most the share in any rolling<br />window, for the per-app,<br />search and associations<br />limits; daily ledger; honours<br />Retry-After; records requests<br />used</div>"]
style 23 fill:#9bc2e6,stroke:#6c87a1,color:#000000
24["<div style='font-weight: bold'>HubSpot API client</div><div style='font-size: 70%; margin-top: 0px'>[Component: .NET class library, HttpClient]</div><div style='font-size: 80%; margin-top:10px'>Typed calls to CRM v3<br />objects, search, batch read<br />and events endpoints; pins<br />the API version</div>"]
style 24 fill:#9bc2e6,stroke:#6c87a1,color:#000000
25["<div style='font-weight: bold'>Landing writer</div><div style='font-size: 70%; margin-top: 0px'>[Component: .NET class library, Azure.Storage.Files.DataLake]</div><div style='font-size: 80%; margin-top:10px'>Writes JSONL pages and<br />manifest.json to the OneLake<br />landing folder; never logs<br />payloads</div>"]
style 25 fill:#9bc2e6,stroke:#6c87a1,color:#000000
26["<div style='font-weight: bold'>State client</div><div style='font-size: 70%; margin-top: 0px'>[Component: .NET class library, Azure.Data.Tables]</div><div style='font-size: 80%; margin-top:10px'>Persists page cursors,<br />webhook receipts and requests<br />used to the adapter state<br />store</div>"]
style 26 fill:#9bc2e6,stroke:#6c87a1,color:#000000
27["<div style='font-weight: bold'>Secret provider</div><div style='font-size: 70%; margin-top: 0px'>[Component: .NET class library, Azure.Identity]</div><div style='font-size: 80%; margin-top:10px'>Loads the private-app token<br />and webhook secret from Key<br />Vault using the managed<br />identity</div>"]
style 27 fill:#9bc2e6,stroke:#6c87a1,color:#000000
end
14["<div style='font-weight: bold'>Orchestrator</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric Data Factory pipelines]</div><div style='font-size: 80%; margin-top:10px'>Schedules runs per freshness<br />tier from registries and<br />watermarks; fans out per<br />object; writes the run<br />ledger; reframes semantic<br />models; runs publication and<br />erasure pipelines</div>"]
style 14 fill:#1e7145,stroke:#154f30,color:#ffffff
15["<div style='font-weight: bold'>Key Vault</div><div style='font-size: 70%; margin-top: 0px'>[Container: Azure Key Vault]</div><div style='font-size: 80%; margin-top:10px'>Source credentials, webhook<br />secrets, the vault lookup<br />key, the customer-managed key<br />for the vault; RBAC and purge<br />protection</div>"]
style 15 fill:#0078d4,stroke:#005494,color:#ffffff
29[("<div style='font-weight: bold'>Adapter state store</div><div style='font-size: 70%; margin-top: 0px'>[Container: Azure Table Storage]</div><div style='font-size: 80%; margin-top:10px'>Page cursors, nudge log,<br />delivery log, subscriber<br />registry, requests used,<br />breaker state; written by the<br />Functions (which cannot write<br />Delta) and mirrored hourly<br />into the control schema</div>")]
style 29 fill:#0078d4,stroke:#005494,color:#ffffff
39[("<div style='font-weight: bold'>lh_bronze</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric Lakehouse, Delta]</div><div style='font-size: 80%; margin-top:10px'>Append-only raw tables with<br />identifiers replaced by<br />tokens; landing files (the<br />only place with identifiers,<br />7 days). Restricted<br />workspace.</div>")]
style 39 fill:#1e7145,stroke:#154f30,color:#ffffff
51["<div style='font-weight: bold'>Reconciler</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric notebook, Python]</div><div style='font-size: 80%; margin-top:10px'>Compares source counts with<br />Silver per object and<br />source-modified-day; passes<br />hash samples through the gate<br />before comparing; writes<br />verdicts and reload requests</div>"]
style 51 fill:#1e7145,stroke:#154f30,color:#ffffff
55["<div style='font-weight: bold'>Service Bus</div><div style='font-size: 70%; margin-top: 0px'>[Container: Azure Service Bus Standard]</div><div style='font-size: 80%; margin-top:10px'>Session-enabled queue<br />ingest-nudges; topic<br />data-changed with one<br />subscription per consumer,<br />duplicate detection on event<br />id, dead-letter queues,<br />sessions per subject</div>"]
style 55 fill:#0078d4,stroke:#005494,color:#ffffff
end
14-- "<div>Runs daily count and weekly<br />hash reconciliation on</div><div style='font-size: 70%'>[Fabric notebook activity]</div>" -->51
8-- "<div>Sends webhooks to</div><div style='font-size: 70%'>[HTTPS, signed JSON]</div>" -->18
18-- "<div>Gets the webhook client<br />secret from</div><div style='font-size: 70%'></div>" -->27
18-- "<div>Enqueues object ids on the<br />ingest-nudges queue of</div><div style='font-size: 70%'>[AMQP]</div>" -->55
18-- "<div>Logs webhook receipts through</div><div style='font-size: 70%'></div>" -->26
55-- "<div>Delivers batches of nudged<br />ids to</div><div style='font-size: 70%'>[AMQP]</div>" -->19
19-- "<div>Batch-reads current records<br />through</div><div style='font-size: 70%'></div>" -->24
19-- "<div>Lands nudged records through</div><div style='font-size: 70%'></div>" -->25
14-- "<div>Invokes with object, window<br />and cursor</div><div style='font-size: 70%'>[HTTPS, JSON]</div>" -->20
14-- "<div>Invokes with object and<br />partition</div><div style='font-size: 70%'>[HTTPS, JSON]</div>" -->21
51-- "<div>Requests counts per object<br />and day from</div><div style='font-size: 70%'>[HTTPS, JSON]</div>" -->22
20-- "<div>Searches and batch-reads<br />through</div><div style='font-size: 70%'></div>" -->24
21-- "<div>Pages list endpoints through</div><div style='font-size: 70%'></div>" -->24
22-- "<div>Runs count searches through</div><div style='font-size: 70%'></div>" -->24
24-- "<div>Acquires request tokens from</div><div style='font-size: 70%'></div>" -->23
24-- "<div>Gets the private-app token<br />from</div><div style='font-size: 70%'></div>" -->27
24-- "<div>Calls objects, search, batch<br />read and events endpoints on</div><div style='font-size: 70%'>[HubSpot CRM v3 API, HTTPS, JSON]</div>" -->8
20-- "<div>Writes pages and manifest<br />through</div><div style='font-size: 70%'></div>" -->25
21-- "<div>Writes pages and manifest<br />through</div><div style='font-size: 70%'></div>" -->25
20-- "<div>Commits page cursors and<br />requests used through</div><div style='font-size: 70%'></div>" -->26
21-- "<div>Commits page cursors and<br />requests used through</div><div style='font-size: 70%'></div>" -->26
25-- "<div>Writes JSONL files and<br />manifest.json to the landing<br />folder of</div><div style='font-size: 70%'>[OneLake ADLS Gen2 API, HTTPS]</div>" -->39
26-- "<div>Writes cursors, receipts and<br />request counts to</div><div style='font-size: 70%'>[Table Storage REST, managed identity]</div>" -->29
27-- "<div>Reads secrets from</div><div style='font-size: 70%'>[Key Vault REST, managed identity]</div>" -->15
endComponents-BronzeLoader
Level 3. Inside the Bronze loader: the anonymisation gate between landing files and Bronze.
graph LR
linkStyle default fill:#ffffff
subgraph diagram ["Component View: Marketing Data Platform - Bronze loader"]
style diagram fill:#ffffff,stroke:#ffffff
subgraph 13 ["Marketing Data Platform"]
style 13 fill:#ffffff,stroke:#204060,color:#204060
subgraph 30 ["Bronze loader"]
style 30 fill:#ffffff,stroke:#154f30,color:#154f30
31["<div style='font-weight: bold'>Manifest checker</div><div style='font-size: 70%; margin-top: 0px'>[Component: Python module]</div><div style='font-size: 80%; margin-top:10px'>Verifies page count, row<br />count and cursor_end of each<br />landed window against the<br />manifest; rejects truncated<br />windows</div>"]
style 31 fill:#9bc2e6,stroke:#6c87a1,color:#000000
32["<div style='font-weight: bold'>Classifier</div><div style='font-size: 70%; margin-top: 0px'>[Component: Python module]</div><div style='font-size: 80%; margin-top:10px'>Loads the classification<br />register; fails the run on<br />any column without an entry;<br />routes each column to its<br />gate action</div>"]
style 32 fill:#9bc2e6,stroke:#6c87a1,color:#000000
33["<div style='font-weight: bold'>PII scanner</div><div style='font-size: 70%; margin-top: 0px'>[Component: Python module]</div><div style='font-size: 80%; margin-top:10px'>Pattern and heuristic scan of<br />every string column for<br />emails, phones, ids and names<br />outside classified identifier<br />columns; quarantines hits</div>"]
style 33 fill:#9bc2e6,stroke:#6c87a1,color:#000000
34["<div style='font-weight: bold'>Tokeniser</div><div style='font-size: 70%; margin-top: 0px'>[Component: Python module, pyodbc with Entra token]</div><div style='font-size: 80%; margin-top:10px'>Normalises identifiers;<br />batched lookup-or-create<br />against the vault; per-run<br />token cache; links secondary<br />identifiers to the subject</div>"]
style 34 fill:#9bc2e6,stroke:#6c87a1,color:#000000
35["<div style='font-weight: bold'>Payload rewriter</div><div style='font-size: 70%; margin-top: 0px'>[Component: Python module]</div><div style='font-size: 80%; margin-top:10px'>Replaces identifier fields in<br />the verbatim JSON with<br />tokens; drops or redacts free<br />text; computes the payload<br />hash after rewriting</div>"]
style 35 fill:#9bc2e6,stroke:#6c87a1,color:#000000
36["<div style='font-weight: bold'>Generaliser</div><div style='font-size: 70%; margin-top: 0px'>[Component: Python module]</div><div style='font-size: 80%; margin-top:10px'>IP to country, drops city,<br />postcode and user agent,<br />tokenises cookie and click<br />ids, carries consent flags</div>"]
style 36 fill:#9bc2e6,stroke:#6c87a1,color:#000000
37["<div style='font-weight: bold'>Delta writer</div><div style='font-size: 70%; margin-top: 0px'>[Component: PySpark module]</div><div style='font-size: 80%; margin-top:10px'>Dedupes on source version and<br />payload hash, stamps<br />provenance, appends to Bronze</div>"]
style 37 fill:#9bc2e6,stroke:#6c87a1,color:#000000
38["<div style='font-weight: bold'>Landing purger</div><div style='font-size: 70%; margin-top: 0px'>[Component: Python module]</div><div style='font-size: 80%; margin-top:10px'>Deletes landing files 7 days<br />after successful promotion<br />and on erasure</div>"]
style 38 fill:#9bc2e6,stroke:#6c87a1,color:#000000
end
14["<div style='font-weight: bold'>Orchestrator</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric Data Factory pipelines]</div><div style='font-size: 80%; margin-top:10px'>Schedules runs per freshness<br />tier from registries and<br />watermarks; fans out per<br />object; writes the run<br />ledger; reframes semantic<br />models; runs publication and<br />erasure pipelines</div>"]
style 14 fill:#1e7145,stroke:#154f30,color:#ffffff
15["<div style='font-weight: bold'>Key Vault</div><div style='font-size: 70%; margin-top: 0px'>[Container: Azure Key Vault]</div><div style='font-size: 80%; margin-top:10px'>Source credentials, webhook<br />secrets, the vault lookup<br />key, the customer-managed key<br />for the vault; RBAC and purge<br />protection</div>"]
style 15 fill:#0078d4,stroke:#005494,color:#ffffff
39[("<div style='font-weight: bold'>lh_bronze</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric Lakehouse, Delta]</div><div style='font-size: 80%; margin-top:10px'>Append-only raw tables with<br />identifiers replaced by<br />tokens; landing files (the<br />only place with identifiers,<br />7 days). Restricted<br />workspace.</div>")]
style 39 fill:#1e7145,stroke:#154f30,color:#ffffff
41[("<div style='font-weight: bold'>lh_silver and control</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric Lakehouse, Delta, Change Data Feed]</div><div style='font-size: 80%; margin-top:10px'>Typed current state and<br />history keyed by tokens;<br />control schema (registries,<br />watermarks, run ledger,<br />reconciliation results,<br />outbox cursor, publication<br />log, erasure log, mirrored<br />adapter state). Restricted<br />workspace.</div>")]
style 41 fill:#1e7145,stroke:#154f30,color:#ffffff
61[("<div style='font-weight: bold'>Token vault</div><div style='font-size: 70%; margin-top: 0px'>[Container: Azure SQL Database, TDE with customer-managed key, Entra-only authentication, PIM, auditing]</div><div style='font-size: 80%; margin-top:10px'>token_map and subject_link:<br />lookup hash (HMAC of the<br />normalised identifier),<br />random token, identifier<br />encrypted under the<br />customer-managed key, subject<br />type, jurisdiction,<br />erased_at. The only place<br />erasure must succeed.</div>")]
style 61 fill:#0078d4,stroke:#005494,color:#ffffff
end
14-- "<div>Reads registries and<br />watermarks from, and writes<br />run ledger and cursors to</div><div style='font-size: 70%'>[Fabric lakehouse table activities]</div>" -->41
14-- "<div>Runs with the landed window</div><div style='font-size: 70%'>[Fabric notebook activity]</div>" -->31
31-- "<div>Reads landing files and<br />manifest.json from</div><div style='font-size: 70%'>[OneLake]</div>" -->39
31-- "<div>Hands verified pages to</div><div style='font-size: 70%'></div>" -->32
32-- "<div>Reads the classification<br />register from</div><div style='font-size: 70%'>[Delta]</div>" -->41
32-- "<div>Hands classified columns to</div><div style='font-size: 70%'></div>" -->33
33-- "<div>Writes quarantine references<br />(landing file, row, check) to</div><div style='font-size: 70%'>[Delta]</div>" -->41
33-- "<div>Hands clean records to</div><div style='font-size: 70%'></div>" -->34
34-- "<div>Reads the lookup key from</div><div style='font-size: 70%'>[Key Vault REST, workspace identity]</div>" -->15
34-- "<div>Looks up or creates tokens<br />for normalised identifiers in</div><div style='font-size: 70%'>[TDS, Entra token, batched]</div>" -->61
34-- "<div>Hands token assignments to</div><div style='font-size: 70%'></div>" -->35
35-- "<div>Hands rewritten payloads to</div><div style='font-size: 70%'></div>" -->36
36-- "<div>Hands gated records to</div><div style='font-size: 70%'></div>" -->37
37-- "<div>Dedupes, stamps provenance<br />and appends to</div><div style='font-size: 70%'>[Spark, Delta]</div>" -->39
37-- "<div>Marks the window promoted for</div><div style='font-size: 70%'></div>" -->38
38-- "<div>Deletes landing files 7 days<br />after promotion in</div><div style='font-size: 70%'>[OneLake]</div>" -->39
endComponents-GoldJob
Level 3. Inside the Gold jobs: builders, rules, allow-list, quality gates.
graph LR
linkStyle default fill:#ffffff
subgraph diagram ["Component View: Marketing Data Platform - Gold jobs"]
style diagram fill:#ffffff,stroke:#ffffff
subgraph 13 ["Marketing Data Platform"]
style 13 fill:#ffffff,stroke:#204060,color:#204060
subgraph 43 ["Gold jobs"]
style 43 fill:#ffffff,stroke:#154f30,color:#154f30
44["<div style='font-weight: bold'>Dimension builder</div><div style='font-size: 70%; margin-top: 0px'>[Component: PySpark module]</div><div style='font-size: 80%; margin-top:10px'>Conforms campaigns, accounts,<br />ad hierarchy, stages and<br />owners into SCD1 and SCD2<br />dimensions</div>"]
style 44 fill:#9bc2e6,stroke:#6c87a1,color:#000000
45["<div style='font-weight: bold'>Fact builder</div><div style='font-size: 70%; margin-top: 0px'>[Component: PySpark module]</div><div style='font-size: 80%; margin-top:10px'>Builds daily performance,<br />conversion, spend, funnel,<br />deal-stage and engagement<br />facts; rebuilds date<br />partitions with replaceWhere</div>"]
style 45 fill:#9bc2e6,stroke:#6c87a1,color:#000000
46["<div style='font-weight: bold'>Business-event rules</div><div style='font-size: 70%; margin-top: 0px'>[Component: PySpark module, versioned rule set in Git]</div><div style='font-size: 80%; margin-top:10px'>Evaluates the<br />important-change catalogue<br />against the Silver change<br />feed; derives event_id from<br />event type, subject token,<br />source version and rule<br />version</div>"]
style 46 fill:#9bc2e6,stroke:#6c87a1,color:#000000
47["<div style='font-weight: bold'>Allow-list enforcer</div><div style='font-size: 70%; margin-top: 0px'>[Component: PySpark module]</div><div style='font-size: 80%; margin-top:10px'>Writes only columns in the<br />Gold allow-list; drops<br />everything else; fails on an<br />unknown column</div>"]
style 47 fill:#9bc2e6,stroke:#6c87a1,color:#000000
48["<div style='font-weight: bold'>Quality gates</div><div style='font-size: 70%; margin-top: 0px'>[Component: PySpark module]</div><div style='font-size: 80%; margin-top:10px'>Referential integrity,<br />freshness and row-count<br />tolerance; routes failures to<br />quarantine; writes partitions<br />and inserts events if absent</div>"]
style 48 fill:#9bc2e6,stroke:#6c87a1,color:#000000
49["<div style='font-weight: bold'>Table maintenance</div><div style='font-size: 70%; margin-top: 0px'>[Component: PySpark module]</div><div style='font-size: 80%; margin-top:10px'>OPTIMIZE with V-Order after<br />each run; VACUUM per<br />retention policy</div>"]
style 49 fill:#9bc2e6,stroke:#6c87a1,color:#000000
end
41[("<div style='font-weight: bold'>lh_silver and control</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric Lakehouse, Delta, Change Data Feed]</div><div style='font-size: 80%; margin-top:10px'>Typed current state and<br />history keyed by tokens;<br />control schema (registries,<br />watermarks, run ledger,<br />reconciliation results,<br />outbox cursor, publication<br />log, erasure log, mirrored<br />adapter state). Restricted<br />workspace.</div>")]
style 41 fill:#1e7145,stroke:#154f30,color:#ffffff
50[("<div style='font-weight: bold'>lh_gold</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric Lakehouse, Delta, V-Order]</div><div style='font-size: 80%; margin-top:10px'>Tokenised star schema,<br />business_event table with<br />Change Data Feed on, and the<br />Files area holding generated<br />report files. Analytics<br />workspace.</div>")]
style 50 fill:#1e7145,stroke:#154f30,color:#ffffff
end
44-- "<div>Reads conformed entities and<br />history from</div><div style='font-size: 70%'>[Spark, Delta]</div>" -->41
45-- "<div>Reads events, deals and<br />performance rows from</div><div style='font-size: 70%'>[Spark, Delta]</div>" -->41
46-- "<div>Reads the Silver change feed<br />from</div><div style='font-size: 70%'>[Delta Change Data Feed]</div>" -->41
44-- "<div>Passes dimension rows through</div><div style='font-size: 70%'></div>" -->47
45-- "<div>Passes fact rows through</div><div style='font-size: 70%'></div>" -->47
46-- "<div>Passes event payloads through</div><div style='font-size: 70%'></div>" -->47
47-- "<div>Hands allow-listed rows to</div><div style='font-size: 70%'></div>" -->48
48-- "<div>Rebuilds date partitions and<br />inserts business events if<br />absent in</div><div style='font-size: 70%'>[Spark, Delta]</div>" -->50
48-- "<div>Writes quarantine rows to</div><div style='font-size: 70%'>[Spark, Delta]</div>" -->41
49-- "<div>Runs OPTIMIZE with V-Order<br />and VACUUM on</div><div style='font-size: 70%'>[Spark SQL]</div>" -->50
endDynamic-WebhookAndPoll
HubSpot webhook nudge followed by the 15-minute polling run that guarantees completeness.
graph LR
linkStyle default fill:#ffffff
subgraph diagram ["Dynamic View: Marketing Data Platform"]
style diagram fill:#ffffff,stroke:#ffffff
subgraph 13 ["Marketing Data Platform"]
style 13 fill:#ffffff,stroke:#204060,color:#204060
subgraph group1 ["Control and security"]
style group1 fill:#ffffff,stroke:#cccccc,color:#cccccc,stroke-dasharray:5
14["<div style='font-weight: bold'>Orchestrator</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric Data Factory pipelines]</div><div style='font-size: 80%; margin-top:10px'>Schedules runs per freshness<br />tier from registries and<br />watermarks; fans out per<br />object; writes the run<br />ledger; reframes semantic<br />models; runs publication and<br />erasure pipelines</div>"]
style 14 fill:#1e7145,stroke:#154f30,color:#ffffff
end
subgraph group2 ["Ingestion"]
style group2 fill:#ffffff,stroke:#cccccc,color:#cccccc,stroke-dasharray:5
17["<div style='font-weight: bold'>HubSpot adapter</div><div style='font-size: 70%; margin-top: 0px'>[Container: Azure Functions, .NET 10 isolated, Flex Consumption (runtime pending PoC, ADR 8)]</div><div style='font-size: 80%; margin-top:10px'>Incremental search and batch<br />read of CRM objects;<br />historical list extraction;<br />webhook receiver; nudge<br />worker; reconciliation counts</div>"]
style 17 fill:#0078d4,stroke:#005494,color:#ffffff
end
subgraph group3 ["Lakehouse"]
style group3 fill:#ffffff,stroke:#cccccc,color:#cccccc,stroke-dasharray:5
30["<div style='font-weight: bold'>Bronze loader</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric notebook, Python and Spark]</div><div style='font-size: 80%; margin-top:10px'>Promotes landing files to<br />Bronze Delta through the<br />anonymisation gate:<br />classification check, PII<br />scan, vault tokenisation,<br />payload rewrite,<br />generalisation, dedupe,<br />provenance; purges landing<br />files after 7 days; the only<br />writer of Bronze and the only<br />identity with vault<br />lookup-or-create</div>"]
style 30 fill:#1e7145,stroke:#154f30,color:#ffffff
39[("<div style='font-weight: bold'>lh_bronze</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric Lakehouse, Delta]</div><div style='font-size: 80%; margin-top:10px'>Append-only raw tables with<br />identifiers replaced by<br />tokens; landing files (the<br />only place with identifiers,<br />7 days). Restricted<br />workspace.</div>")]
style 39 fill:#1e7145,stroke:#154f30,color:#ffffff
41[("<div style='font-weight: bold'>lh_silver and control</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric Lakehouse, Delta, Change Data Feed]</div><div style='font-size: 80%; margin-top:10px'>Typed current state and<br />history keyed by tokens;<br />control schema (registries,<br />watermarks, run ledger,<br />reconciliation results,<br />outbox cursor, publication<br />log, erasure log, mirrored<br />adapter state). Restricted<br />workspace.</div>")]
style 41 fill:#1e7145,stroke:#154f30,color:#ffffff
end
subgraph group4 ["Notification"]
style group4 fill:#ffffff,stroke:#cccccc,color:#cccccc,stroke-dasharray:5
55["<div style='font-weight: bold'>Service Bus</div><div style='font-size: 70%; margin-top: 0px'>[Container: Azure Service Bus Standard]</div><div style='font-size: 80%; margin-top:10px'>Session-enabled queue<br />ingest-nudges; topic<br />data-changed with one<br />subscription per consumer,<br />duplicate detection on event<br />id, dead-letter queues,<br />sessions per subject</div>"]
style 55 fill:#0078d4,stroke:#005494,color:#ffffff
end
end
8["<div style='font-weight: bold'>HubSpot</div><div style='font-size: 70%; margin-top: 0px'>[Software System]</div><div style='font-size: 80%; margin-top:10px'>Marketing CRM: contacts,<br />companies, deals, engagement<br />and email events. Read-only<br />to the platform; sends<br />webhooks.</div>"]
style 8 fill:#8c8c8c,stroke:#626262,color:#ffffff
8-- "<div>1. POST<br />contact.propertyChange<br />(objectId, property);<br />signature validated; 200<br />returned</div><div style='font-size: 70%'>[HTTPS, signed JSON]</div>" -->17
17-- "<div>2. Enqueue the mapped object<br />and objectId on ingest-nudges</div><div style='font-size: 70%'>[AMQP]</div>" -->55
55-- "<div>3. Deliver a batch of nudged<br />ids to the nudge worker<br />(session lock, one consumer<br />per portal)</div><div style='font-size: 70%'>[AMQP]</div>" -->17
17-- "<div>4. Batch-read current records<br />(100 ids per call)</div><div style='font-size: 70%'>[HubSpot CRM v3 API, HTTPS, JSON]</div>" -->8
17-- "<div>5. Land nudged records as<br />files with op=webhook_nudge</div><div style='font-size: 70%'>[OneLake ADLS Gen2 API, HTTPS]</div>" -->39
14-- "<div>6. Promote through the gate:<br />classify, scan, tokenise,<br />rewrite, dedupe, provenance</div><div style='font-size: 70%'>[Fabric notebook activity]</div>" -->30
14-- "<div>7. Read watermark and<br />api_budget for the Tier 1<br />schedule</div><div style='font-size: 70%'>[Fabric lakehouse table activities]</div>" -->41
14-- "<div>8.<br />extract_incremental(contacts,<br />watermark to now minus 5<br />minutes)</div><div style='font-size: 70%'>[HTTPS, JSON]</div>" -->17
17-- "<div>9. Count for reconciliation;<br />page by keyset on<br />hs_object_id inside the<br />window, 200 per page</div><div style='font-size: 70%'>[HubSpot CRM v3 API, HTTPS, JSON]</div>" -->8
17-- "<div>10. Land pages and manifest<br />(rows, cursor_end,<br />truncated=false)</div><div style='font-size: 70%'>[OneLake ADLS Gen2 API, HTTPS]</div>" -->39
14-- "<div>11. Promote the window<br />through the gate</div><div style='font-size: 70%'>[Fabric notebook activity]</div>" -->30
14-- "<div>12. Mark run landed; advance<br />watermark to window_end</div><div style='font-size: 70%'>[Fabric lakehouse table activities]</div>" -->41
endDynamic-ReconcileAndReload
Daily reconciliation finds a discrepancy and schedules a bounded reload; replay would skip the source steps.
graph LR
linkStyle default fill:#ffffff
subgraph diagram ["Dynamic View: Marketing Data Platform"]
style diagram fill:#ffffff,stroke:#ffffff
subgraph 13 ["Marketing Data Platform"]
style 13 fill:#ffffff,stroke:#204060,color:#204060
subgraph group1 ["Control and security"]
style group1 fill:#ffffff,stroke:#cccccc,color:#cccccc,stroke-dasharray:5
14["<div style='font-weight: bold'>Orchestrator</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric Data Factory pipelines]</div><div style='font-size: 80%; margin-top:10px'>Schedules runs per freshness<br />tier from registries and<br />watermarks; fans out per<br />object; writes the run<br />ledger; reframes semantic<br />models; runs publication and<br />erasure pipelines</div>"]
style 14 fill:#1e7145,stroke:#154f30,color:#ffffff
end
subgraph group2 ["Ingestion"]
style group2 fill:#ffffff,stroke:#cccccc,color:#cccccc,stroke-dasharray:5
16["<div style='font-weight: bold'>Salesforce copy activity</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric Data Factory copy activity, Salesforce objects connector]</div><div style='font-size: 80%; margin-top:10px'>Lands SystemModstamp windows<br />every 15 minutes and the Bulk<br />API history as files for the<br />Bronze loader; authenticates<br />with an<br />organisational-account<br />consent held in the Fabric<br />connection</div>"]
style 16 fill:#1e7145,stroke:#154f30,color:#ffffff
end
subgraph group3 ["Lakehouse"]
style group3 fill:#ffffff,stroke:#cccccc,color:#cccccc,stroke-dasharray:5
30["<div style='font-weight: bold'>Bronze loader</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric notebook, Python and Spark]</div><div style='font-size: 80%; margin-top:10px'>Promotes landing files to<br />Bronze Delta through the<br />anonymisation gate:<br />classification check, PII<br />scan, vault tokenisation,<br />payload rewrite,<br />generalisation, dedupe,<br />provenance; purges landing<br />files after 7 days; the only<br />writer of Bronze and the only<br />identity with vault<br />lookup-or-create</div>"]
style 30 fill:#1e7145,stroke:#154f30,color:#ffffff
39[("<div style='font-weight: bold'>lh_bronze</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric Lakehouse, Delta]</div><div style='font-size: 80%; margin-top:10px'>Append-only raw tables with<br />identifiers replaced by<br />tokens; landing files (the<br />only place with identifiers,<br />7 days). Restricted<br />workspace.</div>")]
style 39 fill:#1e7145,stroke:#154f30,color:#ffffff
40["<div style='font-weight: bold'>Silver jobs</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric notebooks, Python and Spark]</div><div style='font-size: 80%; margin-top:10px'>Parse, type and conform;<br />MERGE current state and SCD2<br />history by source version;<br />quality gates; quarantine</div>"]
style 40 fill:#1e7145,stroke:#154f30,color:#ffffff
41[("<div style='font-weight: bold'>lh_silver and control</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric Lakehouse, Delta, Change Data Feed]</div><div style='font-size: 80%; margin-top:10px'>Typed current state and<br />history keyed by tokens;<br />control schema (registries,<br />watermarks, run ledger,<br />reconciliation results,<br />outbox cursor, publication<br />log, erasure log, mirrored<br />adapter state). Restricted<br />workspace.</div>")]
style 41 fill:#1e7145,stroke:#154f30,color:#ffffff
43["<div style='font-weight: bold'>Gold jobs</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric notebooks, Python and Spark]</div><div style='font-size: 80%; margin-top:10px'>Tier 1 event job every 15<br />minutes and the star build<br />hourly or nightly:<br />dimensions, facts rebuilt per<br />date, allow-listed columns,<br />business events inserted if<br />absent on a deterministic id,<br />OPTIMIZE. Run in the<br />restricted workspace and<br />write across workspaces into<br />lh_gold.</div>"]
style 43 fill:#1e7145,stroke:#154f30,color:#ffffff
50[("<div style='font-weight: bold'>lh_gold</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric Lakehouse, Delta, V-Order]</div><div style='font-size: 80%; margin-top:10px'>Tokenised star schema,<br />business_event table with<br />Change Data Feed on, and the<br />Files area holding generated<br />report files. Analytics<br />workspace.</div>")]
style 50 fill:#1e7145,stroke:#154f30,color:#ffffff
51["<div style='font-weight: bold'>Reconciler</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric notebook, Python]</div><div style='font-size: 80%; margin-top:10px'>Compares source counts with<br />Silver per object and<br />source-modified-day; passes<br />hash samples through the gate<br />before comparing; writes<br />verdicts and reload requests</div>"]
style 51 fill:#1e7145,stroke:#154f30,color:#ffffff
end
end
7["<div style='font-weight: bold'>Salesforce</div><div style='font-size: 70%; margin-top: 0px'>[Software System]</div><div style='font-size: 80%; margin-top:10px'>CRM of record: leads,<br />contacts, accounts,<br />opportunities, campaigns.<br />Read-only to the platform.</div>"]
style 7 fill:#8c8c8c,stroke:#626262,color:#ffffff
14-- "<div>1. Run reconciliation for the<br />trailing 35 days</div><div style='font-size: 70%'>[Fabric notebook activity]</div>" -->51
51-- "<div>2. Count records per<br />SystemModstamp day</div><div style='font-size: 70%'>[SOQL COUNT over REST with JWT bearer, HTTPS]</div>" -->7
51-- "<div>3. Count Silver rows per day;<br />write reconciliation_result;<br />write reload_request where<br />delta exceeds tolerance</div><div style='font-size: 70%'>[Spark, Delta]</div>" -->41
14-- "<div>4. Pick reload_request by<br />priority; check api_budget</div><div style='font-size: 70%'>[Fabric lakehouse table activities]</div>" -->41
14-- "<div>5. Run reload for (object,<br />window) with mode=reload</div><div style='font-size: 70%'>[Fabric pipeline activity]</div>" -->16
16-- "<div>6. Re-read the window</div><div style='font-size: 70%'>[Salesforce REST and Bulk API 2.0, HTTPS]</div>" -->7
16-- "<div>7. Land the window as files</div><div style='font-size: 70%'>[OneLake, Lakehouse Files]</div>" -->39
14-- "<div>8. Promote through the gate;<br />append new versions with<br />mode=reload</div><div style='font-size: 70%'>[Fabric notebook activity]</div>" -->30
14-- "<div>9. Run Silver job for<br />(object, window)</div><div style='font-size: 70%'>[Fabric notebook activity]</div>" -->40
40-- "<div>10. Read new versions</div><div style='font-size: 70%'>[Spark, Delta]</div>" -->39
40-- "<div>11. MERGE by business key and<br />source version (idempotent)</div><div style='font-size: 70%'>[Spark, Delta MERGE]</div>" -->41
14-- "<div>12. Run the star build for<br />touched partitions</div><div style='font-size: 70%'>[Fabric notebook activity]</div>" -->43
43-- "<div>13. Read conformed rows</div><div style='font-size: 70%'>[Spark, Delta]</div>" -->41
43-- "<div>14. Rebuild the touched<br />dates; emit metrics.restated<br />if a closed day moved</div><div style='font-size: 70%'>[Spark, Delta, cross-workspace write]</div>" -->50
14-- "<div>15. Mark run landed; schedule<br />a reconciliation re-check</div><div style='font-size: 70%'>[Fabric lakehouse table activities]</div>" -->41
endDynamic-DownstreamNotification
Change Data Feed on business_event acts as the outbox; the relay publishes; adapters subscribe.
graph LR
linkStyle default fill:#ffffff
subgraph diagram ["Dynamic View: Marketing Data Platform"]
style diagram fill:#ffffff,stroke:#ffffff
subgraph 13 ["Marketing Data Platform"]
style 13 fill:#ffffff,stroke:#204060,color:#204060
subgraph group1 ["Lakehouse"]
style group1 fill:#ffffff,stroke:#cccccc,color:#cccccc,stroke-dasharray:5
41[("<div style='font-weight: bold'>lh_silver and control</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric Lakehouse, Delta, Change Data Feed]</div><div style='font-size: 80%; margin-top:10px'>Typed current state and<br />history keyed by tokens;<br />control schema (registries,<br />watermarks, run ledger,<br />reconciliation results,<br />outbox cursor, publication<br />log, erasure log, mirrored<br />adapter state). Restricted<br />workspace.</div>")]
style 41 fill:#1e7145,stroke:#154f30,color:#ffffff
43["<div style='font-weight: bold'>Gold jobs</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric notebooks, Python and Spark]</div><div style='font-size: 80%; margin-top:10px'>Tier 1 event job every 15<br />minutes and the star build<br />hourly or nightly:<br />dimensions, facts rebuilt per<br />date, allow-listed columns,<br />business events inserted if<br />absent on a deterministic id,<br />OPTIMIZE. Run in the<br />restricted workspace and<br />write across workspaces into<br />lh_gold.</div>"]
style 43 fill:#1e7145,stroke:#154f30,color:#ffffff
50[("<div style='font-weight: bold'>lh_gold</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric Lakehouse, Delta, V-Order]</div><div style='font-size: 80%; margin-top:10px'>Tokenised star schema,<br />business_event table with<br />Change Data Feed on, and the<br />Files area holding generated<br />report files. Analytics<br />workspace.</div>")]
style 50 fill:#1e7145,stroke:#154f30,color:#ffffff
end
subgraph group2 ["Notification"]
style group2 fill:#ffffff,stroke:#cccccc,color:#cccccc,stroke-dasharray:5
54["<div style='font-weight: bold'>Relay</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric notebook, Python, azure-servicebus]</div><div style='font-size: 80%; margin-top:10px'>Reads the business_event<br />change feed since the last<br />published version; publishes<br />to the topic; advances the<br />outbox cursor</div>"]
style 54 fill:#1e7145,stroke:#154f30,color:#ffffff
55["<div style='font-weight: bold'>Service Bus</div><div style='font-size: 70%; margin-top: 0px'>[Container: Azure Service Bus Standard]</div><div style='font-size: 80%; margin-top:10px'>Session-enabled queue<br />ingest-nudges; topic<br />data-changed with one<br />subscription per consumer,<br />duplicate detection on event<br />id, dead-letter queues,<br />sessions per subject</div>"]
style 55 fill:#0078d4,stroke:#005494,color:#ffffff
56["<div style='font-weight: bold'>Webhook dispatcher</div><div style='font-size: 70%; margin-top: 0px'>[Container: Azure Functions, .NET 10 isolated]</div><div style='font-size: 80%; margin-top:10px'>Delivers HMAC-signed JSON<br />events to registered<br />endpoints with exponential<br />retry and dead-lettering</div>"]
style 56 fill:#0078d4,stroke:#005494,color:#ffffff
57["<div style='font-weight: bold'>Push gateway</div><div style='font-size: 70%; margin-top: 0px'>[Container: ASP.NET Core, .NET 10, TypedResults.ServerSentEvents]</div><div style='font-size: 80%; margin-top:10px'>Streams business events to<br />dashboards over Server-Sent<br />Events. Optional.</div>"]
style 57 fill:#0078d4,stroke:#005494,color:#ffffff
end
subgraph group3 ["Serving"]
style group3 fill:#ffffff,stroke:#cccccc,color:#cccccc,stroke-dasharray:5
53["<div style='font-weight: bold'>Activator</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric Real-Time Intelligence, Eventstream and Activator]</div><div style='font-size: 80%; margin-top:10px'>Rules on the data-changed<br />eventstream and on Fabric job<br />events; sends Teams messages<br />and email; triggers<br />pipelines, including<br />re-publication on<br />metrics.restated</div>"]
style 53 fill:#1e7145,stroke:#154f30,color:#ffffff
end
end
10["<div style='font-weight: bold'>Downstream systems</div><div style='font-size: 70%; margin-top: 0px'>[Software System]</div><div style='font-size: 80%; margin-top:10px'>Sales tooling, marketing<br />automation, dashboards and<br />other consumers of business<br />events</div>"]
style 10 fill:#8c8c8c,stroke:#626262,color:#ffffff
12["<div style='font-weight: bold'>Microsoft Teams and Exchange</div><div style='font-size: 70%; margin-top: 0px'>[Software System]</div><div style='font-size: 80%; margin-top:10px'>Human notification and<br />approval channels</div>"]
style 12 fill:#8c8c8c,stroke:#626262,color:#ffffff
43-- "<div>1. Insert business events if<br />absent on deterministic<br />event_id</div><div style='font-size: 70%'>[Spark, Delta, cross-workspace write]</div>" -->50
54-- "<div>2. Read<br />last_published_version from<br />outbox_cursor</div><div style='font-size: 70%'>[Delta]</div>" -->41
54-- "<div>3. Read table_changes(last+1<br />to current)</div><div style='font-size: 70%'>[Delta Change Data Feed]</div>" -->50
54-- "<div>4. Publish events<br />(MessageId=event_id,<br />SessionId=subject token)</div><div style='font-size: 70%'>[AMQP]</div>" -->55
54-- "<div>5. Advance<br />last_published_version</div><div style='font-size: 70%'>[Delta]</div>" -->41
55-- "<div>6. Deliver lead.qualified to<br />the dispatcher subscription</div><div style='font-size: 70%'>[AMQP]</div>" -->56
56-- "<div>7. POST HMAC-signed payload;<br />retry with backoff;<br />dead-letter after 8 attempts</div><div style='font-size: 70%'>[HTTPS, JSON]</div>" -->10
55-- "<div>8. Deliver to the dashboard<br />subscription</div><div style='font-size: 70%'>[AMQP]</div>" -->57
57-- "<div>9. Stream text/event-stream<br />with id=event_id</div><div style='font-size: 70%'>[Server-Sent Events over HTTPS]</div>" -->10
55-- "<div>10. Feed the Activator<br />eventstream</div><div style='font-size: 70%'>[Fabric eventstream, Azure Service Bus source, shared access key]</div>" -->53
53-- "<div>11. Send a Teams message per<br />rule</div><div style='font-size: 70%'>[Microsoft Graph]</div>" -->12
endDynamic-PublishAndRestate
A report is generated from pinned Gold versions, signed off, delivered; a later restatement produces a superseding revision, never an overwrite.
graph LR
linkStyle default fill:#ffffff
subgraph diagram ["Dynamic View: Marketing Data Platform"]
style diagram fill:#ffffff,stroke:#ffffff
subgraph 13 ["Marketing Data Platform"]
style 13 fill:#ffffff,stroke:#204060,color:#204060
subgraph group1 ["Control and security"]
style group1 fill:#ffffff,stroke:#cccccc,color:#cccccc,stroke-dasharray:5
14["<div style='font-weight: bold'>Orchestrator</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric Data Factory pipelines]</div><div style='font-size: 80%; margin-top:10px'>Schedules runs per freshness<br />tier from registries and<br />watermarks; fans out per<br />object; writes the run<br />ledger; reframes semantic<br />models; runs publication and<br />erasure pipelines</div>"]
style 14 fill:#1e7145,stroke:#154f30,color:#ffffff
end
subgraph group2 ["Ingestion"]
style group2 fill:#ffffff,stroke:#cccccc,color:#cccccc,stroke-dasharray:5
29[("<div style='font-weight: bold'>Adapter state store</div><div style='font-size: 70%; margin-top: 0px'>[Container: Azure Table Storage]</div><div style='font-size: 80%; margin-top:10px'>Page cursors, nudge log,<br />delivery log, subscriber<br />registry, requests used,<br />breaker state; written by the<br />Functions (which cannot write<br />Delta) and mirrored hourly<br />into the control schema</div>")]
style 29 fill:#0078d4,stroke:#005494,color:#ffffff
end
subgraph group3 ["Lakehouse"]
style group3 fill:#ffffff,stroke:#cccccc,color:#cccccc,stroke-dasharray:5
41[("<div style='font-weight: bold'>lh_silver and control</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric Lakehouse, Delta, Change Data Feed]</div><div style='font-size: 80%; margin-top:10px'>Typed current state and<br />history keyed by tokens;<br />control schema (registries,<br />watermarks, run ledger,<br />reconciliation results,<br />outbox cursor, publication<br />log, erasure log, mirrored<br />adapter state). Restricted<br />workspace.</div>")]
style 41 fill:#1e7145,stroke:#154f30,color:#ffffff
43["<div style='font-weight: bold'>Gold jobs</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric notebooks, Python and Spark]</div><div style='font-size: 80%; margin-top:10px'>Tier 1 event job every 15<br />minutes and the star build<br />hourly or nightly:<br />dimensions, facts rebuilt per<br />date, allow-listed columns,<br />business events inserted if<br />absent on a deterministic id,<br />OPTIMIZE. Run in the<br />restricted workspace and<br />write across workspaces into<br />lh_gold.</div>"]
style 43 fill:#1e7145,stroke:#154f30,color:#ffffff
50[("<div style='font-weight: bold'>lh_gold</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric Lakehouse, Delta, V-Order]</div><div style='font-size: 80%; margin-top:10px'>Tokenised star schema,<br />business_event table with<br />Change Data Feed on, and the<br />Files area holding generated<br />report files. Analytics<br />workspace.</div>")]
style 50 fill:#1e7145,stroke:#154f30,color:#ffffff
end
subgraph group4 ["Publication"]
style group4 fill:#ffffff,stroke:#cccccc,color:#cccccc,stroke-dasharray:5
58["<div style='font-weight: bold'>Report generator</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric notebook, Python]</div><div style='font-size: 80%; margin-top:10px'>Renders versioned report<br />definitions from Gold at<br />pinned Delta versions into<br />CSV, XLSX or PDF; writes a<br />publication manifest<br />(definition version, period,<br />Gold versions, supersedes) to<br />the publication log</div>"]
style 58 fill:#1e7145,stroke:#154f30,color:#ffffff
59["<div style='font-weight: bold'>Approval workflow</div><div style='font-size: 70%; margin-top: 0px'>[Container: Power Automate approvals in Teams]</div><div style='font-size: 80%; margin-top:10px'>Routes a generated report to<br />the named approver; records<br />approve or reject with who<br />and when; returns the<br />decision to the orchestrator</div>"]
style 59 fill:#0078d4,stroke:#005494,color:#ffffff
60["<div style='font-weight: bold'>Delivery adapter</div><div style='font-size: 70%; margin-top: 0px'>[Container: Azure Functions, .NET 10 isolated]</div><div style='font-size: 80%; margin-top:10px'>Delivers approved report<br />files over the recipient's<br />contracted channel (SFTP,<br />HTTPS API, email, Power BI<br />app); retries; records<br />delivery evidence</div>"]
style 60 fill:#0078d4,stroke:#005494,color:#ffffff
end
subgraph group5 ["Serving"]
style group5 fill:#ffffff,stroke:#cccccc,color:#cccccc,stroke-dasharray:5
53["<div style='font-weight: bold'>Activator</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric Real-Time Intelligence, Eventstream and Activator]</div><div style='font-size: 80%; margin-top:10px'>Rules on the data-changed<br />eventstream and on Fabric job<br />events; sends Teams messages<br />and email; triggers<br />pipelines, including<br />re-publication on<br />metrics.restated</div>"]
style 53 fill:#1e7145,stroke:#154f30,color:#ffffff
end
end
11["<div style='font-weight: bold'>Report recipients</div><div style='font-size: 70%; margin-top: 0px'>[Software System]</div><div style='font-size: 80%; margin-top:10px'>Clients, partners and<br />internal functions that<br />receive published reports<br />over a contracted channel</div>"]
style 11 fill:#8c8c8c,stroke:#626262,color:#ffffff
14-- "<div>1. Run report definition v3<br />for period P on its cadence</div><div style='font-size: 70%'>[Fabric notebook activity]</div>" -->58
58-- "<div>2. Read Gold at pinned Delta<br />versions; write the file to<br />Files/publications</div><div style='font-size: 70%'>[Spark, Delta time travel, OneLake]</div>" -->50
58-- "<div>3. Write publication<br />manifest: definition v3,<br />period P, Gold versions,<br />status generated</div><div style='font-size: 70%'>[Delta]</div>" -->41
14-- "<div>4. Request sign-off from the<br />named approver</div><div style='font-size: 70%'>[Power Automate trigger, HTTPS]</div>" -->59
59-- "<div>5. Approved by Marketing<br />Operations lead at time T</div><div style='font-size: 70%'>[Fabric pipeline REST]</div>" -->14
14-- "<div>6. Deliver publication<br />2026-P-v1</div><div style='font-size: 70%'>[HTTPS, JSON]</div>" -->60
60-- "<div>7. Send over the contracted<br />channel, flagged original</div><div style='font-size: 70%'>[SFTP, HTTPS API, email, Power BI app]</div>" -->11
60-- "<div>8. Record delivery evidence</div><div style='font-size: 70%'>[Table Storage REST, managed identity]</div>" -->29
43-- "<div>9. Later: trailing-window<br />reload moves a closed day;<br />metrics.restated emitted</div><div style='font-size: 70%'>[Spark, Delta, cross-workspace write]</div>" -->50
53-- "<div>10. Trigger re-publication<br />for the affected period</div><div style='font-size: 70%'>[Fabric item action]</div>" -->14
14-- "<div>11. Regenerate period P as<br />revision v2 with<br />supersedes=v1; v1 retained</div><div style='font-size: 70%'>[Fabric notebook activity]</div>" -->58
14-- "<div>12. Request sign-off for the<br />revision</div><div style='font-size: 70%'>[Power Automate trigger, HTTPS]</div>" -->59
14-- "<div>13. Deliver 2026-P-v2 flagged<br />revision, with the change<br />summary</div><div style='font-size: 70%'>[HTTPS, JSON]</div>" -->60
60-- "<div>14. Send the revision; the<br />original stays retrievable</div><div style='font-size: 70%'>[SFTP, HTTPS API, email, Power BI app]</div>" -->11
endDynamic-Erasure
Right to erasure: delete the mapping in the vault (Path A), scrub the few places with identifiers (Path B), verify, record evidence.
graph LR
linkStyle default fill:#ffffff
subgraph diagram ["Dynamic View: Marketing Data Platform"]
style diagram fill:#ffffff,stroke:#ffffff
subgraph 13 ["Marketing Data Platform"]
style 13 fill:#ffffff,stroke:#204060,color:#204060
subgraph group1 ["Lakehouse"]
style group1 fill:#ffffff,stroke:#cccccc,color:#cccccc,stroke-dasharray:5
39[("<div style='font-weight: bold'>lh_bronze</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric Lakehouse, Delta]</div><div style='font-size: 80%; margin-top:10px'>Append-only raw tables with<br />identifiers replaced by<br />tokens; landing files (the<br />only place with identifiers,<br />7 days). Restricted<br />workspace.</div>")]
style 39 fill:#1e7145,stroke:#154f30,color:#ffffff
41[("<div style='font-weight: bold'>lh_silver and control</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric Lakehouse, Delta, Change Data Feed]</div><div style='font-size: 80%; margin-top:10px'>Typed current state and<br />history keyed by tokens;<br />control schema (registries,<br />watermarks, run ledger,<br />reconciliation results,<br />outbox cursor, publication<br />log, erasure log, mirrored<br />adapter state). Restricted<br />workspace.</div>")]
style 41 fill:#1e7145,stroke:#154f30,color:#ffffff
end
subgraph group2 ["Privacy"]
style group2 fill:#ffffff,stroke:#cccccc,color:#cccccc,stroke-dasharray:5
61[("<div style='font-weight: bold'>Token vault</div><div style='font-size: 70%; margin-top: 0px'>[Container: Azure SQL Database, TDE with customer-managed key, Entra-only authentication, PIM, auditing]</div><div style='font-size: 80%; margin-top:10px'>token_map and subject_link:<br />lookup hash (HMAC of the<br />normalised identifier),<br />random token, identifier<br />encrypted under the<br />customer-managed key, subject<br />type, jurisdiction,<br />erased_at. The only place<br />erasure must succeed.</div>")]
style 61 fill:#0078d4,stroke:#005494,color:#ffffff
62["<div style='font-weight: bold'>Erasure job</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric pipeline and notebook, Python]</div><div style='font-size: 80%; margin-top:10px'>Path A deletes the subject's<br />mapping in the vault; Path B<br />rewrites the subject out of<br />landing files and purges<br />logs; verifies per store;<br />appends the evidence record;<br />summarises in control</div>"]
style 62 fill:#1e7145,stroke:#154f30,color:#ffffff
63[("<div style='font-weight: bold'>Erasure evidence store</div><div style='font-size: 70%; margin-top: 0px'>[Container: Azure Blob Storage, immutable storage (WORM)]</div><div style='font-size: 80%; margin-top:10px'>Append-only evidence records<br />(request id, identifier hash,<br />scope, store, time, who,<br />result) under a time-based<br />retention policy with a hash<br />chain</div>")]
style 63 fill:#0078d4,stroke:#005494,color:#ffffff
end
end
5["<div style='font-weight: bold'>Data Protection Officer</div><div style='font-size: 70%; margin-top: 0px'>[Person]</div><div style='font-size: 80%; margin-top:10px'>Owns the classification<br />register; triggers and signs<br />off erasure runs</div>"]
style 5 fill:#1f4e79,stroke:#153654,color:#ffffff
5-- "<div>1. Trigger the erasure run<br />with the verified request</div><div style='font-size: 70%'>[Fabric pipeline, approval step]</div>" -->62
62-- "<div>2. Path A: delete lookup<br />hash, encrypted identifier<br />and subject links; stamp<br />erased_at</div><div style='font-size: 70%'>[TDS, Entra token, PIM-elevated]</div>" -->61
62-- "<div>3. Path B: rewrite the<br />subject out of landing files<br />younger than 7 days</div><div style='font-size: 70%'>[OneLake]</div>" -->39
62-- "<div>4. Verify: zero rows for the<br />subject</div><div style='font-size: 70%'>[TDS, Entra token, PIM-elevated]</div>" -->61
62-- "<div>5. Verify: landing scan<br />returns zero; Bronze, Silver,<br />Gold untouched (tokens no<br />longer attributable)</div><div style='font-size: 70%'>[OneLake]</div>" -->39
62-- "<div>6. Append the evidence<br />record: request id,<br />identifier hash, per-store<br />result, who, when</div><div style='font-size: 70%'>[Blob REST, immutable policy]</div>" -->63
62-- "<div>7. Write the erasure summary<br />to control</div><div style='font-size: 70%'>[Delta]</div>" -->41
5-- "<div>8. Review and sign off the<br />record</div><div style='font-size: 70%'>[Azure portal, read-only]</div>" -->63
endDeployment-Production
Production topology: one Azure region, one Fabric tenant with a prod capacity and a pausable burst capacity, vendor clouds.
graph LR
linkStyle default fill:#ffffff
subgraph diagram ["Deployment View: Marketing Data Platform - Production"]
style diagram fill:#ffffff,stroke:#ffffff
subgraph 213 ["Microsoft Azure"]
style 213 fill:#ffffff,stroke:#444444,color:#444444
subgraph 214 ["rg-acme-ingest-prod"]
style 214 fill:#ffffff,stroke:#444444,color:#444444
subgraph 215 ["func-ingest-prod"]
style 215 fill:#ffffff,stroke:#444444,color:#444444
216["<div style='font-weight: bold'>HubSpot adapter</div><div style='font-size: 70%; margin-top: 0px'>[Container: Azure Functions, .NET 10 isolated, Flex Consumption (runtime pending PoC, ADR 8)]</div><div style='font-size: 80%; margin-top:10px'>Incremental search and batch<br />read of CRM objects;<br />historical list extraction;<br />webhook receiver; nudge<br />worker; reconciliation counts</div>"]
style 216 fill:#0078d4,stroke:#005494,color:#ffffff
217["<div style='font-weight: bold'>Google Ads adapter</div><div style='font-size: 70%; margin-top: 0px'>[Container: Azure Functions, .NET 10 isolated, Flex Consumption, REST searchStream (runtime pending PoC, ADR 8)]</div><div style='font-size: 80%; margin-top:10px'>Daily entity snapshots;<br />performance reports for<br />trailing 30 and 90 days;<br />hourly change_event;<br />reconciliation totals</div>"]
style 217 fill:#0078d4,stroke:#005494,color:#ffffff
218["<div style='font-weight: bold'>Webhook dispatcher</div><div style='font-size: 70%; margin-top: 0px'>[Container: Azure Functions, .NET 10 isolated]</div><div style='font-size: 80%; margin-top:10px'>Delivers HMAC-signed JSON<br />events to registered<br />endpoints with exponential<br />retry and dead-lettering</div>"]
style 218 fill:#0078d4,stroke:#005494,color:#ffffff
219["<div style='font-weight: bold'>Delivery adapter</div><div style='font-size: 70%; margin-top: 0px'>[Container: Azure Functions, .NET 10 isolated]</div><div style='font-size: 80%; margin-top:10px'>Delivers approved report<br />files over the recipient's<br />contracted channel (SFTP,<br />HTTPS API, email, Power BI<br />app); retries; records<br />delivery evidence</div>"]
style 219 fill:#0078d4,stroke:#005494,color:#ffffff
end
subgraph 220 ["stacmeingestprod"]
style 220 fill:#ffffff,stroke:#444444,color:#444444
221[("<div style='font-weight: bold'>Adapter state store</div><div style='font-size: 70%; margin-top: 0px'>[Container: Azure Table Storage]</div><div style='font-size: 80%; margin-top:10px'>Page cursors, nudge log,<br />delivery log, subscriber<br />registry, requests used,<br />breaker state; written by the<br />Functions (which cannot write<br />Delta) and mirrored hourly<br />into the control schema</div>")]
style 221 fill:#0078d4,stroke:#005494,color:#ffffff
end
subgraph 226 ["sql-acme-vault-prod"]
style 226 fill:#ffffff,stroke:#444444,color:#444444
227[("<div style='font-weight: bold'>Token vault</div><div style='font-size: 70%; margin-top: 0px'>[Container: Azure SQL Database, TDE with customer-managed key, Entra-only authentication, PIM, auditing]</div><div style='font-size: 80%; margin-top:10px'>token_map and subject_link:<br />lookup hash (HMAC of the<br />normalised identifier),<br />random token, identifier<br />encrypted under the<br />customer-managed key, subject<br />type, jurisdiction,<br />erased_at. The only place<br />erasure must succeed.</div>")]
style 227 fill:#0078d4,stroke:#005494,color:#ffffff
end
subgraph 228 ["stacmeevidenceprod"]
style 228 fill:#ffffff,stroke:#444444,color:#444444
229[("<div style='font-weight: bold'>Erasure evidence store</div><div style='font-size: 70%; margin-top: 0px'>[Container: Azure Blob Storage, immutable storage (WORM)]</div><div style='font-size: 80%; margin-top:10px'>Append-only evidence records<br />(request id, identifier hash,<br />scope, store, time, who,<br />result) under a time-based<br />retention policy with a hash<br />chain</div>")]
style 229 fill:#0078d4,stroke:#005494,color:#ffffff
end
subgraph 230 ["sb-acme-prod"]
style 230 fill:#ffffff,stroke:#444444,color:#444444
231["<div style='font-weight: bold'>Service Bus</div><div style='font-size: 70%; margin-top: 0px'>[Container: Azure Service Bus Standard]</div><div style='font-size: 80%; margin-top:10px'>Session-enabled queue<br />ingest-nudges; topic<br />data-changed with one<br />subscription per consumer,<br />duplicate detection on event<br />id, dead-letter queues,<br />sessions per subject</div>"]
style 231 fill:#0078d4,stroke:#005494,color:#ffffff
end
subgraph 235 ["kv-acme-prod"]
style 235 fill:#ffffff,stroke:#444444,color:#444444
236["<div style='font-weight: bold'>Key Vault</div><div style='font-size: 70%; margin-top: 0px'>[Container: Azure Key Vault]</div><div style='font-size: 80%; margin-top:10px'>Source credentials, webhook<br />secrets, the vault lookup<br />key, the customer-managed key<br />for the vault; RBAC and purge<br />protection</div>"]
style 236 fill:#0078d4,stroke:#005494,color:#ffffff
end
subgraph 241 ["ca-push-gateway-prod"]
style 241 fill:#ffffff,stroke:#444444,color:#444444
242["<div style='font-weight: bold'>Push gateway</div><div style='font-size: 70%; margin-top: 0px'>[Container: ASP.NET Core, .NET 10, TypedResults.ServerSentEvents]</div><div style='font-size: 80%; margin-top:10px'>Streams business events to<br />dashboards over Server-Sent<br />Events. Optional.</div>"]
style 242 fill:#0078d4,stroke:#005494,color:#ffffff
end
244("<div style='font-weight: bold'>appi-acme-prod</div><div style='font-size: 70%; margin-top: 0px'>[Infrastructure Node: Application Insights, Log Analytics]</div><div style='font-size: 80%; margin-top:10px'>Telemetry, custom metrics and<br />alerts for the Functions;<br />payload logging forbidden</div>")
style 244 fill:#d9d9d9,stroke:#979797,color:#000000
end
subgraph 245 ["Power Platform environment"]
style 245 fill:#ffffff,stroke:#444444,color:#444444
246["<div style='font-weight: bold'>Approval workflow</div><div style='font-size: 70%; margin-top: 0px'>[Container: Power Automate approvals in Teams]</div><div style='font-size: 80%; margin-top:10px'>Routes a generated report to<br />the named approver; records<br />approve or reject with who<br />and when; returns the<br />decision to the orchestrator</div>"]
style 246 fill:#0078d4,stroke:#005494,color:#ffffff
end
subgraph 247 ["Microsoft Fabric tenant"]
style 247 fill:#ffffff,stroke:#444444,color:#444444
subgraph 248 ["Capacity F8 prod"]
style 248 fill:#ffffff,stroke:#444444,color:#444444
subgraph 249 ["acme-ingest-restricted-prod"]
style 249 fill:#ffffff,stroke:#444444,color:#444444
250["<div style='font-weight: bold'>Orchestrator</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric Data Factory pipelines]</div><div style='font-size: 80%; margin-top:10px'>Schedules runs per freshness<br />tier from registries and<br />watermarks; fans out per<br />object; writes the run<br />ledger; reframes semantic<br />models; runs publication and<br />erasure pipelines</div>"]
style 250 fill:#1e7145,stroke:#154f30,color:#ffffff
256["<div style='font-weight: bold'>Salesforce copy activity</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric Data Factory copy activity, Salesforce objects connector]</div><div style='font-size: 80%; margin-top:10px'>Lands SystemModstamp windows<br />every 15 minutes and the Bulk<br />API history as files for the<br />Bronze loader; authenticates<br />with an<br />organisational-account<br />consent held in the Fabric<br />connection</div>"]
style 256 fill:#1e7145,stroke:#154f30,color:#ffffff
258["<div style='font-weight: bold'>Bronze loader</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric notebook, Python and Spark]</div><div style='font-size: 80%; margin-top:10px'>Promotes landing files to<br />Bronze Delta through the<br />anonymisation gate:<br />classification check, PII<br />scan, vault tokenisation,<br />payload rewrite,<br />generalisation, dedupe,<br />provenance; purges landing<br />files after 7 days; the only<br />writer of Bronze and the only<br />identity with vault<br />lookup-or-create</div>"]
style 258 fill:#1e7145,stroke:#154f30,color:#ffffff
262[("<div style='font-weight: bold'>lh_bronze</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric Lakehouse, Delta]</div><div style='font-size: 80%; margin-top:10px'>Append-only raw tables with<br />identifiers replaced by<br />tokens; landing files (the<br />only place with identifiers,<br />7 days). Restricted<br />workspace.</div>")]
style 262 fill:#1e7145,stroke:#154f30,color:#ffffff
267["<div style='font-weight: bold'>Silver jobs</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric notebooks, Python and Spark]</div><div style='font-size: 80%; margin-top:10px'>Parse, type and conform;<br />MERGE current state and SCD2<br />history by source version;<br />quality gates; quarantine</div>"]
style 267 fill:#1e7145,stroke:#154f30,color:#ffffff
270[("<div style='font-weight: bold'>lh_silver and control</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric Lakehouse, Delta, Change Data Feed]</div><div style='font-size: 80%; margin-top:10px'>Typed current state and<br />history keyed by tokens;<br />control schema (registries,<br />watermarks, run ledger,<br />reconciliation results,<br />outbox cursor, publication<br />log, erasure log, mirrored<br />adapter state). Restricted<br />workspace.</div>")]
style 270 fill:#1e7145,stroke:#154f30,color:#ffffff
274["<div style='font-weight: bold'>State sync</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric notebook, Python]</div><div style='font-size: 80%; margin-top:10px'>Mirrors adapter state into<br />the control schema every<br />hour; rolls requests used<br />into api_budget</div>"]
style 274 fill:#1e7145,stroke:#154f30,color:#ffffff
278["<div style='font-weight: bold'>Gold jobs</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric notebooks, Python and Spark]</div><div style='font-size: 80%; margin-top:10px'>Tier 1 event job every 15<br />minutes and the star build<br />hourly or nightly:<br />dimensions, facts rebuilt per<br />date, allow-listed columns,<br />business events inserted if<br />absent on a deterministic id,<br />OPTIMIZE. Run in the<br />restricted workspace and<br />write across workspaces into<br />lh_gold.</div>"]
style 278 fill:#1e7145,stroke:#154f30,color:#ffffff
281["<div style='font-weight: bold'>Reconciler</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric notebook, Python]</div><div style='font-size: 80%; margin-top:10px'>Compares source counts with<br />Silver per object and<br />source-modified-day; passes<br />hash samples through the gate<br />before comparing; writes<br />verdicts and reload requests</div>"]
style 281 fill:#1e7145,stroke:#154f30,color:#ffffff
287["<div style='font-weight: bold'>Relay</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric notebook, Python, azure-servicebus]</div><div style='font-size: 80%; margin-top:10px'>Reads the business_event<br />change feed since the last<br />published version; publishes<br />to the topic; advances the<br />outbox cursor</div>"]
style 287 fill:#1e7145,stroke:#154f30,color:#ffffff
291["<div style='font-weight: bold'>Erasure job</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric pipeline and notebook, Python]</div><div style='font-size: 80%; margin-top:10px'>Path A deletes the subject's<br />mapping in the vault; Path B<br />rewrites the subject out of<br />landing files and purges<br />logs; verifies per store;<br />appends the evidence record;<br />summarises in control</div>"]
style 291 fill:#1e7145,stroke:#154f30,color:#ffffff
end
subgraph 297 ["acme-analytics-prod"]
style 297 fill:#ffffff,stroke:#444444,color:#444444
298[("<div style='font-weight: bold'>lh_gold</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric Lakehouse, Delta, V-Order]</div><div style='font-size: 80%; margin-top:10px'>Tokenised star schema,<br />business_event table with<br />Change Data Feed on, and the<br />Files area holding generated<br />report files. Analytics<br />workspace.</div>")]
style 298 fill:#1e7145,stroke:#154f30,color:#ffffff
302["<div style='font-weight: bold'>Semantic models</div><div style='font-size: 70%; margin-top: 0px'>[Container: Power BI]</div><div style='font-size: 80%; margin-top:10px'>Direct Lake on OneLake models<br />over Gold with row- and<br />object-level security</div>"]
style 302 fill:#1e7145,stroke:#154f30,color:#ffffff
305["<div style='font-weight: bold'>Report generator</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric notebook, Python]</div><div style='font-size: 80%; margin-top:10px'>Renders versioned report<br />definitions from Gold at<br />pinned Delta versions into<br />CSV, XLSX or PDF; writes a<br />publication manifest<br />(definition version, period,<br />Gold versions, supersedes) to<br />the publication log</div>"]
style 305 fill:#1e7145,stroke:#154f30,color:#ffffff
end
subgraph 309 ["acme-realtime-prod"]
style 309 fill:#ffffff,stroke:#444444,color:#444444
310["<div style='font-weight: bold'>Activator</div><div style='font-size: 70%; margin-top: 0px'>[Container: Microsoft Fabric Real-Time Intelligence, Eventstream and Activator]</div><div style='font-size: 80%; margin-top:10px'>Rules on the data-changed<br />eventstream and on Fabric job<br />events; sends Teams messages<br />and email; triggers<br />pipelines, including<br />re-publication on<br />metrics.restated</div>"]
style 310 fill:#1e7145,stroke:#154f30,color:#ffffff
end
end
subgraph 313 ["Capacity F64 burst"]
style 313 fill:#ffffff,stroke:#444444,color:#444444
314("<div style='font-weight: bold'>Backfill runs</div><div style='font-size: 70%; margin-top: 0px'>[Infrastructure Node: Fabric capacity assignment]</div><div style='font-size: 80%; margin-top:10px'>Workspaces are reassigned<br />here for the historical load,<br />then moved back</div>")
style 314 fill:#d9d9d9,stroke:#979797,color:#000000
end
end
end
subgraph 315 ["Salesforce"]
style 315 fill:#ffffff,stroke:#444444,color:#444444
316["<div style='font-weight: bold'>Salesforce</div><div style='font-size: 70%; margin-top: 0px'>[Software System]</div><div style='font-size: 80%; margin-top:10px'>CRM of record: leads,<br />contacts, accounts,<br />opportunities, campaigns.<br />Read-only to the platform.</div>"]
style 316 fill:#8c8c8c,stroke:#626262,color:#ffffff
end
subgraph 319 ["HubSpot"]
style 319 fill:#ffffff,stroke:#444444,color:#444444
320["<div style='font-weight: bold'>HubSpot</div><div style='font-size: 70%; margin-top: 0px'>[Software System]</div><div style='font-size: 80%; margin-top:10px'>Marketing CRM: contacts,<br />companies, deals, engagement<br />and email events. Read-only<br />to the platform; sends<br />webhooks.</div>"]
style 320 fill:#8c8c8c,stroke:#626262,color:#ffffff
end
subgraph 323 ["Google"]
style 323 fill:#ffffff,stroke:#444444,color:#444444
324["<div style='font-weight: bold'>Google Ads</div><div style='font-size: 70%; margin-top: 0px'>[Software System]</div><div style='font-size: 80%; margin-top:10px'>Advertising platform: account<br />structure, date-segmented<br />performance reports, 30-day<br />change history. No push<br />mechanism.</div>"]
style 324 fill:#8c8c8c,stroke:#626262,color:#ffffff
end
subgraph 326 ["Report recipients"]
style 326 fill:#ffffff,stroke:#444444,color:#444444
327["<div style='font-weight: bold'>Report recipients</div><div style='font-size: 70%; margin-top: 0px'>[Software System]</div><div style='font-size: 80%; margin-top:10px'>Clients, partners and<br />internal functions that<br />receive published reports<br />over a contracted channel</div>"]
style 327 fill:#8c8c8c,stroke:#626262,color:#ffffff
end
216-- "<div>Persists page cursors,<br />webhook receipts, breaker<br />state and requests used in</div><div style='font-size: 70%'>[Table Storage REST, managed identity]</div>" -->221
217-- "<div>Persists page cursors and<br />requests used in</div><div style='font-size: 70%'>[Table Storage REST, managed identity]</div>" -->221
218-- "<div>Reads the subscriber registry<br />from and writes the delivery<br />log to</div><div style='font-size: 70%'>[Table Storage REST, managed identity]</div>" -->221
219-- "<div>Records delivery attempts and<br />evidence in</div><div style='font-size: 70%'>[Table Storage REST, managed identity]</div>" -->221
231-- "<div>Delivers batches of nudged<br />ids to</div><div style='font-size: 70%'>[AMQP]</div>" -->216
216-- "<div>Enqueues nudged object ids on<br />the ingest-nudges queue of</div><div style='font-size: 70%'>[AMQP]</div>" -->231
231-- "<div>Delivers events matching the<br />subscription filter to</div><div style='font-size: 70%'>[AMQP]</div>" -->218
216-- "<div>Reads the private-app token<br />and webhook secret from</div><div style='font-size: 70%'>[Key Vault REST, managed identity]</div>" -->236
217-- "<div>Reads the OAuth refresh token<br />and client secret from</div><div style='font-size: 70%'>[Key Vault REST, managed identity]</div>" -->236
218-- "<div>Reads subscriber signing<br />secrets from</div><div style='font-size: 70%'>[Key Vault REST, managed identity]</div>" -->236
219-- "<div>Reads channel credentials<br />from</div><div style='font-size: 70%'>[Key Vault REST, managed identity]</div>" -->236
231-- "<div>Delivers events to the<br />dashboard subscription of</div><div style='font-size: 70%'>[AMQP]</div>" -->242
250-- "<div>Invokes incremental,<br />historical and count<br />operations with a window on</div><div style='font-size: 70%'>[HTTPS, JSON]</div>" -->216
250-- "<div>Invokes snapshot,<br />trailing-window report and<br />change_event pulls on</div><div style='font-size: 70%'>[HTTPS, JSON]</div>" -->217
250-- "<div>Invokes delivery of an<br />approved publication on</div><div style='font-size: 70%'>[HTTPS, JSON]</div>" -->219
250-- "<div>Requests sign-off for a<br />generated report through</div><div style='font-size: 70%'>[Power Automate trigger, HTTPS]</div>" -->246
246-- "<div>Returns the approve or reject<br />decision with approver and<br />time to</div><div style='font-size: 70%'>[Fabric pipeline REST]</div>" -->250
250-- "<div>Starts incremental and<br />historical Salesforce runs on</div><div style='font-size: 70%'>[Fabric pipeline activity]</div>" -->256
258-- "<div>Looks up or creates tokens<br />for normalised identifiers in</div><div style='font-size: 70%'>[TDS, Entra token, batched]</div>" -->227
258-- "<div>Reads the vault lookup key<br />from</div><div style='font-size: 70%'>[Key Vault REST, workspace identity]</div>" -->236
250-- "<div>Runs after each landed window<br />on</div><div style='font-size: 70%'>[Fabric notebook activity]</div>" -->258
216-- "<div>Writes JSONL pages and<br />manifests to the landing<br />folder of</div><div style='font-size: 70%'>[OneLake ADLS Gen2 API, HTTPS]</div>" -->262
217-- "<div>Writes JSONL pages and<br />manifests to the landing<br />folder of</div><div style='font-size: 70%'>[OneLake ADLS Gen2 API, HTTPS]</div>" -->262
256-- "<div>Lands incremental windows and<br />bulk history as JSONL files<br />in the landing folder of</div><div style='font-size: 70%'>[OneLake, Lakehouse Files]</div>" -->262
258-- "<div>Reads landing files from,<br />appends tokenised<br />deduplicated rows with<br />provenance to, and purges<br />landing files in</div><div style='font-size: 70%'>[Spark, Delta, OneLake]</div>" -->262
250-- "<div>Runs Silver jobs for touched<br />objects on</div><div style='font-size: 70%'>[Fabric notebook activity]</div>" -->267
267-- "<div>Reads new raw versions for<br />the window from</div><div style='font-size: 70%'>[Spark, Delta]</div>" -->262
250-- "<div>Reads registries and<br />watermarks from, and writes<br />run ledger and cursors to</div><div style='font-size: 70%'>[Fabric lakehouse table activities]</div>" -->270
258-- "<div>Reads the classification<br />register from and writes<br />quarantine references to</div><div style='font-size: 70%'>[Delta]</div>" -->270
267-- "<div>Merges current state, appends<br />SCD2 history and quarantine<br />rows into</div><div style='font-size: 70%'>[Spark, Delta MERGE]</div>" -->270
274-- "<div>Reads adapter state from</div><div style='font-size: 70%'>[Table Storage REST]</div>" -->221
250-- "<div>Runs hourly</div><div style='font-size: 70%'>[Fabric notebook activity]</div>" -->274
274-- "<div>Upserts mirrored adapter<br />state and api_budget into the<br />control schema of</div><div style='font-size: 70%'>[Delta MERGE]</div>" -->270
250-- "<div>Runs the Tier 1 event job<br />every 15 minutes and the star<br />build hourly or nightly on</div><div style='font-size: 70%'>[Fabric notebook activity]</div>" -->278
278-- "<div>Reads conformed entities and<br />the Silver change feed from</div><div style='font-size: 70%'>[Spark, Delta]</div>" -->270
281-- "<div>Requests source counts per<br />object and day from</div><div style='font-size: 70%'>[HTTPS, JSON]</div>" -->216
281-- "<div>Requests daily metric totals<br />per account from</div><div style='font-size: 70%'>[HTTPS, JSON]</div>" -->217
281-- "<div>Tokenises source hash samples<br />through the same lookup<br />before comparing with</div><div style='font-size: 70%'>[TDS, Entra token]</div>" -->227
250-- "<div>Runs daily count and weekly<br />hash reconciliation on</div><div style='font-size: 70%'>[Fabric notebook activity]</div>" -->281
281-- "<div>Counts Silver rows per day;<br />writes reconciliation results<br />and reload requests to</div><div style='font-size: 70%'>[Spark, Delta]</div>" -->270
287-- "<div>Publishes business events<br />with MessageId=event_id to<br />the data-changed topic on</div><div style='font-size: 70%'>[AMQP]</div>" -->231
250-- "<div>Runs after each event job and<br />star build</div><div style='font-size: 70%'>[Fabric notebook activity]</div>" -->287
287-- "<div>Reads and advances the outbox<br />cursor in</div><div style='font-size: 70%'>[Delta]</div>" -->270
291-- "<div>Deletes lookup hash,<br />encrypted identifier and<br />subject links for the subject<br />in</div><div style='font-size: 70%'>[TDS, Entra token, PIM-elevated]</div>" -->227
291-- "<div>Appends the per-store<br />evidence record to</div><div style='font-size: 70%'>[Blob REST, immutable policy]</div>" -->229
250-- "<div>Runs on a verified<br />data-subject request</div><div style='font-size: 70%'>[Fabric pipeline]</div>" -->291
291-- "<div>Rewrites the subject's<br />records out of landing files<br />younger than 7 days in</div><div style='font-size: 70%'>[OneLake]</div>" -->262
291-- "<div>Writes the erasure summary to<br />control in</div><div style='font-size: 70%'>[Delta]</div>" -->270
219-- "<div>Reads approved report files<br />from Files/publications of</div><div style='font-size: 70%'>[OneLake ADLS Gen2 API, managed identity]</div>" -->298
278-- "<div>Rebuilds date partitions and<br />inserts business events if<br />absent in</div><div style='font-size: 70%'>[Spark, Delta, cross-workspace write]</div>" -->298
287-- "<div>Reads business_event changes<br />since the last published<br />version from</div><div style='font-size: 70%'>[Delta Change Data Feed]</div>" -->298
250-- "<div>Reframes after each star<br />build</div><div style='font-size: 70%'>[Fabric semantic model refresh API]</div>" -->302
302-- "<div>Frames Delta versions and<br />pages columns on demand from</div><div style='font-size: 70%'>[Direct Lake on OneLake]</div>" -->298
250-- "<div>Runs report definitions on<br />their cadence and on<br />metrics.restated for affected<br />periods</div><div style='font-size: 70%'>[Fabric notebook activity]</div>" -->305
305-- "<div>Writes the publication<br />manifest and log row (status<br />generated) to control in</div><div style='font-size: 70%'>[Delta]</div>" -->270
305-- "<div>Reads Gold at pinned Delta<br />versions from, and writes<br />report files to<br />Files/publications of</div><div style='font-size: 70%'>[Spark, Delta time travel, OneLake]</div>" -->298
231-- "<div>Feeds the data-changed topic<br />into the eventstream consumed<br />by</div><div style='font-size: 70%'>[Fabric eventstream, Azure Service Bus source, shared access key]</div>" -->310
310-- "<div>Triggers reframe, reload and<br />re-publication pipelines on</div><div style='font-size: 70%'>[Fabric item action]</div>" -->250
256-- "<div>Reads records changed since<br />the watermark, soft deletes<br />and bulk history from</div><div style='font-size: 70%'>[Salesforce REST and Bulk API 2.0, HTTPS]</div>" -->316
281-- "<div>Counts records per<br />SystemModstamp day in</div><div style='font-size: 70%'>[SOQL COUNT over REST with JWT bearer, HTTPS]</div>" -->316
320-- "<div>Sends property-change,<br />creation and deletion<br />webhooks to</div><div style='font-size: 70%'>[HTTPS, signed JSON]</div>" -->216
216-- "<div>Reads objects by<br />last-modified window and<br />batch-reads records from</div><div style='font-size: 70%'>[HubSpot CRM v3 API, HTTPS, JSON]</div>" -->320
217-- "<div>Reads entities,<br />date-segmented reports and<br />change events from</div><div style='font-size: 70%'>[Google Ads API, REST searchStream]</div>" -->324
219-- "<div>Delivers report files,<br />flagged as original or<br />revision, over the contracted<br />channel to</div><div style='font-size: 70%'>[SFTP, HTTPS API, email, Power BI app]</div>" -->327
endTOGAF phases
Overview and Preliminary
- Acme Marketing Group — Marketing Data Ingestion Architecture
- Marketing Data Ingestion Architecture — Acme Marketing Group
- TOGAF intake and phase plan
- Architecture Principles — Acme Marketing Data Ingestion
- Architecture Decision Records
B: Business
C: Data
- Control Tables (schema
controlinlh_silver) - Data Architecture (Phase C)
- Data Classification Register
- Domain Model
- Gold Star Schema (v1 draft)
C: Application
D: Technology
E and F: Roadmap
G, H and requirements: Governance
- Adding a Source (Phase H change process)
- Compliance Checklist (per release, per new object or source)
- Medallion Governance and Implementation Governance (Phase G)
- Open Questions
- Requirements Traceability
- Risk Register
- WP0b PoC brief: HubSpot adapter
Diagram notes
- Diagrams
- Level 1 — System Context — Marketing Data Platform
- Level 2 — Container view for the business — Marketing Data Platform
- Level 2 — Container view for Data Engineering — Marketing Data Platform
- Level 2 — Container view for downstream integrators — Marketing Data Platform
- Level 2 — Container view for the Data Protection Officer — Marketing Data Platform
- Level 2 — Container overview — Marketing Data Platform
- Level 3 — Component — Bronze loader (the anonymisation gate)
- Level 3 — Component — Gold jobs
- Level 3 — Component — HubSpot adapter
- Dynamic — Downstream change notification
- Dynamic — Right to erasure
- Dynamic — HubSpot webhook nudge and the polling guarantee
- Dynamic — Publish a report, then supersede it on restatement
- Dynamic — Reconcile, targeted reload, and where replay differs
- Deployment — Production
- Medallion Data Flow
- Layers Overview
- Sequence: downstream change notification
- Sequence: HubSpot webhook nudge and the polling guarantee
- Sequence: reconcile, targeted reload, and replay
Appendices
- Assumptions register
- Assumed business flow (as-is)
- Platform choice: why Microsoft Fabric over Azure Databricks (management rationale)
- Integration Platform Choicereport
- Platform Cost Estimatereport
- Ingestion Runtime PoCreport
Architecture Decision Records
- 1. Microsoft Fabric as the data platformAccepted
- 2. Medallion layering, workspace boundaries and promotion rulesAccepted
- 3. Ingestion pattern per source: push accelerates, poll guaranteesAccepted
- 4. Connector build vs buy policyAccepted
- 5. Recover, reconcile, reload, replay: semantics and mechanismsAccepted
- 6. Personal data: anonymisation gate before Bronze and a token vaultAccepted
- 7. Downstream change notification: change-feed outbox and message busAccepted
- 8. Orchestration, extraction and transformation computeProposed
- 9. Serving layer: Gold star schema through Direct Lake on OneLakeAccepted
- 10. Identity, secrets and read-only source accessAccepted
- 11. Report publication: versioned definitions, sign-off, contracted delivery, lineage and restatementAccepted
- 12. Operations console: one read-only cockpit over all adapters, sold with the platform and used by the support serviceProposed