BLUEPRINT · The Solution Architect's Codex
Ch 09 · Data Architecture
Chapter 09 · Where the value (and the risk) lives

Data Architecture — storage, movement, meaning, ownership

Application architecture decides how software runs; data architecture decides what it knows. Every other architectural choice — services, events, AI agents, analytics — ultimately depends on where data lives, who owns it, how it moves, how it is governed, and how it is found. This chapter is the map of that territory.

9.1 · The data architecture stack

TierPurposeTypical tech
Operational (OLTP)Run the business — every transaction, low latencyPostgreSQL, MySQL, Oracle, SQL Server, MongoDB, DynamoDB, Spanner
Analytical (OLAP / lakehouse)Understand the business — aggregations, historySnowflake, Databricks, BigQuery, Redshift, Synapse, ClickHouse
Serving (low-latency reads)Vectors, search, caches, feature storesRedis, Elasticsearch / OpenSearch, pgvector, Qdrant, Pinecone, Feast
StreamingMove data in motion; react in real timeKafka, Pulsar, Flink, Kafka Streams, Materialize, RisingWave, ksqlDB
Governance & catalogDiscover, classify, secure, lineageCollibra, Alation, Atlan, DataHub, Amundsen, OpenLineage, Unity Catalog

9.2 · DAMA-DMBOK 2 — the body of knowledge

The DAMA Data Management Body of Knowledge, 2nd edition (2017), is the standard reference. Its "wheel" lists 11 knowledge areas around a centre of Data Governance.

#Knowledge areaConcerns
1Data Governance (centre)Authority, decision rights, stewardship
2Data ArchitectureModels, blueprints, standards
3Data Modeling & DesignConceptual / logical / physical models
4Data Storage & OperationsDBA, backups, performance
5Data SecurityAccess, encryption, classification
6Data Integration & InteroperabilityETL/ELT, CDC, streaming, APIs
7Documents & ContentUnstructured assets, ECM
8Reference & Master DataMDM, code lists, taxonomies
9Data Warehousing & BIAnalytical platforms, dashboards
10MetadataBusiness, technical, operational metadata
11Data QualityProfiling, measurement, remediation

9.3 · Warehouse vs Lake vs Lakehouse

AspectData warehouseData lakeLakehouse
StorageProprietary columnarObject store (S3, GCS, ADLS), open files (Parquet, ORC)Object store + ACID table format
SchemaSchema-on-writeSchema-on-readSchema-on-write with evolution
WorkloadSQL BIML, batch, raw landingBI + ML on one copy
ExamplesSnowflake, Redshift, BigQuery, Synapse, TeradataRaw HDFS / S3 zoneDatabricks (Delta Lake), Apache Iceberg, Apache Hudi

Two historical schools shaped warehouse modelling. Bill Inmon's Building the Data Warehouse (1992) prescribes a normalised (3NF) enterprise warehouse with downstream subject-area marts ("CIF" — Corporate Information Factory). Ralph Kimball's The Data Warehouse Toolkit (1996) prescribes denormalised dimensional models (star and snowflake schemas) built bottom-up by business process. Most real warehouses are hybrid.

The lakehouse, formalised in the 2021 paper by Armbrust, Ghodsi, Xin & Zaharia, brings ACID transactions, schema enforcement, time travel, and BI performance to data-lake storage via open table formats (Delta Lake, Apache Iceberg, Apache Hudi). Iceberg has emerged as the de-facto open standard.

9.4 · Data Mesh — Zhamak Dehghani (2019)

Data Mesh is a socio-technical paradigm. Where a warehouse centralises data ownership in a single team, a mesh decentralises it to the business domains that produce the data. Four principles:

  1. Domain ownership — each business domain owns its analytical data, end-to-end.
  2. Data as a product — datasets are productised: discoverable, addressable, trustworthy, self-describing, interoperable, secure, valuable.
  3. Self-serve data platform — a platform team provides the substrate (storage, compute, catalog, lineage, contracts) so domains can ship without re-inventing.
  4. Federated computational governance — policies are global and codified; enforcement is automated and per-product.
When mesh is wrong
Small organisations, simple data needs, or domains without engineering capacity will pay mesh's organisational cost without earning its benefit. A central lakehouse with domain-aligned schemas is often enough.

9.5 · Data Fabric

The Gartner-coined Data Fabric is a metadata-driven integration layer that uses active metadata, knowledge graphs, and ML to recommend and automate data integration across distributed sources. Where Mesh is an organisational answer (push ownership outward), Fabric is a technical answer (let metadata weave heterogeneous sources together). The two are not mutually exclusive — a fabric platform can serve a mesh.

9.6 · Master Data Management

MDM establishes a single, authoritative view of core business entities — Customer, Product, Supplier, Employee, Asset, Location. Without MDM, the same customer exists three times across CRM, billing, and support, and no report agrees with another. Four canonical architectures:

StyleHow it worksTrade-off
RegistryMDM holds only cross-references; source systems remain authoritativeCheap, read-only; slow to resolve cross-system queries
ConsolidationMDM consolidates copies for reporting only; source systems still masterGood for analytics, not transactional
CoexistenceMDM stores golden record + propagates changes back to sourcesMost common in practice; bi-directional sync is hard
Centralised (transactional hub)MDM is the system of record; sources read from itStrongest consistency; biggest migration

