Acme Marketing Architecture

Acme Marketing Group — Marketing Data Ingestion Architecture

Acme Marketing Group — Marketing Data Ingestion Architecture

TOGAF ADM-aligned architecture for consolidating Salesforce, HubSpot and Google Ads data into a central lakehouse on Microsoft Fabric.

Status: Draft v0.4 (2026-10-27). ADRs 1 to 7 and 9 to 11 are Accepted by the Lead Architect (ADR 6 subject to the DPO sign-off on the Recital 26 position); ADR 8 awaits the runtime PoCs; ADR 12 (operations console) is Proposed. The repository is presented to the client, not handed over.

How this maps to the brief's expected deliverable

Assessment asks for Where it is answered
High-level architecture diagram Main document §5 and diagrams/
Ingestion approach for Salesforce, HubSpot, Google Ads ADR 3, integration contracts
Rationale and key design decisions decisions/ (one ADR per decision)
Trade-offs and alternatives Every ADR has a Considered Options table; platform trade-off in ADR 1; management rationale with verified costs in Fabric vs Databricks
Reliability, recovery, data integrity ADR 5, data architecture, control tables
Scalability and cost Main document §6.5, technology architecture
Assumptions, risks, questions Main document §9, risk register, open questions, assumptions register

TOGAF phase map

Phase Covered in Depth
Preliminary 00-intake-and-phase-plan.md, principles Light
A — Vision Main document §2, risk register, 01-context Full
B — Business Main document §3, business architecture Medium
C — Data Main document §4, data/ Full
C — Application Main document §5, application/ Full
D — Technology Main document §6, technology/ Full
E — Opportunities & Solutions Main document §7, roadmap Medium
F — Migration Planning Folded into E (greenfield; the only "migration" is the historical backfill) Light
G — Implementation Governance Main document §8, medallion governance, compliance checklist Medium
H — Change Management Main document §8, adding a source Light
Requirements Management requirements traceability Continuous

Folder index

Architecture/
├── README.md                                   this file
├── 00-intake-and-phase-plan.md                 TOGAF intake answered from the brief; phase proposal
├── Acme-Marketing-Ingestion-Architecture.md    main high-level document (stable; no vendor detail)
├── principles/architecture-principles.md
├── decisions/                                  ADRs, adr-tools naming, Structurizr-importable
├── diagrams/                                   C4 level docs (context, container, component, dynamic, deployment), Structurizr DSL, flow and sequence diagrams
├── reference/                                  infographics: Fabric storage modes, erasure on a lakehouse, Azure data movement options
├── business/business-architecture.md           capabilities, processes, freshness tiers, "important change" catalogue
├── data/                                       data architecture, domain model, classification (personal data), Gold schema, control tables
├── application/                                component catalogue, integration contracts per source, event contracts, operations console design (ADR 12, proposed)
├── technology/                                 technology-architecture.md (Fabric items, Azure services, security, observability, IaC); cost-estimate.md (live rates, sizing, worksheet)
├── migration/roadmap.md                        work packages, historical backfill plan, transition states
├── governance/                                 traceability, risks, medallion rules, promotion checklist, open questions, WP0b PoC brief, change process for adding a source
└── appendicies/                                assumptions register, assumed business flow, Fabric vs Databricks management rationale, management reports (standalone HTML)

Reading order for a reviewer with 20 minutes

  1. Main document (executive summary first).
  2. ADR 1 platform, ADR 3 ingestion per source, ADR 5 reconcile and reload.
  3. Open questions.

Run locally with Podman

Every command runs from the repository root. Start the Podman machine first with podman machine start. The commands are written for PowerShell; in bash, replace ${PWD} with $(pwd).

Structurizr: the C4 model, ADRs and diagram documents

podman compose -f Architecture/diagrams/structurizr/compose.yml up

Open http://localhost:8080. If port 8080 is taken, set $env:STRUCTURIZR_PORT = '8081' and run the same command again. Stop the server with Ctrl+C, or with podman compose -f Architecture/diagrams/structurizr/compose.yml down.

compose.yml runs the local command of structurizr/structurizr, which replaces Structurizr Lite (Lite no longer starts). The DSL is read from its own folder. The ADRs (!adrs ../../decisions) and the Markdown files in diagrams/ (!docs ..) are mounted read-only next to it. Each Markdown file is mounted on its own line, so a new .md file in diagrams/ needs a new line in compose.yml. Structurizr writes workspace.json and .structurizr/ next to the DSL; both are gitignored, so commit only the DSL.

The server re-parses the workspace only when the modification time of workspace.dsl changes. If you edit or add an ADR or a diagram document while it runs, nothing changes on refresh. Touch the DSL and reload the page:

(Get-Item Architecture/diagrams/structurizr/workspace.dsl).LastWriteTime = Get-Date

Every .md file in decisions/ is imported as an ADR. Its file name must start with four digits (the importer reads the ID from them). The status is the first word of the first non-empty line under any heading that starts with ## Status, and it defaults to Proposed when there is none.

The GitHub Pages site

These are the steps of the Pages workflow, run locally. The output goes to build/, which is gitignored.

# 1. Export the Structurizr views as Mermaid (Podman does not create the host folder itself)
New-Item -ItemType Directory -Force build/views | Out-Null
podman run --rm -v "${PWD}/EnterpriseGrade/Architecture:/ws" -v "${PWD}/build/views:/out" `
  docker.io/structurizr/structurizr:latest export `
  -workspace /ws/diagrams/structurizr/workspace.dsl -format mermaid -output /out

# 2. Build the site with pandoc
podman run --rm -e GITHUB_REPOSITORY=Sartor87/ea-assessment-marketing-ingestion `
  -v "${PWD}:/repo" -w /repo --entrypoint bash docker.io/pandoc/core:latest-ubuntu `
  .github/pages/build-architecture-site.sh build/views build/site

# 3. Serve it
podman run --rm -p 8088:80 -v "${PWD}/build/site:/usr/share/nginx/html:ro" docker.io/library/nginx:alpine

Open http://localhost:8088. The C4 views on the index page and the Mermaid blocks in the documents are rendered in the browser, so they need internet access to load Mermaid from jsDelivr.