Arquitectura de Datos

Data Mesh: Hands-On Project, Building a Complete Data Architecture on AWS from Scratch

A comprehensive hands-on capstone project to design, build, and verify an end-to-end Data Mesh architecture on AWS using S3, Parquet, Glue, Athena, Lake Formation, Terraform, YAML contracts, and Python validations.

Content explored 0%
18px

The indicator keeps the furthest percentage explored; marking the article complete is your choice.

When "Deploying AWS Services" Does Not Equal Having a Data Mesh

An engineering team decides to build CommerceFlow's new data platform by creating three Amazon S3 buckets (sales, payments, inventory), running an AWS Glue crawler over raw CSV dumps, and opening Amazon Athena so any analyst can query everything using a shared IAM role. The following week, they present the environment claiming they "now have a Data Mesh on AWS."

When the first monthly financial close arrives, that setup collapses across four specific fault lines:

  1. Unconsolidated 1:N Join (Fan-out trap): In confirmed-payments, a single order (order_id) has a failed attempt, a duplicate capture caused by a gateway retry, two partial payments, and a partial refund. When an analyst joins confirmed-payments directly to sales-orders on order_id and computes SUM(o.total_amount), the order amount is multiplied by the number of payment rows, inflating reported sales by 42%.
  2. Permission Bypass via Direct S3 Access: The team configured table permissions in AWS Lake Formation to hide sensitive columns, but forgot to revoke direct s3:GetObject IAM permissions on the bucket and failed to register the S3 location under Lake Formation enforcement. Any user with the AWS CLI downloaded the raw Parquet files directly, bypassing the catalog entirely.
  3. Missing Contracts, Granularity, and Invariants: Nobody declared what a single row represents in each table, how multiple currencies (USD, EUR) are handled, or who is accountable when a refund exceeds the original capture.
  4. Confusing a Technical Metastore with a Data Product Catalog: AWS Glue Data Catalog recorded physical column names and types, but lacked domain ownership, semantic versioning, SLOs, privacy classification, and explicit lineage to the derived product.

This capstone project—Chapter 30 and the finale of the Data Mesh series—bridges that gap step by step. A collection of AWS services is not a Data Mesh; a Data Mesh is the verifiable combination of domain ownership, contracted products with explicit granularity, a reusable platform-as-code, and automated computational governance. Throughout this hands-on guide, you will design, build, and verify the complete reference architecture for CommerceFlow from scratch.


Global Architecture of the CommerceFlow Capstone Project

To keep the project 100% reproducible at minimal cost (pennies in on-demand serverless services, plus a self-contained local engine for contracts and synthetic data), we organize four distinct domains and four Data Products with strictly defined granularity:

+-----------------------------------------------------------------------------------+
|                     PRODUCER DOMAINS (SOURCE-ALIGNED)                             |
|                                                                                   |
|  1. SALES Domain                2. PAYMENTS Domain          3. INVENTORY Domain   |
|  Product: sales-orders (v1)     Product: confirmed-payments Product: inventory-   |
|  Grain: 1 row = 1 order_id      Grain: 1 row = 1 payment_tx availability (v1)     |
|  S3: .../products/sales/        S3: .../products/payments/   Grain: 1 row =       |
|      sales_orders/v1/               confirmed_payments/v1/   (sku_id, warehouse)  |
+---------------+------------------------------+------------------------+-----------+
                |                              |                        |
                +--------------+---------------+                        |
                               | (Consumes published interfaces         |
                               v  via Athena + Lake Formation)          |
+--------------------------------------------------------------+        |
|        4. FINANCIAL ANALYTICS DOMAIN (DERIVED PRODUCT)       |        |
|        Derived Product: paid-sales (v1)                      |        |
|        Owner: Finance & Commercial Analytics Domain          |        |
|        Grain: 1 row = 1 order_id (consolidates 1:N payments, |        |
|               subtracts refunds, deduplicates & reconciles)  |        |
+--------------------------------------------------------------+        |
                               |                                        |
                               +--------------------+-------------------+
                                                    |
                                                    v
+-----------------------------------------------------------------------------------+
|            PLATFORM & FEDERATED GOVERNANCE PLANE (TERRAFORM + CI/CD)              |
| - S3 Storage Zones (ingestion / staging / products) + KMS Encryption              |
| - Technical registration in AWS Glue + YAML Product Manifests (Catalog/Lineage)   |
| - Authorization via AWS Lake Formation (no direct S3 bypass) + Health Report      |
+-----------------------------------------------------------------------------------+

Strict Definition of the 4 Data Products and Their Business Rules

Data ProductOwning DomainTypeExact Granularity (Logical Primary Key)Key Semantic and Monetary Rule
sales-orderssalesSource-Aligned1 row per order_id (consolidated current order state).order_total_amount is DECIMAL(12,2) in currency. A CONFIRMED status represents a commercial commitment, not collected cash or recognized accounting revenue.
confirmed-paymentspaymentsSource-Aligned1 row per payment_tx_id (settled financial event: CAPTURE or REFUND).A single order_id can have multiple rows (partial captures and refunds). Must be deduplicated by payment_tx_id before aggregation.
inventory-availabilityinventorySource-Aligned1 row per (sku_id, warehouse_id) at the published snapshot timestamp.available_qty = on_hand_qty - reserved_qty. Must never be negative in the published product.
paid-salesfinance-analyticsDerived / Aggregate1 row per order_id (joins sales-orders against payments pre-consolidated by order_id and currency).Computes net_paid_amount = captured_amount - refunded_amount. Sets is_fully_paid = true only when order_status = 'CONFIRMED', currencies match, and net_paid_amount = order_total_amount.

Reproducible Repository Structure

We organize the entire project inside a single version-controlled repository that cleanly separates Self-Serve Data Platform modules (infra/) from domain contracts and transformations (contracts/, src/):

commerceflow-datamesh-aws/
├── contracts/
│   ├── sales-orders.contract.yaml
│   ├── confirmed-payments.contract.yaml
│   ├── inventory-availability.contract.yaml
│   └── paid-sales.contract.yaml
├── src/
│   ├── generate_and_validate_mesh.py   # Parquet generator, contract validator & paid-sales engine
│   └── sql/
│       ├── publish_paid_sales.sql      # Athena CTAS transformation free of 1:N fan-out
│       └── reconciliation_checks.sql   # Cross-domain audit queries
├── infra/
│   ├── main.tf                         # Per-product module invocations
│   └── modules/
│       └── data_product_storage_glue_lf/
│           ├── main.tf                 # S3, KMS, Glue Table & Lake Formation registration
│           └── variables.tf
└── .github/
    └── workflows/
        └── datamesh-ci-cd.yml          # Contract validation, tests & Terraform CI/CD pipeline

