Acme Marketing Ingestion Architecture — Simplicity Grade (Small Business)
Acme Marketing Ingestion Architecture — Simplicity Grade (Small Business)
Author: Kiril Iliev, Enterprise Architect
Version: 2.0 (simplified)
Paradigm: The least architecture that is still reliable
and privacy-aware: serverless containers, a scheduler and a
bucket.
Companion Architecture: ../EnterpriseGrade/
(full TOGAF / Microsoft Fabric / dedicated token vault)
The whole architecture in one picture
flowchart LR
S["<b>Your tools</b><br/>Salesforce, HubSpot,<br/>Google Ads"] -->|"every 30 min"| J["<b>Small scheduled job</b><br/>Cloud Run"]
J --> D[("<b>Data store</b><br/>Cloud Storage")]
D --> B[("<b>Reports database</b><br/>BigQuery")]
B --> R["<b>Dashboards</b><br/>Looker Studio or Power BI"]
J -. "if something fails" .-> A["<b>Alert</b><br/>e-mail or Slack"]
1. Two Paradigms, One Objective
The Acme Marketing Group assessment is answered at two ends of the scale. Architectural weight, cost and operations should match the organisation. Acme is a marketing company with a small team, so this grade keeps only what it needs.
| Dimension | EnterpriseGrade/ |
SmallBusinessGrade/ |
|---|---|---|
| Target organisation | Regulated enterprise, central IT, formal governance | Marketing company, small team, fast time to value |
| Framework | Full TOGAF, 12 ADRs, C4 Structurizr model | Six short ADRs, lean C4 diagrams |
| Platform | Microsoft Fabric, Azure Functions, Service Bus | Google Cloud: Cloud Scheduler, Cloud Run jobs, Cloud Storage, BigQuery (Azure and AWS equivalents in Architecture/01 section 12) |
| Orchestration | Fabric pipelines, event bus | Cloud Scheduler triggers jobs; no orchestration server |
| Transformation | Fabric notebooks, Delta | Python DataFrames + delta-rs, no Spark |
| Ingestion | Custom .NET micro-ETL, copy activities | Python adapter pattern
(BaseSourceAdapter), one thin class per source |
| GDPR | Dedicated token-vault database | Keyed HMAC pseudonyms, no names in Silver, 21-day raw retention, erasure script. Pseudonymised data is still personal data. |
| Operations | Service Bus, SSE gateway, console | Cloud Monitoring alert on failure to e-mail or Slack/Teams |
| Serving | Fabric, Direct Lake | BigQuery with Looker Studio (free) or Power BI |
| Monthly infrastructure | ~€1,500–2,500 (Fabric F8/F16) | ~$5–25 indicative, excluding engineering time |
| Local development | Cloud-dependent | Run and debug locally with pytest and VS Code |
2. Philosophy
- Few moving parts. A scheduler, container jobs, a bucket and BigQuery. Nothing runs between jobs.
- Adapter pattern. The core is decoupled from SaaS APIs; a new source is one Python class (1–2 days).
- Debuggability first. Python DataFrames can be inspected and unit-tested; SQL-only pipelines over nested JSON are hard to debug.
- Open formats, low lock-in. Delta tables in a bucket; the code is portable across clouds.
- Honest about the trade-off. The saving is on infrastructure. Someone must own the pipeline, otherwise a managed connector service is the cheaper choice (Architecture/01 section 12, option E).
3. Directory Layout
Architecture/01-Acme-Simplicity-Architecture.md: the architecture, including hosting options and why Google Cloud is the recorded default.02-Architectural-Rationales.md: ADR-S01 to ADR-S06.03-Architecture-Review.md: review of v1.0, with the status of each finding.diagrams/: C4 container, sequence and class diagrams.
src/: reference skeleton of the adapter pattern, not a deployed system.acme_simplicity/: adapters, landing sink, Silver/Gold transforms, DeltaMERGE, erasure ledger, watermark driver.tests/:pytestsuite with mocked HTTP.
The Cloud Run entry point, the Cloud Storage sink, the Secret Manager client and the BigQuery loader are described in the architecture but are not in the skeleton. The Google Ads adapter has not run against a live account.