9.1 · The data architecture stack
| Tier | Purpose | Typical tech |
|---|---|---|
| Operational (OLTP) | Run the business — every transaction, low latency | PostgreSQL, MySQL, Oracle, SQL Server, MongoDB, DynamoDB, Spanner |
| Analytical (OLAP / lakehouse) | Understand the business — aggregations, history | Snowflake, Databricks, BigQuery, Redshift, Synapse, ClickHouse |
| Serving (low-latency reads) | Vectors, search, caches, feature stores | Redis, Elasticsearch / OpenSearch, pgvector, Qdrant, Pinecone, Feast |
| Streaming | Move data in motion; react in real time | Kafka, Pulsar, Flink, Kafka Streams, Materialize, RisingWave, ksqlDB |
| Governance & catalog | Discover, classify, secure, lineage | Collibra, 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 area | Concerns |
|---|---|---|
| 1 | Data Governance (centre) | Authority, decision rights, stewardship |
| 2 | Data Architecture | Models, blueprints, standards |
| 3 | Data Modeling & Design | Conceptual / logical / physical models |
| 4 | Data Storage & Operations | DBA, backups, performance |
| 5 | Data Security | Access, encryption, classification |
| 6 | Data Integration & Interoperability | ETL/ELT, CDC, streaming, APIs |
| 7 | Documents & Content | Unstructured assets, ECM |
| 8 | Reference & Master Data | MDM, code lists, taxonomies |
| 9 | Data Warehousing & BI | Analytical platforms, dashboards |
| 10 | Metadata | Business, technical, operational metadata |
| 11 | Data Quality | Profiling, measurement, remediation |
9.3 · Warehouse vs Lake vs Lakehouse
| Aspect | Data warehouse | Data lake | Lakehouse |
|---|---|---|---|
| Storage | Proprietary columnar | Object store (S3, GCS, ADLS), open files (Parquet, ORC) | Object store + ACID table format |
| Schema | Schema-on-write | Schema-on-read | Schema-on-write with evolution |
| Workload | SQL BI | ML, batch, raw landing | BI + ML on one copy |
| Examples | Snowflake, Redshift, BigQuery, Synapse, Teradata | Raw HDFS / S3 zone | Databricks (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:
- Domain ownership — each business domain owns its analytical data, end-to-end.
- Data as a product — datasets are productised: discoverable, addressable, trustworthy, self-describing, interoperable, secure, valuable.
- Self-serve data platform — a platform team provides the substrate (storage, compute, catalog, lineage, contracts) so domains can ship without re-inventing.
- Federated computational governance — policies are global and codified; enforcement is automated and per-product.
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:
| Style | How it works | Trade-off |
|---|---|---|
| Registry | MDM holds only cross-references; source systems remain authoritative | Cheap, read-only; slow to resolve cross-system queries |
| Consolidation | MDM consolidates copies for reporting only; source systems still master | Good for analytics, not transactional |
| Coexistence | MDM stores golden record + propagates changes back to sources | Most common in practice; bi-directional sync is hard |
| Centralised (transactional hub) | MDM is the system of record; sources read from it | Strongest 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)
| Dimension | Question it answers |
|---|---|
| Accuracy | Does the value match reality? |
| Completeness | Are required values present? |
| Consistency | Do related values agree across stores? |
| Timeliness | Is the data fresh enough for its use? |
| Validity | Does the value conform to its rules / format? |
| Uniqueness | Is 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.
| Tool | Style |
|---|---|
| Collibra, Alation, Informatica | Enterprise, governance-first |
| Atlan, Select Star, Castor | Modern SaaS, collaboration-first |
| DataHub (LinkedIn), Amundsen (Lyft), OpenMetadata | Open 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:
| Level | Examples | Controls |
|---|---|---|
| Public | Marketing pages, prices | None special |
| Internal | Employee directory, internal docs | Authenticated access |
| Confidential | Customer PII, contracts | RBAC + encryption + audit |
| Restricted | Payment card data, health records, secrets | RBAC + 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
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.
| Option | Notes |
|---|---|
| pgvector | Postgres extension; HNSW + IVFFlat indexes; right answer if you already run Postgres |
| Qdrant, Weaviate, Milvus, Pinecone | Dedicated vector DBs; richer filtering, scale, multi-tenant |
| OpenSearch / Elasticsearch k-NN | Hybrid lexical + vector search in one index |
| Vespa | Tensor / vector + structured + text, low-latency serving |
| LanceDB, Chroma | Local-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).