Diagrams
Diagrams
C4 model of the Marketing Data Platform. Single source of
truth: structurizr/workspace.dsl.
The Markdown documents below carry a Mermaid rendering of each view so
GitHub, GitLab, Obsidian and VS Code (with the Markdown Preview Mermaid
Support extension) show them without Structurizr; keep both in sync when
the model changes.
Validation: all fifteen views below were reviewed and accepted by the Lead Architect on 2026-10-26, including the five container views restructured the same day (overview plus four audience views, the model's groups as boundaries, the Proposed console drawn dashed). A change to a view reopens it for review.
| Level | Document | Structurizr view key |
|---|---|---|
| 1 | 01-context.md | Context |
| 2 | 02-container.md | Containers |
| 2 | 02-container-data-engineering.md | Containers-DataEngineering |
| 2 | 02-container-business.md | Containers-Business |
| 2 | 02-container-downstream.md | Containers-Downstream |
| 2 | 02-container-privacy.md | Containers-Privacy |
| 3 | 03-component-hubspot-adapter.md | Components-HubSpotAdapter |
| 3 | 03-component-bronze-loader.md | Components-BronzeLoader |
| 3 | 03-component-gold-job.md | Components-GoldJob |
| Dynamic | 05-dynamic-hubspot-webhook-and-poll.md | Dynamic-WebhookAndPoll |
| Dynamic | 05-dynamic-reconcile-and-reload.md | Dynamic-ReconcileAndReload |
| Dynamic | 05-dynamic-downstream-notification.md | Dynamic-DownstreamNotification |
| Dynamic | 05-dynamic-publish-and-restate.md | Dynamic-PublishAndRestate |
| Dynamic | 05-dynamic-erasure.md | Dynamic-Erasure |
| Deployment | 06-deployment-production.md | Deployment-Production |
Supporting, non-C4 diagrams:
- layers-overview.md: one band per layer, left to right, with icons for each source and medallion layer (flowchart; the entry point for a first reader).
- data-flow-medallion.md: layer flow with push and poll paths (flowchart; embedded in the main document).
- sequence-hubspot-webhook-and-poll.md, sequence-reload-and-reconcile.md, sequence-downstream-notification.md: UML sequence diagrams with branches (alt, loop, par) that C4 dynamic views deliberately omit.
Run Structurizr
podman compose -f Architecture/diagrams/structurizr/compose.yml upOpen http://localhost:8080. The workspace imports the ADRs
(!adrs ../../decisions) into the Decisions tab and these
Markdown files (!docs ..) into the Documentation tab.
Details, including the Pages site build, are in Run locally with
Podman.
Export views
podman run --rm -v "${PWD}/Architecture:/ws" docker.io/structurizr/structurizr:latest export -workspace /ws/diagrams/structurizr/workspace.dsl -format mermaid -output /ws/diagrams/structurizr/exportUse -format plantuml/c4plantuml for C4-PlantUML instead.
Use the Mermaid export to refresh the code blocks in the level documents
after a model change; structurizr/export/ is
gitignored.
Conventions used in every view
- Colours: green = runs on the Fabric capacity; blue = runs on Azure consumption services; grey = external system; dark blue = person.
- Shapes: cylinder = data store (lakehouse); pipe = queue or topic; rounded grey box = infrastructure node with no container of ours.
- Every relationship is one-way and labelled with its intent and, between containers, its protocol.
- Abbreviations: CDF = Delta Change Data Feed; SCD2 = slowly changing dimension type 2; HMAC = keyed hash used for the vault lookup hash and webhook signatures (tokens themselves are random); SSE = Server-Sent Events; DLQ = dead-letter queue; GAQL = Google Ads Query Language; AMQP = the Service Bus wire protocol.