Step 1: Declarative Product Contracts and Explicit Lineage

Because AWS Glue Data Catalog stores physical technical metadata (columns, data types, and S3 location) but is not by itself a complete enterprise Data Product catalog, each product includes a versioned YAML manifest whose attributes synchronize into Glue table parameters and the discovery portal:

# contracts/paid-sales.contract.yaml
apiVersion: datamesh.commerceflow.io/v1
kind: DataProductContract
metadata:
  productId: paid-sales
  version: 1.0.0
  domain: finance-analytics
  ownerEmail: finance-data-owners@commerceflow.example
  classification: CONFIDENTIAL_FINANCIAL
  description: >
    Official derived product reconciling confirmed Sales orders with settled Payments
    captures and refunds at a strict granularity of one row per order_id.

upstreamLineage:
  - productId: sales-orders
    domain: sales
    minVersion: 1.0.0
    joinKey: order_id
  - productId: confirmed-payments
    domain: payments
    minVersion: 1.0.0
    joinKey: order_id

storageAndCatalog:
  s3Zone: products
  s3Prefix: s3://commerceflow-mesh-prod-111122223333/products/finance-analytics/paid_sales/v1/
  format: PARQUET
  compression: SNAPPY
  glueDatabase: commerceflow_finance_analytics_prod
  glueTable: paid_sales_v1
  partitionKeys: [currency]

schema:
  primaryKey: [order_id]
  columns:
    - name: order_id
      type: string
      nullable: false
      pattern: "^ORD-[0-9]{4}$"
    - name: customer_id
      type: string
      nullable: false
      classification: PSEUDONYMIZED_PII
    - name: order_status
      type: string
      nullable: false
      allowedValues: [CONFIRMED, CANCELLED, PENDING]
    - name: order_total_amount
      type: decimal(12,2)
      nullable: false
    - name: captured_amount
      type: decimal(12,2)
      nullable: false
    - name: refunded_amount
      type: decimal(12,2)
      nullable: false
    - name: net_paid_amount
      type: decimal(12,2)
      nullable: false
    - name: payment_settlement_status
      type: string
      nullable: false
      allowedValues: [FULLY_PAID, PARTIALLY_PAID, REFUNDED, UNPAID, CURRENCY_MISMATCH]
    - name: is_fully_paid
      type: boolean
      nullable: false
    - name: order_occurred_at
      type: timestamp
      nullable: false
    - name: last_payment_occurred_at
      type: timestamp
      nullable: true
    - name: published_at
      type: timestamp
      nullable: false
    - name: currency
      type: string
      nullable: false
      allowedValues: [USD, EUR]

qualityAndSemanticRules:
  - id: pk_uniqueness
    type: technical
    rule: "COUNT(*) == COUNT(DISTINCT order_id)"
  - id: net_paid_formula
    type: semantic
    rule: "net_paid_amount == captured_amount - refunded_amount"
  - id: no_over_refund
    type: semantic
    rule: "refunded_amount <= captured_amount"
  - id: fully_paid_invariant
    type: semantic
    rule: "is_fully_paid == true IMPLIES (order_status == 'CONFIRMED' AND net_paid_amount == order_total_amount)"

serviceLevelObjectives:
  freshnessMaxHours: 1
  completenessMinPct: 100.0

Step 2: Synthetic Data Generation, Contract Validation, Parquet Output, and Operational Report in Python

The following Python script (src/generate_and_validate_mesh.py) is self-contained and executable. It fulfills five core responsibilities in the project:

  1. Generates realistic synthetic datasets for sales-orders, confirmed-payments (including a network retry duplicate, partial captures, and a refund), and inventory-availability.
  2. Executes payment pre-consolidation and builds the derived product paid-sales while avoiding the 1:N fan-out multiplication trap.
  3. Enforces technical checks (schema, non-nullability, primary-key uniqueness) and semantic rules (net paid formula, no over-refunds, non-negative stock).
  4. Writes certified datasets in Apache Parquet format (using pyarrow when installed, or producing a structured local verification artifact) ready for Amazon S3 upload.
  5. Emits the operational observability and publication JSON report recording row counts, freshness, and contract compliance.
# file: src/generate_and_validate_mesh.py
# Requirements: Python 3.10+ (standard library; optionally uses pyarrow if installed to write .parquet)

from __future__ import annotations
from dataclasses import dataclass, asdict
from datetime import datetime, timezone
from decimal import Decimal
import json
from pathlib import Path
from typing import Any


# 1. Synthetic input datasets (simulating clean staging extracts per domain)
RAW_SALES_ORDERS: list[dict[str, Any]] = [
    {
        "order_id": "ORD-1001",
        "customer_id": "CUST-01",
        "order_status": "CONFIRMED",
        "order_total_amount": Decimal("150.00"),
        "currency": "USD",
        "order_occurred_at": "2026-11-14T09:00:00Z",
    },
    {
        "order_id": "ORD-1002",
        "customer_id": "CUST-02",
        "order_status": "CONFIRMED",
        "order_total_amount": Decimal("200.00"),
        "currency": "USD",
        "order_occurred_at": "2026-11-14T09:15:00Z",
    },
    {
        "order_id": "ORD-1003",
        "customer_id": "CUST-03",
        "order_status": "CONFIRMED",
        "order_total_amount": Decimal("90.00"),
        "currency": "EUR",
        "order_occurred_at": "2026-11-14T09:30:00Z",
    },
    {
        "order_id": "ORD-1004",
        "customer_id": "CUST-04",
        "order_status": "CANCELLED",
        "order_total_amount": Decimal("75.00"),
        "currency": "USD",
        "order_occurred_at": "2026-11-14T09:45:00Z",
    },
]