9.7 · Data governance, contracts, and quality

Governance assigns rights and responsibilities for data. The standard roles:

  • Data Owner — accountable; usually a business leader; signs off on policy.
  • Data Steward — responsible; defines and curates the data, resolves quality issues.
  • Data Custodian — operates and protects the storage; usually an IT / platform role.
  • Data Consumer — uses the data under defined terms.

A modern operationalisation is the data contract (popularised by Andrew Jones, Chad Sanderson 2022): a producer-published, versioned, machine-readable specification of a dataset's schema, semantics, SLAs, quality expectations, and PII classification. Consumers depend on the contract, not the underlying table.

Data quality dimensions (DAMA / ISO 8000)

DimensionQuestion it answers
AccuracyDoes the value match reality?
CompletenessAre required values present?
ConsistencyDo related values agree across stores?
TimelinessIs the data fresh enough for its use?
ValidityDoes the value conform to its rules / format?
UniquenessIs each real-world entity represented once?

9.8 · Lineage & catalogs

Data lineage records where each datum came from and where it went — the auditable graph of producers, transformations, and consumers. OpenLineage (LF AI & Data) is the open standard; Marquez is its reference store. Catalogs make data discoverable and assign meaning, ownership, and trust scores.

ToolStyle
Collibra, Alation, InformaticaEnterprise, governance-first
Atlan, Select Star, CastorModern SaaS, collaboration-first
DataHub (LinkedIn), Amundsen (Lyft), OpenMetadataOpen source, engineer-led
Unity Catalog (Databricks), Polaris (Snowflake)Platform-native, Iceberg-aware

9.9 · PII, classification & privacy controls

Classification is the first control: you cannot protect what you have not labelled. A typical four-level scheme:

LevelExamplesControls
PublicMarketing pages, pricesNone special
InternalEmployee directory, internal docsAuthenticated access
ConfidentialCustomer PII, contractsRBAC + encryption + audit
RestrictedPayment card data, health records, secretsRBAC + ABAC + encryption + tokenisation + DLP + strict audit

Privacy-preserving techniques: encryption at rest (AES-256) and in transit (TLS 1.3); tokenisation (replace PII with a non-reversible token, vault holds mapping) — required by PCI-DSS for PAN data; masking (irreversible obfuscation for non-production environments); k-anonymity / l-diversity / t-closeness (statistical de-identification); differential privacy (mathematically bounded leakage — Apple, Google, US Census). Regulatory anchors: GDPR (EU 2018), CCPA/CPRA (California), HIPAA (US healthcare), PCI-DSS v4.0 (payments), DPDP Act (India 2023).

9.10 · Real-time vs batch — Lambda & Kappa

The Lambda architecture (Nathan Marz, 2011) maintains two pipelines — a batch layer for accurate, large-scale historical computation, and a speed layer for low-latency approximate updates — merged at query time. The Kappa architecture (Jay Kreps, 2014) argues against the duplication: keep only the streaming pipeline, and reprocess history by replaying the log when needed.

Change Data Capture (CDC) — extracted from a database's WAL/binlog by Debezium, AWS DMS, Striim, or Estuary — is the bridge that turns operational stores into streaming sources without polling. Streaming compute today: Apache Flink (stateful, exactly-once, SQL), Kafka Streams (JVM library, no separate cluster), Materialize and RisingWave (incrementally maintained materialised views over streams), Apache Beam (unified batch/stream API, runs on Flink/Dataflow/Spark).

Lambda vs Kappa

Lambda batch layer speed layer serve / merge two pipelines, two codepaths Kappa log / Kafka stream proc. one pipeline, replay history

9.11 · Vector + retrieval (the AI tier)

Modern AI applications add a fifth tier: a vector + retrieval store for semantic search and RAG. Choices range from "use Postgres" to dedicated vector databases.

OptionNotes
pgvectorPostgres extension; HNSW + IVFFlat indexes; right answer if you already run Postgres
Qdrant, Weaviate, Milvus, PineconeDedicated vector DBs; richer filtering, scale, multi-tenant
OpenSearch / Elasticsearch k-NNHybrid lexical + vector search in one index
VespaTensor / vector + structured + text, low-latency serving
LanceDB, ChromaLocal-first / embedded for dev and small footprints

Cross-reference the AI Codex for chunking strategies, embedding-model choice, hybrid retrieval (BM25 + cosine), reranking with cross-encoders, and the evaluation harness (Ragas, TruLens, DeepEval).

9.12 · Self-check

Q1 · Which of the following is NOT one of Data Mesh's four principles?
Domain ownership
Data as a product
Self-serve data platform
Centralised metadata catalog
Q2 · Kimball's dimensional modelling is best characterised as…
Top-down, normalised (3NF) enterprise warehouse
Bottom-up, denormalised star/snowflake schemas by business process
Schema-on-read raw lake zone
ACID table format over object storage
Q3 · Which MDM style stores the golden record and propagates changes back to source systems?
Registry
Consolidation
Coexistence
Federation
Q4 · The Kappa architecture's main argument against Lambda is…
Batch is faster than streaming for analytics
Two pipelines duplicate code; one streaming pipeline + replay is enough
Streaming guarantees stronger consistency than batch
Lambda cannot handle exactly-once delivery