Acme Marketing Architecture

Level 2 — Container overview — Marketing Data Platform

Level 2 — Container overview — Marketing Data Platform

Diagram type: Container (overview) Scope: the spine of the platform: the three sources, their adapters, the gate, the three lakehouses, serving and the bus. Everything else is in the four audience views below. Audience: anyone who needs the shape of the platform in one picture. Structurizr view: Containers in structurizr/workspace.dsl

Overview

Sources are read-only to the platform. Each source lands files through its own adapter: the Fabric copy activity for Salesforce, Azure Functions for HubSpot and Google Ads. One Bronze loader promotes every landing file through the anonymisation gate, so identifiers never reach a Delta table; the token vault outside the lake holds the mapping. Silver and Gold are built by Fabric jobs that are not drawn here. Gold is served through Direct Lake semantic models and, for systems, through a relay that publishes business events to Service Bus. The orchestrator drives all of it from registries and watermarks in the control schema.

The model groups containers into boundaries (Control and security, Ingestion, Lakehouse, Serving, Notification, Publication, Privacy, Operations); the audience views show them:

View For Document
Containers-DataEngineering Data Engineering, the support team 02-container-data-engineering.md
Containers-Business Marketing Operations, analysts, Finance 02-container-business.md
Containers-Downstream downstream integrators 02-container-downstream.md
Containers-Privacy the Data Protection Officer 02-container-privacy.md

Diagram

C4Container
    title Container overview for the Marketing Data Platform
    System_Ext(sf, "Salesforce", "CRM of record")
    System_Ext(hs, "HubSpot", "Marketing CRM; webhooks")
    System_Ext(gads, "Google Ads", "Advertising; no push")

    Container_Boundary(platform, "Marketing Data Platform") {
        Container(orch, "Orchestrator", "Fabric Data Factory pipelines", "Tiers, registries, watermarks, run ledger")
        Container(cj, "Salesforce copy activity", "Fabric copy activity", "Lands windows and bulk history as files")
        Container(fn_hs, "HubSpot adapter", "Azure Functions, .NET 10 (runtime pending PoC)", "Keyset search, batch read, webhooks, nudges, counts")
        Container(fn_gads, "Google Ads adapter", "Azure Functions, .NET 10 (runtime pending PoC)", "Snapshots, trailing-window reports, change events")
        Container(loader, "Bronze loader", "Fabric notebook", "The anonymisation gate; the only writer of Bronze")
        ContainerDb(bronze, "lh_bronze", "Fabric Lakehouse, Delta", "Tokens only; landing files 7 days")
        ContainerDb(silver, "lh_silver and control", "Fabric Lakehouse, Delta, CDF", "Typed state and history; control schema")
        ContainerDb(gold, "lh_gold", "Fabric Lakehouse, Delta", "Star schema; business_event; publications")
        ContainerDb(vault, "Token vault", "Azure SQL Database, CMK, PIM", "Identifier to token mapping")
        Container(sem, "Semantic models", "Power BI, Direct Lake", "Reports with RLS and OLS")
        Container(relay, "Relay", "Fabric notebook", "business_event change feed to the bus")
        ContainerQueue(sb, "Service Bus", "Azure Service Bus Standard", "ingest-nudges queue; data-changed topic")
    }

    Rel(orch, cj, "Starts Salesforce runs on", "pipeline activity")
    Rel(orch, fn_hs, "Invokes extract, history and count operations on", "HTTPS, JSON")
    Rel(orch, fn_gads, "Invokes snapshot, report and change_event pulls on", "HTTPS, JSON")
    Rel(cj, sf, "Reads changed records and bulk history from", "REST, Bulk API 2.0")
    Rel(fn_hs, hs, "Reads objects by keyset inside last-modified windows from", "CRM v3 API")
    Rel(hs, fn_hs, "Sends property-change webhooks to", "HTTPS, signed JSON")
    Rel(fn_gads, gads, "Reads entities, reports and change events from", "REST searchStream")
    Rel(fn_hs, sb, "Enqueues nudged ids on", "AMQP")
    Rel(sb, fn_hs, "Delivers nudge batches to", "AMQP")
    Rel(cj, bronze, "Lands files in", "Lakehouse Files")
    Rel(fn_hs, bronze, "Lands files in", "OneLake API")
    Rel(fn_gads, bronze, "Lands files in", "OneLake API")
    Rel(orch, loader, "Runs after each landed window on", "notebook activity")
    Rel(loader, bronze, "Reads landing files from; appends tokenised rows to", "Spark, Delta")
    Rel(loader, vault, "Looks up or creates tokens in", "TDS, Entra token")
    Rel(loader, silver, "Reads the classification register from; writes quarantine references to", "Delta")
    Rel(orch, silver, "Reads registries and watermarks from; writes the run ledger to", "lakehouse tables")
    Rel(orch, relay, "Runs after each event job and star build", "notebook activity")
    Rel(relay, gold, "Reads business_event changes from", "Delta CDF")
    Rel(relay, silver, "Advances the outbox cursor in", "Delta")
    Rel(relay, sb, "Publishes events to the data-changed topic on", "AMQP")
    Rel(sem, gold, "Frames Delta versions from", "Direct Lake")
    Rel(orch, sem, "Reframes after each star build", "refresh API")

Legend

Elements

Element Type Technology Responsibility
Orchestrator Container Fabric Data Factory pipelines Schedules per tier from registries and watermarks; fans out; writes the run ledger; runs every other pipeline
Salesforce copy activity Container Fabric Data Factory copy activity, Salesforce objects connector Lands SystemModstamp windows and the Bulk API history as files
HubSpot adapter Container Azure Functions, .NET 10 isolated (runtime pending the WP0b PoCs, ADR 8) Keyset search inside last-modified windows, batch read, associations, webhooks, nudges, counts
Google Ads adapter Container Azure Functions, .NET 10 isolated (runtime pending PoC, ADR 8) Entity snapshots, trailing-window reports, change_event, totals; REST searchStream
Bronze loader Container Fabric notebook, Python and Spark The anonymisation gate and the only writer of Bronze (ADR 6)
lh_bronze ContainerDb Fabric Lakehouse, Delta Tokens only in tables; landing files hold identifiers for at most 7 days
lh_silver and control ContainerDb Fabric Lakehouse, Delta, CDF Typed state and history keyed by tokens; control schema
lh_gold ContainerDb Fabric Lakehouse, Delta, V-Order Star schema; business_event; Files/publications
Token vault ContainerDb Azure SQL Database, TDE with CMK, Entra-only, PIM The identifier-to-token mapping; the only place erasure must succeed
Semantic models Container Power BI, Direct Lake on OneLake Reports; RLS and OLS in the model (ADR 9)
Relay Container Fabric notebook, Python Publishes business_event change-feed rows to the topic (ADR 7)
Service Bus ContainerQueue Azure Service Bus Standard Session-enabled ingest-nudges queue; data-changed topic with per-consumer subscriptions

Key relationships

From To Intent Protocol / Technology
Orchestrator Copy activity, adapters Starts runs with (object, window, mode) Pipeline activities; HTTPS JSON
Adapters, copy activity lh_bronze (Files) Land JSONL pages with manifests Lakehouse Files; OneLake ADLS Gen2 API
Bronze loader Token vault Lookup-or-create tokens TDS with Entra token, batched
Bronze loader lh_bronze (Tables) Appends tokenised, deduplicated rows Spark, Delta
Relay Service Bus Publishes events with MessageId = event_id AMQP
Semantic models lh_gold Direct Lake framing OneLake

Notable architectural decisions

Assumptions