# Includes a transmission duplicate (PAY-5001 repeated), two partial captures on ORD-1002, and a refund
RAW_PAYMENT_EVENTS: list[dict[str, Any]] = [
    {
        "payment_tx_id": "PAY-5001",
        "order_id": "ORD-1001",
        "payment_type": "CAPTURE",
        "amount": Decimal("150.00"),
        "currency": "USD",
        "payment_occurred_at": "2026-11-14T09:01:00Z",
    },
    # Exact duplicate of PAY-5001 that must be deduplicated prior to publishing confirmed-payments
    {
        "payment_tx_id": "PAY-5001",
        "order_id": "ORD-1001",
        "payment_type": "CAPTURE",
        "amount": Decimal("150.00"),
        "currency": "USD",
        "payment_occurred_at": "2026-11-14T09:01:00Z",
    },
    # ORD-1002: two partial captures of 120 + 80 = 200 USD, followed by a 50 USD partial refund (net = 150 USD)
    {
        "payment_tx_id": "PAY-5002",
        "order_id": "ORD-1002",
        "payment_type": "CAPTURE",
        "amount": Decimal("120.00"),
        "currency": "USD",
        "payment_occurred_at": "2026-11-14T09:16:00Z",
    },
    {
        "payment_tx_id": "PAY-5003",
        "order_id": "ORD-1002",
        "payment_type": "CAPTURE",
        "amount": Decimal("80.00"),
        "currency": "USD",
        "payment_occurred_at": "2026-11-14T09:17:00Z",
    },
    {
        "payment_tx_id": "PAY-5004",
        "order_id": "ORD-1002",
        "payment_type": "REFUND",
        "amount": Decimal("50.00"),
        "currency": "USD",
        "payment_occurred_at": "2026-11-14T10:05:00Z",
    },
    # ORD-1003: full payment in EUR (90.00 EUR)
    {
        "payment_tx_id": "PAY-5005",
        "order_id": "ORD-1003",
        "payment_type": "CAPTURE",
        "amount": Decimal("90.00"),
        "currency": "EUR",
        "payment_occurred_at": "2026-11-14T09:31:00Z",
    },
]

RAW_INVENTORY_SNAPSHOT: list[dict[str, Any]] = [
    {
        "sku_id": "SKU-LAPTOP-01",
        "warehouse_id": "WH-EAST",
        "on_hand_qty": 45,
        "reserved_qty": 12,
        "available_qty": 33,
        "snapshot_at": "2026-11-14T10:15:00Z",
    },
    {
        "sku_id": "SKU-MONITOR-02",
        "warehouse_id": "WH-WEST",
        "on_hand_qty": 20,
        "reserved_qty": 5,
        "available_qty": 15,
        "snapshot_at": "2026-11-14T10:15:00Z",
    },
]


def deduplicate_confirmed_payments(raw_payments: list[dict[str, Any]]) -> list[dict[str, Any]]:
    """Enforces uniqueness by payment_tx_id before publishing confirmed-payments."""
    by_id: dict[str, dict[str, Any]] = {}
    for row in raw_payments:
        tx_id = row["payment_tx_id"]
        if tx_id not in by_id:
            by_id[tx_id] = row
    return list(by_id.values())


def build_derived_paid_sales(
    sales_orders: list[dict[str, Any]],
    confirmed_payments: list[dict[str, Any]],
    published_at_iso: str,
) -> list[dict[str, Any]]:
    """
    Builds the derived paid-sales product by first consolidating payments by
    (order_id, currency) to prevent 1:N order amount multiplication.
    """
    # Step 1: Pre-aggregate payments by order_id
    payments_by_order: dict[str, dict[str, Any]] = {}
    for p in confirmed_payments:
        oid = p["order_id"]
        entry = payments_by_order.setdefault(
            oid,
            {
                "captured": Decimal("0.00"),
                "refunded": Decimal("0.00"),
                "currencies": set(),
                "last_payment_at": None,
            },
        )
        entry["currencies"].add(p["currency"])
        if p["payment_type"] == "CAPTURE":
            entry["captured"] += p["amount"]
        elif p["payment_type"] == "REFUND":
            entry["refunded"] += p["amount"]

        if entry["last_payment_at"] is None or p["payment_occurred_at"] > entry["last_payment_at"]:
            entry["last_payment_at"] = p["payment_occurred_at"]

    # Step 2: Join 1:1 against sales-orders
    derived_rows: list[dict[str, Any]] = []
    for o in sales_orders:
        oid = o["order_id"]
        pay_info = payments_by_order.get(oid)

        if pay_info is None:
            captured = Decimal("0.00")
            refunded = Decimal("0.00")
            net_paid = Decimal("0.00")
            last_pay_at = None
            currency_ok = True
        else:
            captured = pay_info["captured"]
            refunded = pay_info["refunded"]
            net_paid = captured - refunded
            last_pay_at = pay_info["last_payment_at"]
            currency_ok = pay_info["currencies"] == {o["currency"]}

        order_total = o["order_total_amount"]
        if not currency_ok:
            settlement_status = "CURRENCY_MISMATCH"
        elif net_paid == Decimal("0.00") and captured > Decimal("0.00"):
            settlement_status = "REFUNDED"
        elif net_paid == Decimal("0.00"):
            settlement_status = "UNPAID"
        elif net_paid == order_total:
            settlement_status = "FULLY_PAID"
        else:
            settlement_status = "PARTIALLY_PAID"

        is_fully_paid = (
            o["order_status"] == "CONFIRMED"
            and currency_ok
            and net_paid == order_total
        )

        derived_rows.append(
            {
                "order_id": oid,
                "customer_id": o["customer_id"],
                "order_status": o["order_status"],
                "order_total_amount": order_total,
                "captured_amount": captured,
                "refunded_amount": refunded,
                "net_paid_amount": net_paid,
                "payment_settlement_status": settlement_status,
                "is_fully_paid": is_fully_paid,
                "order_occurred_at": o["order_occurred_at"],
                "last_payment_occurred_at": last_pay_at,
                "published_at": published_at_iso,
                "currency": o["currency"],
            }
        )
    return derived_rows


@dataclass(frozen=True)
class ProductPublicationReport:
    product_id: str
    domain: str
    version: str
    row_count: int
    technical_checks_passed: bool
    semantic_checks_passed: bool
    violations: list[str]
    published_status: str


def validate_all_products(
    sales_orders: list[dict[str, Any]],
    confirmed_payments: list[dict[str, Any]],
    inventory_availability: list[dict[str, Any]],
    paid_sales: list[dict[str, Any]],
) -> list[ProductPublicationReport]:
    reports: list[ProductPublicationReport] = []

    # 1. Validate sales-orders
    so_violations: list[str] = []
    if len(sales_orders) != len({r["order_id"] for r in sales_orders}):
        so_violations.append("Duplicate primary key order_id in sales-orders.")
    for r in sales_orders:
        if r["order_total_amount"] <= Decimal("0.00"):
            so_violations.append(f"Invalid amount in order {r['order_id']}.")
    reports.append(
        ProductPublicationReport(
            product_id="sales-orders",
            domain="sales",
            version="1.0.0",
            row_count=len(sales_orders),
            technical_checks_passed=len(so_violations) == 0,
            semantic_checks_passed=len(so_violations) == 0,
            violations=so_violations,
            published_status="PUBLISHED" if not so_violations else "REJECTED",
        )
    )

    # 2. Validate confirmed-payments
    cp_violations: list[str] = []
    if len(confirmed_payments) != len({r["payment_tx_id"] for r in confirmed_payments}):
        cp_violations.append("Duplicate primary key payment_tx_id in confirmed-payments.")
    reports.append(
        ProductPublicationReport(
            product_id="confirmed-payments",
            domain="payments",
            version="1.0.0",
            row_count=len(confirmed_payments),
            technical_checks_passed=len(cp_violations) == 0,
            semantic_checks_passed=len(cp_violations) == 0,
            violations=cp_violations,
            published_status="PUBLISHED" if not cp_violations else "REJECTED",
        )
    )

    # 3. Validate inventory-availability
    inv_violations: list[str] = []
    for r in inventory_availability:
        if r["available_qty"] != r["on_hand_qty"] - r["reserved_qty"]:
            inv_violations.append(f"Inconsistent stock formula in {r['sku_id']}.")
        if r["available_qty"] < 0:
            inv_violations.append(f"Negative available stock in {r['sku_id']}.")
    reports.append(
        ProductPublicationReport(
            product_id="inventory-availability",
            domain="inventory",
            version="1.0.0",
            row_count=len(inventory_availability),
            technical_checks_passed=len(inv_violations) == 0,
            semantic_checks_passed=len(inv_violations) == 0,
            violations=inv_violations,
            published_status="PUBLISHED" if not inv_violations else "REJECTED",
        )
    )

    # 4. Technical and semantic validation of paid-sales (including referential integrity)
    ps_violations: list[str] = []
    valid_order_ids = {r["order_id"] for r in sales_orders}
    if len(paid_sales) != len({r["order_id"] for r in paid_sales}):
        ps_violations.append("Violation of 1-row-per-order_id granularity in paid-sales.")
    for r in paid_sales:
        if r["order_id"] not in valid_order_ids:
            ps_violations.append(f"Orphan order in paid-sales: {r['order_id']}.")
        if r["net_paid_amount"] != r["captured_amount"] - r["refunded_amount"]:
            ps_violations.append(f"Invalid net_paid_amount formula in {r['order_id']}.")
        if r["refunded_amount"] > r["captured_amount"]:
            ps_violations.append(f"Over-refund detected in {r['order_id']}.")
        if r["is_fully_paid"] and r["net_paid_amount"] != r["order_total_amount"]:
            ps_violations.append(f"Invariant is_fully_paid violated in {r['order_id']}.")

    reports.append(
        ProductPublicationReport(
            product_id="paid-sales",
            domain="finance-analytics",
            version="1.0.0",
            row_count=len(paid_sales),
            technical_checks_passed=len(ps_violations) == 0,
            semantic_checks_passed=len(ps_violations) == 0,
            violations=ps_violations,
            published_status="PUBLISHED" if not ps_violations else "REJECTED",
        )
    )
    return reports


def write_product_artifacts(output_dir: Path, product_name: str, rows: list[dict[str, Any]]) -> str:
    """
    Writes Parquet files using pyarrow if installed in the environment;
    otherwise writes a structured verification file indicating local mode.
    """
    output_dir.mkdir(parents=True, exist_ok=True)
    serializable_rows = [
        {k: (str(v) if isinstance(v, Decimal) else v) for k, v in row.items()}
        for row in rows
    ]
    try:
        import pyarrow as pa  # type: ignore
        import pyarrow.parquet as pq  # type: ignore

        table = pa.Table.from_pylist(serializable_rows)
        file_path = output_dir / f"{product_name}.parquet"
        pq.write_table(table, file_path, compression="snappy")
        return str(file_path)
    except ImportError:
        fallback_path = output_dir / f"{product_name}.parquet.jsonl"
        with fallback_path.open("w", encoding="utf-8") as f:
            for item in serializable_rows:
                f.write(json.dumps(item) + "\n")
        return str(fallback_path)


if __name__ == "__main__":
    published_ts = datetime(2026, 11, 14, 10, 30, 0, tzinfo=timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ")

    confirmed_payments_clean = deduplicate_confirmed_payments(RAW_PAYMENT_EVENTS)
    assert len(confirmed_payments_clean) == 5  # Duplicate PAY-5001 was removed

    paid_sales_rows = build_derived_paid_sales(
        sales_orders=RAW_SALES_ORDERS,
        confirmed_payments=confirmed_payments_clean,
        published_at_iso=published_ts,
    )

    # Business assertions on paid-sales
    by_order = {r["order_id"]: r for r in paid_sales_rows}

    # ORD-1001: Confirmed and 100% paid in USD (150.00) without retry duplication
    assert by_order["ORD-1001"]["net_paid_amount"] == Decimal("150.00")
    assert by_order["ORD-1001"]["is_fully_paid"] is True
    assert by_order["ORD-1001"]["payment_settlement_status"] == "FULLY_PAID"

    # ORD-1002: Captured 120 + 80 = 200 USD, minus 50 USD refund -> net = 150.00 (PARTIALLY_PAID)
    assert by_order["ORD-1002"]["captured_amount"] == Decimal("200.00")
    assert by_order["ORD-1002"]["refunded_amount"] == Decimal("50.00")
    assert by_order["ORD-1002"]["net_paid_amount"] == Decimal("150.00")
    assert by_order["ORD-1002"]["is_fully_paid"] is False
    assert by_order["ORD-1002"]["payment_settlement_status"] == "PARTIALLY_PAID"

    # ORD-1003: 100% paid in EUR (90.00)
    assert by_order["ORD-1003"]["net_paid_amount"] == Decimal("90.00")
    assert by_order["ORD-1003"]["currency"] == "EUR"
    assert by_order["ORD-1003"]["is_fully_paid"] is True

    # ORD-1004: Cancelled with no payments -> net_paid = 0.00, UNPAID
    assert by_order["ORD-1004"]["net_paid_amount"] == Decimal("0.00")
    assert by_order["ORD-1004"]["payment_settlement_status"] == "UNPAID"

    publication_reports = validate_all_products(
        sales_orders=RAW_SALES_ORDERS,
        confirmed_payments=confirmed_payments_clean,
        inventory_availability=RAW_INVENTORY_SNAPSHOT,
        paid_sales=paid_sales_rows,
    )
    assert all(rep.published_status == "PUBLISHED" for rep in publication_reports)

    base_out = Path("./build/s3_mesh_zones/products")
    write_product_artifacts(base_out / "sales/sales_orders/v1", "sales_orders", RAW_SALES_ORDERS)
    write_product_artifacts(base_out / "payments/confirmed_payments/v1", "confirmed_payments", confirmed_payments_clean)
    write_product_artifacts(base_out / "inventory/inventory_availability/v1", "inventory_availability", RAW_INVENTORY_SNAPSHOT)
    write_product_artifacts(base_out / "finance-analytics/paid_sales/v1", "paid_sales", paid_sales_rows)

    print(json.dumps([asdict(r) for r in publication_reports], indent=2))

Step 3: SQL Transformation in Amazon Athena Free of 1:N Multiplication and Respecting Currencies

In the AWS environment, the finance-analytics domain materializes paid-sales by running an Amazon Athena query over the cataloged tables of Sales and Payments. Notice how the query first deduplicates confirmed_payments_v1, aggregates to (order_id, currency) granularity, and never sums USD and EUR together:

-- file: src/sql/publish_paid_sales.sql
-- Executed in Amazon Athena by the finance-analytics domain role
CREATE TABLE commerceflow_finance_analytics_prod.paid_sales_v1
WITH (
    format = 'PARQUET',
    parquet_compression = 'SNAPPY',
    external_location = 's3://commerceflow-mesh-prod-111122223333/products/finance-analytics/paid_sales/v1/',
    partitioned_by = ARRAY['currency']
) AS
WITH deduplicated_payments AS (
    -- 1. Defensive deduplication by transaction key payment_tx_id
    SELECT
        payment_tx_id,
        order_id,
        payment_type,
        CAST(amount AS DECIMAL(12, 2)) AS amount,
        currency,
        payment_occurred_at,
        ROW_NUMBER() OVER (
            PARTITION BY payment_tx_id
            ORDER BY payment_occurred_at DESC
        ) AS rn
    FROM commerceflow_payments_prod.confirmed_payments_v1
),
payments_consolidated_by_order AS (
    -- 2. 1:1 consolidation at order_id grain BEFORE joining against sales_orders
    SELECT
        order_id,
        COUNT(DISTINCT currency) AS distinct_pay_currencies,
        MIN(currency) AS payment_currency,
        CAST(SUM(CASE WHEN payment_type = 'CAPTURE' THEN amount ELSE 0 END) AS DECIMAL(12, 2)) AS captured_amount,
        CAST(SUM(CASE WHEN payment_type = 'REFUND'  THEN amount ELSE 0 END) AS DECIMAL(12, 2)) AS refunded_amount,
        CAST(SUM(CASE WHEN payment_type = 'CAPTURE' THEN amount ELSE -amount END) AS DECIMAL(12, 2)) AS net_paid_amount,
        MAX(payment_occurred_at) AS last_payment_occurred_at
    FROM deduplicated_payments
    WHERE rn = 1
    GROUP BY order_id
)
SELECT
    o.order_id,
    o.customer_id,
    o.order_status,
    CAST(o.order_total_amount AS DECIMAL(12, 2)) AS order_total_amount,
    COALESCE(p.captured_amount, CAST(0.00 AS DECIMAL(12, 2))) AS captured_amount,
    COALESCE(p.refunded_amount, CAST(0.00 AS DECIMAL(12, 2))) AS refunded_amount,
    COALESCE(p.net_paid_amount, CAST(0.00 AS DECIMAL(12, 2))) AS net_paid_amount,
    CASE
        WHEN p.order_id IS NOT NULL AND (p.distinct_pay_currencies > 1 OR p.payment_currency <> o.currency)
            THEN 'CURRENCY_MISMATCH'
        WHEN COALESCE(p.net_paid_amount, 0.00) = 0.00 AND COALESCE(p.captured_amount, 0.00) > 0.00
            THEN 'REFUNDED'
        WHEN COALESCE(p.net_paid_amount, 0.00) = 0.00
            THEN 'UNPAID'
        WHEN COALESCE(p.net_paid_amount, 0.00) = o.order_total_amount
            THEN 'FULLY_PAID'
        ELSE 'PARTIALLY_PAID'
    END AS payment_settlement_status,
    CASE
        WHEN o.order_status = 'CONFIRMED'
         AND (p.order_id IS NOT NULL AND p.distinct_pay_currencies = 1 AND p.payment_currency = o.currency)
         AND COALESCE(p.net_paid_amount, 0.00) = o.order_total_amount
            THEN true
        ELSE false
    END AS is_fully_paid,
    o.order_occurred_at,
    p.last_payment_occurred_at,
    CURRENT_TIMESTAMP AS published_at,
    o.currency
FROM commerceflow_sales_prod.sales_orders_v1 o
LEFT JOIN payments_consolidated_by_order p
    ON o.order_id = p.order_id;

Per-Currency Accounting Audit Query in Athena

-- Executive summary by currency separating confirmed orders, net collected cash, and unpaid gap
SELECT
    currency,
    COUNT(order_id) AS total_orders,
    SUM(CASE WHEN order_status = 'CONFIRMED' THEN order_total_amount ELSE 0 END) AS confirmed_orders_gross,
    SUM(captured_amount) AS total_cash_captured,
    SUM(refunded_amount) AS total_cash_refunded,
    SUM(net_paid_amount) AS total_net_paid_cash,
    SUM(CASE WHEN is_fully_paid THEN net_paid_amount ELSE 0 END) AS fully_settled_orders_revenue
FROM commerceflow_finance_analytics_prod.paid_sales_v1
GROUP BY currency
ORDER BY currency;

With the lab's synthetic datasets, this query deterministically returns:

  • In USD: confirmed_orders_gross = 350.00, total_cash_captured = 350.00, total_cash_refunded = 50.00, total_net_paid_cash = 300.00, and fully_settled_orders_revenue = 150.00 (because ORD-1002 was partially refunded).
  • In EUR: confirmed_orders_gross = 90.00, total_net_paid_cash = 90.00, and fully_settled_orders_revenue = 90.00.

Step 4: Self-Serve Data Platform and Security with Terraform, Glue, and AWS Lake Formation

So domains do not configure cloud resources by hand—and to prevent any consumer from bypassing AWS Lake Formation by reading directly from S3—the platform provides a reusable Terraform module that:

  1. Blocks public S3 access and enforces AWS KMS encryption.
  2. Registers the product's S3 prefix in AWS Lake Formation (use_service_linked_role = true or a dedicated role) without granting direct s3:GetObject permissions to consumer analyst IAM roles, forcing all reads through temporary credentials vended by Lake Formation via Athena.
  3. Disables the legacy IAMAllowedPrincipals default grant so IAM alone cannot bypass catalog table permissions.

Scope Note on the Terraform Block: The HCL snippet below shows the core reusable product module and Lake Formation grants. Running it in a live AWS account requires configuring the provider "aws" block, holding Data Lake Administrator privileges in the account, and defining the domain IAM roles.

# file: infra/modules/data_product_storage_glue_lf/main.tf
variable "bucket_name" { type = string }
variable "kms_key_arn" { type = string }
variable "domain_name" { type = string }
variable "product_name" { type = string }
variable "glue_database_name" { type = string }
variable "producer_role_arn" { type = string }
variable "consumer_role_arn" { type = string }
variable "allowed_columns" { type = list(string) }

resource "aws_glue_catalog_database" "domain_db" {
  name        = var.glue_database_name
  description = "Catalog database for the ${var.domain_name} domain"

  # Critical: disable default IAMAllowedPrincipals permissions
  create_table_default_permission {
    permissions = []
  }
}

# Register the product's S3 prefix under AWS Lake Formation management
resource "aws_lakeformation_resource" "product_s3_location" {
  arn                     = "arn:aws:s3:::${var.bucket_name}/products/${var.domain_name}/${var.product_name}/"
  use_service_linked_role = true
}

# Producer domain permissions on its own table
resource "aws_lakeformation_permissions" "producer_table_access" {
  principal   = var.producer_role_arn
  permissions = ["SELECT", "INSERT", "DELETE", "DESCRIBE", "ALTER"]

  table {
    database_name = aws_glue_catalog_database.domain_db.name
    name          = "${var.product_name}_v1"
  }
}

# Granular consumer permissions (read-only on authorized columns)
resource "aws_lakeformation_permissions" "consumer_column_scoped_access" {
  principal   = var.consumer_role_arn
  permissions = ["SELECT", "DESCRIBE"]

  table_with_columns {
    database_name = aws_glue_catalog_database.domain_db.name
    name          = "${var.product_name}_v1"
    column_names  = var.allowed_columns
  }
}

Permission Matrix and Positive/Negative Authorization Tests

To prove real isolation across domains, we configure three test identities and verify both what they can access and what is denied:

IAM Role / Principalsales_orders_v1 (Sales)confirmed_payments_v1 (Payments)inventory_availability_v1 (Inventory)paid_sales_v1 (Finance Analytics)Direct AWS CLI Read (aws s3 cp) on products/ Bucket
role/finance-analytics-builderSELECT (all columns)SELECT (all columns)DENIEDOwner (ALL)DENIED (only via Athena + Lake Formation)
role/supply-chain-analystDENIEDDENIEDSELECT (all columns)SELECT (customer_id excluded for PII)DENIED
role/marketing-kpi-readerDENIED (no raw source access)DENIEDDENIEDSELECT (customer_id excluded)DENIED

AWS CLI verification commands you can run in your lab account to verify both positive and negative cases:

# 1. POSITIVE Test: supply-chain-analyst queries inventory_availability_v1 via Athena
aws athena start-query-execution \
  --query-string "SELECT sku_id, warehouse_id, available_qty FROM commerceflow_inventory_prod.inventory_availability_v1;" \
  --work-group "commerceflow-mesh-wg" \
  --result-configuration "OutputLocation=s3://commerceflow-athena-results-111122223333/supply-chain/"
# Expected outcome: SUCCEEDED (returns the 2 inventory rows)

# 2. NEGATIVE Test A (Catalog/Table): supply-chain-analyst attempts to read confirmed_payments_v1
aws athena start-query-execution \
  --query-string "SELECT * FROM commerceflow_payments_prod.confirmed_payments_v1;" \
  --work-group "commerceflow-mesh-wg" \
  --result-configuration "OutputLocation=s3://commerceflow-athena-results-111122223333/supply-chain/"
# Expected outcome: FAILED - Insufficient Lake Formation permission(s) on confirmed_payments_v1

# 3. NEGATIVE Test B (S3 Bypass): supply-chain-analyst attempts to download Parquet file directly
aws s3 cp s3://commerceflow-mesh-prod-111122223333/products/inventory/inventory_availability/v1/inventory_availability.parquet ./local.parquet
# Expected outcome: fatal error: An error occurred (403) when calling the HeadObject operation: Forbidden

Step 5: CI/CD Automation and Lab Cost Governance

The continuous integration and deployment pipeline (.github/workflows/datamesh-ci-cd.yml) acts as an automated computational governance gate: no infrastructure or transformation change is applied if contract or semantic assertions fail.

# file: .github/workflows/datamesh-ci-cd.yml
name: CommerceFlow Data Mesh CI/CD Gate

on:
  pull_request:
    branches: [main]

jobs:
  validate-contracts-and-infra:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

      - name: 1. Set up Python 3.11
        uses: actions/setup-python@v5
        with:
          python-version: '3.11'

      - name: 2. Run synthetic generation, contract tests, and semantic rules
        run: |
          pip install pyarrow pyyaml
          python src/generate_and_validate_mesh.py

      - name: 3. Validate Terraform formatting and syntax
        run: |
          terraform -chdir=infra fmt -check
          terraform -chdir=infra init -backend=false
          terraform -chdir=infra validate

Cost Control (FinOps) and Complete Lab Teardown

This lab is intentionally built on pay-per-use serverless services (Amazon S3, AWS Glue Data Catalog, AWS Lake Formation, and Amazon Athena), avoiding always-on clusters like Amazon EMR, MSK, or RDS that accrue hourly charges while idle. With the synthetic datasets in this article, running the entire lab in an AWS account costs less than USD 0.05.

When you finish testing, always run an orderly teardown to eliminate any residual storage or KMS key charges:

# 1. Inspect month-to-date spend in AWS Cost Explorer via CLI
aws ce get-cost-and-usage \
  --time-period Start=2026-11-01,End=2026-11-15 \
  --granularity MONTHLY \
  --metrics "UnblendedCost" \
  --group-by Type=DIMENSION,Key=SERVICE

# 2. Empty objects from lab buckets before destroying infrastructure
aws s3 rm s3://commerceflow-mesh-prod-111122223333 --recursive
aws s3 rm s3://commerceflow-athena-results-111122223333 --recursive

# 3. Destroy all Terraform-managed resources (Glue, Lake Formation, S3, IAM, KMS)
terraform -chdir=infra destroy -auto-approve

Three Evolution Scenarios and Optional Extensions Beyond the MVP

Once this Minimum Viable Product (MVP) core is running, you can attach the advanced capabilities covered earlier in the series as modular extensions:

Scenario 1: Real-Time Change Data Capture and Apache Kafka Extension (Articles 23–27)

  • When to enable it: When business operations require paid-sales to update in under 10 seconds (paid-sales-live) to release immediate shipments.
  • How it plugs into this project: Sales and Payments publish events from MySQL Transactional Outbox tables into Apache Kafka via Debezium, validate Avro/JSON Schema contracts documented in AsyncAPI 3.0, and sink records into both the live stream processor and the S3 ingestion/ zone to maintain historical Parquet reconciliation.

Scenario 2: Artificial Intelligence and Governed RAG Extension (Article 29)

  • When to enable it: When financial and operations analysts need a conversational assistant answering questions about collected sales and available inventory while citing authorized sources.
  • How it plugs into this project: The YAML manifests (contracts/*.contract.yaml) are chunked and indexed with allowed_roles metadata, and the agent's analytical tool executes the paid_sales_v1 SQL query in Amazon Athena assuming the authenticated user's Lake Formation-scoped role.

Scenario 3: What Separates This Educational Lab from Enterprise Production

A discerning engineer honestly distinguishes what a reference lab proves from what must be added before operating on real customer data at scale:

  1. Transactional Table Formats (Apache Iceberg): In production, replace static Parquet tables with Apache Iceberg tables registered in Glue to support MERGE INTO upserts, snapshot isolation (Time Travel), automated small-file compaction, and schema evolution without full partition rewrites.
  2. Multi-Account AWS Isolation (AWS Organizations): Instead of isolating domains solely by S3 prefixes inside a single AWS account, enterprise deployments typically run each domain (or domain group) in its own AWS account, sharing tables cross-account via AWS RAM (Resource Access Manager) and Lake Formation Cross-Account Sharing.
  3. Production Orchestration and Observability: Schedule pipelines with AWS Step Functions or Apache Airflow (MWAA) integrated with OpenLineage and automated SLO alerting.

AI Prompts for Extending and Auditing Your Capstone Project

Prompt 1: Upgrade the Parquet paid-sales Table to Apache Iceberg with Incremental MERGE INTO

Act as a Principal AWS Data Architect.
In our CommerceFlow Data Mesh project, we currently use an Amazon Athena CTAS SQL query that builds `commerceflow_finance_analytics_prod.paid_sales_v1` in Parquet format from `sales_orders_v1` and `confirmed_payments_v1`.

[PASTE publish_paid_sales.sql QUERY HERE]

Task:
1. Convert the `paid_sales_v1` table definition in Athena to use the transactional `ICEBERG` table format.
2. Write the `MERGE INTO commerceflow_finance_analytics_prod.paid_sales_v1` statement to incrementally update orders that received new payments or refunds in the last hour, preserving the 1:1 pre-consolidation by `order_id` to prevent 1:N fan-out errors.
3. Include the Athena maintenance commands (`OPTIMIZE` and `VACUUM`) and explain their impact on S3 storage and query costs.
  • What a human must verify: Confirm that the ON target.order_id = source.order_id clause in MERGE INTO guarantees the source subquery never emits two rows with the same order_id, as Iceberg will throw a runtime error if duplicate match keys exist in the source batch.

Prompt 2: Audit IAM and Lake Formation Policies for Direct S3 Bypass Vulnerabilities

Act as a Cloud Security and AWS Federated Governance Specialist.
I will share the IAM policies of our consumer roles and the AWS Lake Formation Terraform configuration for the `commerceflow-mesh-prod` bucket.

[PASTE IAM POLICIES AND TERRAFORM CONFIGURATION HERE]

Task:
1. Check whether any consumer role holds direct `s3:GetObject` or `s3:ListBucket` permissions that would allow reading Parquet files directly while bypassing AWS Lake Formation column and row restrictions.
2. Verify whether the legacy `IAMAllowedPrincipals` group remains active on any AWS Glue database or table.
3. Provide the remediated least-privilege configuration and AWS CLI commands to verify that direct S3 reads return HTTP 403 while authorized Athena queries succeed.
  • What a human must verify: Ensure that the role used to register the S3 location in Lake Formation retains permissions on S3 and the AWS KMS key (kms:Decrypt) so it can vend temporary credentials to Athena.

Practical Project Verification Exercises

Exercise 1: Diagnosing Revenue Inflation Caused by a Direct Join

A developer modifies publish_paid_sales.sql by removing the payments_consolidated_by_order CTE and writing directly:

SELECT
    o.currency,
    SUM(o.order_total_amount) AS total_sales_amount,
    SUM(CASE WHEN p.payment_type = 'CAPTURE' THEN p.amount ELSE -p.amount END) AS net_paid
FROM commerceflow_sales_prod.sales_orders_v1 o
JOIN commerceflow_payments_prod.confirmed_payments_v1 p
    ON o.order_id = p.order_id
GROUP BY o.currency;

Using the lab's synthetic dataset (where ORD-1001 is 150.00 USD with 1 payment row after deduplication, and ORD-1002 is 200.00 USD with 2 partial captures and 1 refund—i.e., 3 rows in confirmed_payments_v1), calculate the exact erroneous value returned for total_sales_amount in USD and explain why.

Exercise 2: Debugging Cross-Service Permission Failures Across Athena, Lake Formation, and KMS

An analyst in the supply-chain domain is granted SELECT permission on all columns of inventory_availability_v1 in AWS Lake Formation. However, when running SELECT * FROM commerceflow_inventory_prod.inventory_availability_v1 in Amazon Athena, the query fails with an AccessDeniedException related to encryption or query result writing. List the three exact configuration points outside the Lake Formation table grant that you must check so the Athena query succeeds without opening direct IAM access to the data bucket.

Exercise 3: Designing a New Reverse-Logistics Data Product (returned-items)

The Inventory domain needs to publish a new returned-items product so finance-analytics can audit whether refunds in confirmed-payments have a matching physical warehouse return. Define:

  1. What the exact granularity (logical primary key) of returned-items should be.
  2. Which shared identifier allows joining it with sales-orders and paid-sales.
  3. Which semantic quality rule you would include in its YAML contract.

Reasoned Solutions

Solution to Exercise 1

  • Calculation of the Erroneous Value: For ORD-1001 (150.00 USD) there is 1 matching row in confirmed_payments_v1, contributing 150.00. For ORD-1002 (200.00 USD) there are 3 matching rows in confirmed_payments_v1 (PAY-5002, PAY-5003, and PAY-5004). Joining without pre-aggregating triples the ORD-1002 row, causing SUM(o.order_total_amount) to compute $150.00 + (3 \times 200.00) = \mathbf{750.00\text{ USD}}$ instead of the true 350.00 USD (a +114% inflation across those two orders).
  • Root Cause: Joining a table at order_id grain (1) directly to a table at payment_tx_id grain (N) multiplies metrics on the 1 side. Always consolidate the N side to 1 grain (GROUP BY order_id) prior to joining.

Solution to Exercise 2

The three configuration points that commonly trigger that AccessDeniedException despite a valid Lake Formation table grant are:

  1. AWS KMS Key Permissions (kms:Decrypt): The role used to register the S3 location in Lake Formation (or the consumer role depending on access mode) requires kms:Decrypt permission in the Key Policy of the KMS key encrypting the product's Parquet files.
  2. IAM Permissions on the Athena Query Results Bucket (OutputLocation): Lake Formation vends credentials to read the underlying table data, but the analyst's IAM role still needs s3:PutObject and s3:GetObject permissions on the separate staging bucket where Athena writes query results (commerceflow-athena-results-...).
  3. Lake Formation DESCRIBE Permission on the Glue Database: In addition to SELECT on the table, the principal needs metadata visibility on the parent Glue database (commerceflow_inventory_prod).

Solution to Exercise 3

  1. Exact Granularity: 1 row = 1 inspected physical return line item in the warehouse, identified by the composite primary key (return_receipt_id, sku_id).
  2. Interoperability Identifier: Must include order_id (matching the global pattern ^ORD-[0-9]{4}$) and UTC returned_at. To join it with paid-sales (whose grain is order_id), finance-analytics must pre-aggregate returned-items by order_id and currency.
  3. Contract Semantic Rule: returned_qty > 0 and inspection_status IN ('ACCEPTED_RESTOCK', 'DAMAGED_WRITE_OFF', 'REJECTED'), plus the cross-domain consumer invariant returned_order_value <= order_total_amount.

Final Acceptance Matrix: Verifiable Proof of the 4 Data Mesh Principles

Before closing the project, we verify with concrete technical evidence how each implemented component embodies the four foundational principles of Data Mesh:

Data Mesh PrincipleWhat Theory DemandsHow It Is Demonstrated and Verified in This ProjectConcrete Validation Proof
1. Domain OwnershipSemantic, quality, and evolution accountability belongs to the domain where data originates or is defined.Sales owns sales-orders, Payments owns confirmed-payments, Inventory owns inventory-availability, and Finance Analytics owns the reconciliation logic of paid-sales, with isolated Glue databases and S3 prefixes.Every manifest in contracts/*.contract.yaml and every Glue database has its own domain, ownerEmail, and independent producer IAM role.
2. Data as a ProductData is not an opaque byproduct, but a discoverable, understandable, trustworthy, addressable, contracted asset.All 4 products declare explicit granularity, typed Parquet schemas, accounting disambiguation, SLOs, and automated publication reports.generate_and_validate_mesh.py blocks publication whenever key uniqueness or semantic invariants (net_paid_amount, currencies, over-refunds) fail.
3. Self-Serve Data PlatformAbstract infrastructure complexity so domains publish and consume products reproducibly.The data_product_storage_glue_lf Terraform module provisions storage, catalog tables, and Lake Formation registration uniformly from simple variables.terraform validate and the modular structure in infra/ allow onboarding a new product without manual console clicks.
4. Federated Computational GovernanceEnforce global interoperability, quality, privacy, and access control standards via automated policies.Global identifiers (order_id), ISO currencies, UTC timestamps, mandatory CI/CD contract checks, and column-scoped Lake Formation access without S3 bypass..github/workflows/datamesh-ci-cd.yml plus positive and negative authorization tests (HTTP 403 on direct S3 reads and Lake Formation enforcement).

Series Conclusion: From Architecture on Paper to Engineering Judgment

Across all thirty articles of this Data Mesh series, we have traveled a complete path: we began by understanding why monolithic warehouses and lakes often turn into organizational bottlenecks as companies scale; we examined the four foundational principles, their connection to Domain-Driven Design, and the design of Source-Aligned, Aggregate, and Consumer-Aligned Data Products; we built data contracts, catalogs, lineage, ingestion pipelines (ETL, ELT, and CDC), quality gates, observability, and least-privilege security; we automated platforms with Infrastructure as Code and DataOps; we engineered real-time architectures with Apache Kafka, Avro/JSON Schema, AsyncAPI, and operational streaming resilience; we evaluated enterprise adoption strategies, FinOps economics, and outcome KPIs free of vanity metrics; we integrated Artificial Intelligence, Machine Learning, and governed RAG systems; and finally, we brought every piece together in this hands-on AWS reference project.

The most enduring takeaway of the entire collection can be summed up in a single principle: excellence in data architecture is never about adopting a trend by decree or collecting complex tools—it is about aligning technical boundaries with human accountability through clear, verifiable agreements. Whether you operate a distributed data mesh across dozens of domains or apply data contracts, explicit ownership, and observability inside a compact platform, you now hold both the conceptual foundations and the practical engineering judgment to build data products worthy of trust.

Loading conversation…

Keep learning