{
  "name": "Data Engineering Reference Architectures",
  "description": "Open source data engineering reference architectures: interactive, runnable blueprints for batch and streaming medallion pipelines, real-time streaming, multi-engine catalogs, governed AI agents and data sharing, mapped to industry use cases and backed by public repositories.",
  "url": "https://openlakehouse.io/reference-architectures",
  "updated": "2026-11-21",
  "groups": [
    {
      "id": "sources",
      "zone": "sources",
      "name": "Sources",
      "intro": "Where the data comes from."
    },
    {
      "id": "ingest",
      "zone": "ingest",
      "name": "Ingestion",
      "intro": "How data gets into the lakehouse."
    },
    {
      "id": "ai",
      "zone": "platform",
      "name": "AI and agents",
      "intro": "The agents, the control plane that decides what they may do, and the models behind them."
    },
    {
      "id": "access",
      "zone": "platform",
      "name": "Engine access",
      "intro": "How agents, apps and people reach compute: a client session per identity."
    },
    {
      "id": "execution",
      "zone": "platform",
      "name": "Execution",
      "intro": "Spark's execution modes, plus engines that read the same tables."
    },
    {
      "id": "data",
      "zone": "platform",
      "name": "Data foundation",
      "intro": "Open tables in a governed catalog, on storage you own."
    },
    {
      "id": "governance",
      "zone": "platform",
      "name": "Governance",
      "intro": "Who can see what, where it came from, whether it is right."
    },
    {
      "id": "operations",
      "zone": "platform",
      "name": "Operations",
      "intro": "Scheduling, keeping tables healthy, observing and deploying the platform."
    },
    {
      "id": "serving",
      "zone": "serving",
      "name": "Serving",
      "intro": "How results leave the lakehouse."
    }
  ],
  "capabilities": [
    {
      "id": "sources",
      "group": "sources",
      "name": "Source systems",
      "short": "Sources",
      "question": "Where does the data come from?",
      "what": "Operational databases, applications, devices, files and partner feeds. An industry lens fills this in with that industry's systems.",
      "defaults": []
    },
    {
      "id": "ingest-batch",
      "group": "ingest",
      "name": "Batch and file ingestion",
      "short": "Batch loads",
      "question": "How do files and extracts land?",
      "what": "Loads files, extracts and API pulls into bronze tables, idempotently so reruns do not duplicate rows.",
      "defaults": [
        "spark",
        "dlt"
      ]
    },
    {
      "id": "ingest-stream",
      "group": "ingest",
      "name": "Event streaming",
      "short": "Events",
      "question": "How do events arrive?",
      "what": "A durable event log that producers append to and the lakehouse reads from by offset.",
      "defaults": [
        "kafka"
      ]
    },
    {
      "id": "ingest-cdc",
      "group": "ingest",
      "name": "Change data capture",
      "short": "CDC",
      "question": "How do database changes arrive?",
      "what": "Turns database transaction logs into change events and applies them to tables as current state and history.",
      "defaults": [
        "debezium",
        "auto-cdc"
      ]
    },
    {
      "id": "agent-harness",
      "group": "ai",
      "name": "Agent harness and policy",
      "short": "Harness + policy",
      "question": "What runs the agent, and who decides what it may do?",
      "what": "Runs agents with tools and session state, and checks every tool call, model request and file operation against policies that allow it, deny it, or ask a person. Policies are set per session, per agent and server-wide.",
      "defaults": [
        "omnigent"
      ]
    },
    {
      "id": "agent-sandbox",
      "group": "ai",
      "name": "Agent sandboxes",
      "short": "Sandboxes",
      "question": "Where does the agent's code run?",
      "what": "An isolated container or microVM per agent session, locally or on a cluster. Provider credentials stay outside the sandbox; the agent gets only the scoped access it needs.",
      "defaults": [
        "kubernetes",
        "omnigent-sandbox"
      ]
    },
    {
      "id": "agent-tools",
      "group": "ai",
      "name": "Tools and skills",
      "short": "Tools",
      "question": "What can the agent call?",
      "what": "Named actions with named arguments (read a table, dry-run a pipeline, run one SQL statement) served over the Model Context Protocol, plus skills that carry version-pinned context.",
      "defaults": [
        "mcp",
        "lakehouse-agent-kit"
      ]
    },
    {
      "id": "agent-models",
      "group": "ai",
      "name": "Models and gateway",
      "short": "Models",
      "question": "Which model does the agent use, and through what?",
      "what": "Open-weight models served locally or on a cluster, and a gateway in front of hosted providers for routing, keys and cost limits.",
      "defaults": [
        "ollama",
        "vllm",
        "mlflow"
      ]
    },
    {
      "id": "agent-observability",
      "group": "ai",
      "name": "Tracing and evaluation",
      "short": "Traces + evals",
      "question": "What did the agent do, and was it right?",
      "what": "Records every agent step with inputs and outputs, and scores results against trusted data and judges.",
      "defaults": [
        "mlflow",
        "opentelemetry"
      ]
    },
    {
      "id": "ml",
      "group": "ai",
      "name": "ML lifecycle",
      "short": "ML models",
      "question": "How are models trained, tracked and registered?",
      "what": "Experiment tracking, a model registry and the table version each model trained on.",
      "defaults": [
        "mlflow"
      ]
    },
    {
      "id": "spark-connect",
      "group": "access",
      "name": "Spark Connect sessions",
      "short": "Spark Connect",
      "question": "How do agents and apps reach Spark?",
      "what": "A thin gRPC client per identity sends query plans to a remote Spark. In production each agent or tenant gets its own authenticated endpoint; in a sandbox it can point at a local Spark working on a subset of the data, against the same catalog.",
      "defaults": [
        "spark-connect"
      ]
    },
    {
      "id": "batch",
      "group": "execution",
      "name": "Batch and SQL",
      "short": "Batch",
      "question": "What runs scheduled and ad hoc work?",
      "what": "Distributed batch jobs, DataFrames and SQL over the tables.",
      "defaults": [
        "spark"
      ]
    },
    {
      "id": "pipelines",
      "group": "execution",
      "name": "Declarative pipelines",
      "short": "Pipelines",
      "question": "How are tables declared and kept up to date?",
      "what": "Declare tables and flows; Spark infers dependencies, checks the graph with a dry run, and runs it. The output agents should write.",
      "defaults": [
        "sdp"
      ]
    },
    {
      "id": "streaming",
      "group": "execution",
      "name": "Structured Streaming",
      "short": "Streaming",
      "question": "What processes events in micro-batches?",
      "what": "Incremental processing of event streams with exactly-once table writes, watermarks and state.",
      "defaults": [
        "spark",
        "flink"
      ]
    },
    {
      "id": "realtime",
      "group": "execution",
      "name": "Real-Time Mode",
      "short": "Real-time",
      "question": "What handles millisecond decisions?",
      "what": "Continuous processing for decisions made while the event is still in flight.",
      "defaults": [
        "spark-rtm",
        "flink"
      ]
    },
    {
      "id": "local",
      "group": "execution",
      "name": "Local mode (Project Feather)",
      "short": "Local + Feather",
      "question": "What runs an agent's small, fast queries?",
      "what": "Spark in one process, with Spark 4.3's shuffle-free single-task execution for small queries. Fast to start and cheap, for prototyping and agent sandboxes.",
      "defaults": [
        "spark-feather"
      ]
    },
    {
      "id": "sql",
      "group": "execution",
      "name": "Other engines",
      "short": "Other engines",
      "question": "What else reads the same tables?",
      "what": "Engines that read the same governed tables through the catalog, without copies.",
      "defaults": [
        "duckdb",
        "trino",
        "pyiceberg"
      ]
    },
    {
      "id": "catalog",
      "group": "data",
      "name": "Catalog and credentials",
      "short": "Catalog",
      "question": "How do engines and agents find tables, and what may they touch?",
      "what": "Namespaces, schemas and permissions over an API, and short-lived storage credentials vended per table and identity.",
      "defaults": [
        "unity-catalog",
        "polaris",
        "lakekeeper"
      ]
    },
    {
      "id": "format",
      "group": "data",
      "name": "Open table format",
      "short": "Table format",
      "question": "What turns files into tables?",
      "what": "ACID transactions, schema evolution, snapshots and time travel over Parquet files.",
      "defaults": [
        "iceberg",
        "delta",
        "hudi"
      ]
    },
    {
      "id": "storage",
      "group": "data",
      "name": "Object storage",
      "short": "Storage",
      "question": "Where do the bytes live?",
      "what": "S3-compatible object storage you control.",
      "defaults": [
        "seaweedfs",
        "rustfs",
        "minio",
        "s3"
      ]
    },
    {
      "id": "access-policy",
      "group": "governance",
      "name": "Access control and policy",
      "short": "Access policy",
      "question": "Who may read which rows and columns?",
      "what": "Grants, row filters and column masks, enforced the same way in every engine.",
      "defaults": [
        "unity-catalog",
        "cedar",
        "openfga",
        "opa"
      ]
    },
    {
      "id": "lineage",
      "group": "governance",
      "name": "Lineage",
      "short": "Lineage",
      "question": "Where did this value come from?",
      "what": "Events from every job and query describing what was read and written, down to columns.",
      "defaults": [
        "openlineage",
        "marquez"
      ]
    },
    {
      "id": "quality",
      "group": "governance",
      "name": "Data quality and contracts",
      "short": "Quality",
      "question": "Is the data right?",
      "what": "Expectations and contracts checked as data lands and before it is published.",
      "defaults": [
        "great-expectations",
        "soda-core"
      ]
    },
    {
      "id": "metadata",
      "group": "governance",
      "name": "Discovery and audit",
      "short": "Discovery",
      "question": "What data exists, and who used it?",
      "what": "Search, ownership, glossary and an audit trail across the platform.",
      "defaults": [
        "datahub",
        "openmetadata"
      ]
    },
    {
      "id": "orchestration",
      "group": "operations",
      "name": "Orchestration",
      "short": "Orchestration",
      "question": "What runs the jobs, and when?",
      "what": "Schedules, dependencies, retries and backfills. Agents trigger runs through it instead of racing scheduled ones.",
      "defaults": [
        "airflow",
        "dagster",
        "temporal"
      ]
    },
    {
      "id": "maintenance",
      "group": "operations",
      "name": "Table maintenance",
      "short": "Maintenance",
      "question": "What keeps tables fast and storage bounded?",
      "what": "Compaction, manifest rewrites and snapshot expiry, on a schedule.",
      "defaults": [
        "iceberg-maintenance"
      ]
    },
    {
      "id": "observability",
      "group": "operations",
      "name": "Platform observability",
      "short": "Observability",
      "question": "Is the platform healthy?",
      "what": "Metrics, logs and traces from every service, and the Spark UI and event logs for every job.",
      "defaults": [
        "opentelemetry",
        "prometheus",
        "grafana"
      ]
    },
    {
      "id": "deploy",
      "group": "operations",
      "name": "Runtime, CI/CD and IaC",
      "short": "Deploy",
      "question": "Where does it run, and how do changes ship?",
      "what": "The cluster or containers it runs on, infrastructure as code, and the pipeline that reviews and applies changes, including agents' pull requests.",
      "defaults": [
        "kubernetes",
        "opentofu",
        "argocd"
      ]
    },
    {
      "id": "identity",
      "group": "operations",
      "name": "Identity and secrets",
      "short": "Identity",
      "question": "Who is each person, service and agent?",
      "what": "Single sign-on for people, workload identity for services and agents, and secret storage.",
      "defaults": [
        "keycloak",
        "spiffe",
        "openbao"
      ]
    },
    {
      "id": "semantic",
      "group": "serving",
      "name": "Semantic layer",
      "short": "Metrics",
      "question": "Where are metrics defined once?",
      "what": "Governed measures and dimensions that dashboards, notebooks and agents all query.",
      "defaults": [
        "metric-views"
      ]
    },
    {
      "id": "bi",
      "group": "serving",
      "name": "Dashboards and notebooks",
      "short": "BI + notebooks",
      "question": "Where do people look at results?",
      "what": "BI dashboards and notebooks over the governed tables.",
      "defaults": [
        "superset",
        "marimo",
        "jupyter"
      ]
    },
    {
      "id": "apps",
      "group": "serving",
      "name": "Apps and APIs",
      "short": "Apps + APIs",
      "question": "How do applications get results?",
      "what": "Arrow Flight SQL, Kafka topics and key-value stores for applications.",
      "defaults": [
        "flight-sql",
        "kafka-sink"
      ]
    },
    {
      "id": "sharing",
      "group": "serving",
      "name": "Data sharing",
      "short": "Sharing",
      "question": "How do other organizations get live data?",
      "what": "An open protocol for read access to live tables without copying them.",
      "defaults": [
        "delta-sharing"
      ]
    }
  ],
  "teams": [
    {
      "id": "data-engineering",
      "name": "Data engineers",
      "cares": "Pipelines that are correct, idempotent and cheap to rerun.",
      "slots": [
        "ingest-batch",
        "ingest-stream",
        "ingest-cdc",
        "batch",
        "pipelines",
        "streaming",
        "realtime",
        "orchestration",
        "quality",
        "maintenance",
        "format"
      ],
      "learn": [
        {
          "label": "Spark Masterclass (book)",
          "href": "https://lisancao.github.io/spark-masterclass/"
        },
        {
          "label": "Lakehouse masterclass, chapters 7 to 10",
          "href": "https://github.com/open-lakehouse/lakehouse-masterclass/tree/main/textbook/chapters"
        },
        {
          "label": "Getting started with Apache Spark",
          "href": "/learn/getting-started/apache-spark"
        }
      ]
    },
    {
      "id": "agents",
      "name": "AI agents",
      "cares": "Tools with clear arguments, a sandbox to write into, fast feedback from dry runs, and version-pinned context.",
      "slots": [
        "agent-tools",
        "agent-sandbox",
        "spark-connect",
        "local",
        "pipelines",
        "semantic"
      ],
      "learn": [
        {
          "label": "Agentic data engineering",
          "href": "/agentic-data-engineering"
        },
        {
          "label": "The agentic lakehouse",
          "href": "/agentic-lakehouse"
        },
        {
          "label": "Lakehouse masterclass, chapter 3",
          "href": "https://github.com/open-lakehouse/lakehouse-masterclass/blob/main/textbook/chapters/ch03-agentic-data-engineering.md"
        }
      ]
    },
    {
      "id": "ai-engineering",
      "name": "ML and AI engineers",
      "cares": "Reproducible models, traced and evaluated agents, and a model gateway they control.",
      "slots": [
        "ml",
        "agent-models",
        "agent-observability",
        "agent-harness",
        "agent-tools"
      ],
      "learn": [
        {
          "label": "Getting started with MLflow",
          "href": "/learn/getting-started/mlflow"
        },
        {
          "label": "Getting started with Omnigent",
          "href": "/learn/getting-started/omnigent"
        },
        {
          "label": "Lakehouse masterclass, chapters 12 and 13",
          "href": "https://github.com/open-lakehouse/lakehouse-masterclass/tree/main/textbook/chapters"
        }
      ]
    },
    {
      "id": "analytics",
      "name": "Analysts and analytics engineers",
      "cares": "One definition of each metric, fast SQL, and dashboards that match.",
      "slots": [
        "sql",
        "semantic",
        "bi",
        "batch"
      ],
      "learn": [
        {
          "label": "Spark metric views demo",
          "href": "https://github.com/lisancao/spark-demos/tree/main/demos/01_metrics_views"
        },
        {
          "label": "DuckDB Delta grows up",
          "href": "/blog/delta-lake/duckdb-delta-grows-up"
        }
      ]
    },
    {
      "id": "platform",
      "name": "Platform engineers",
      "cares": "A platform that is boring to run: deployable from code, observable, with identities for every person, service and agent.",
      "slots": [
        "storage",
        "catalog",
        "deploy",
        "identity",
        "observability",
        "agent-sandbox",
        "spark-connect"
      ],
      "learn": [
        {
          "label": "open-lakehouse repository",
          "href": "https://github.com/open-lakehouse/open-lakehouse"
        },
        {
          "label": "Getting started with Unity Catalog",
          "href": "/learn/getting-started/unity-catalog"
        }
      ]
    },
    {
      "id": "governance",
      "name": "Governance and security",
      "cares": "Policies that hold in every engine and for every agent, lineage for audits, and least privilege by default.",
      "slots": [
        "access-policy",
        "lineage",
        "metadata",
        "catalog",
        "agent-harness",
        "identity"
      ],
      "learn": [
        {
          "label": "Open governance",
          "href": "/technologies/open-governance"
        },
        {
          "label": "Policy pushdown and open lineage",
          "href": "/reference-architectures/policy-and-lineage"
        }
      ]
    },
    {
      "id": "partners",
      "name": "External partners",
      "cares": "Live, read-only access to the tables they are entitled to.",
      "slots": [
        "sharing"
      ],
      "learn": [
        {
          "label": "Open data sharing",
          "href": "/reference-architectures/open-data-sharing"
        }
      ]
    }
  ],
  "components": [
    {
      "id": "kafka",
      "name": "Apache Kafka",
      "slot": "ingest-stream",
      "blurb": "A distributed event log that producers append to and consumers read from by offset.",
      "url": "https://kafka.apache.org",
      "repo": "https://github.com/apache/kafka",
      "license": "Apache-2.0",
      "steward": "Apache Software Foundation"
    },
    {
      "id": "debezium",
      "name": "Debezium",
      "slot": "ingest-cdc",
      "blurb": "Change data capture connectors that turn database transaction logs into event streams.",
      "url": "https://debezium.io",
      "repo": "https://github.com/debezium/debezium",
      "license": "Apache-2.0"
    },
    {
      "id": "kafka-connect",
      "name": "Kafka Connect",
      "slot": "ingest-stream",
      "blurb": "The Kafka framework for running source and sink connectors.",
      "url": "https://kafka.apache.org/documentation/#connect",
      "license": "Apache-2.0",
      "steward": "Apache Software Foundation"
    },
    {
      "id": "tributary",
      "name": "tributary",
      "slot": "sources",
      "blurb": "An open-lakehouse data generator that produces synthetic data to load into a lakehouse.",
      "url": "https://github.com/open-lakehouse/tributary",
      "repo": "https://github.com/open-lakehouse/tributary"
    },
    {
      "id": "auto-cdc",
      "name": "AUTO CDC (Spark Declarative Pipelines)",
      "slot": "ingest-cdc",
      "blurb": "The Spark Declarative Pipelines flow that applies an ordered change feed to a target table as SCD type 1 or type 2.",
      "url": "https://spark.apache.org/docs/latest/declarative-pipelines-programming-guide.html",
      "license": "Apache-2.0",
      "steward": "Apache Software Foundation",
      "sitePath": "/blog/apache-spark/auto-cdc-declarative-pipelines"
    },
    {
      "id": "s3",
      "name": "Amazon S3",
      "slot": "storage",
      "blurb": "Object storage on AWS; the de facto API that most lakehouse engines speak.",
      "url": "https://aws.amazon.com/s3/"
    },
    {
      "id": "seaweedfs",
      "name": "SeaweedFS",
      "slot": "storage",
      "blurb": "A self-hosted distributed file and object store with an S3-compatible gateway.",
      "url": "https://github.com/seaweedfs/seaweedfs",
      "repo": "https://github.com/seaweedfs/seaweedfs",
      "license": "Apache-2.0"
    },
    {
      "id": "minio",
      "name": "MinIO",
      "slot": "storage",
      "blurb": "A self-hosted S3-compatible object store.",
      "url": "https://min.io",
      "repo": "https://github.com/minio/minio",
      "license": "AGPL-3.0"
    },
    {
      "id": "local-fs",
      "name": "Local filesystem",
      "slot": "storage",
      "blurb": "A directory on disk; every open table format can use it for development.",
      "url": "https://en.wikipedia.org/wiki/File_system"
    },
    {
      "id": "gcs-adls",
      "name": "GCS / ADLS",
      "slot": "storage",
      "blurb": "Google Cloud Storage and Azure Data Lake Storage, the object stores on GCP and Azure.",
      "url": "https://cloud.google.com/storage"
    },
    {
      "id": "delta",
      "name": "Delta Lake",
      "slot": "format",
      "blurb": "An open table format that adds ACID transactions, time travel and schema enforcement to Parquet files through a JSON transaction log.",
      "url": "https://delta.io",
      "repo": "https://github.com/delta-io/delta",
      "license": "Apache-2.0",
      "steward": "Linux Foundation",
      "sitePath": "/technologies/delta-lake"
    },
    {
      "id": "iceberg",
      "name": "Apache Iceberg",
      "slot": "format",
      "blurb": "An open table format that tracks table state through a tree of metadata, manifest lists and manifests over Parquet, ORC or Avro files.",
      "url": "https://iceberg.apache.org",
      "repo": "https://github.com/apache/iceberg",
      "license": "Apache-2.0",
      "steward": "Apache Software Foundation",
      "sitePath": "/technologies/lakehouse-formats"
    },
    {
      "id": "hudi",
      "name": "Apache Hudi",
      "slot": "format",
      "blurb": "An open table format built around record-level upserts, incremental queries and a timeline of table actions.",
      "url": "https://hudi.apache.org",
      "repo": "https://github.com/apache/hudi",
      "license": "Apache-2.0",
      "steward": "Apache Software Foundation",
      "sitePath": "/technologies/lakehouse-formats"
    },
    {
      "id": "parquet",
      "name": "Apache Parquet",
      "slot": "format",
      "blurb": "The columnar file format that every open table format stores its data in by default.",
      "url": "https://parquet.apache.org",
      "license": "Apache-2.0",
      "steward": "Apache Software Foundation"
    },
    {
      "id": "unity-catalog",
      "name": "Unity Catalog OSS",
      "slot": "catalog",
      "blurb": "An open catalog for tables, volumes, functions and models with a three-level namespace, an Iceberg REST endpoint and credential vending.",
      "url": "https://unitycatalog.io",
      "repo": "https://github.com/unitycatalog/unitycatalog",
      "license": "Apache-2.0",
      "steward": "LF AI & Data Foundation",
      "sitePath": "/technologies/catalogs"
    },
    {
      "id": "unitycatalog-rs",
      "name": "unitycatalog-rs",
      "slot": "catalog",
      "blurb": "An independent Rust implementation of the Unity Catalog OSS APIs, with Delta and Iceberg REST, Delta Sharing and credential vending.",
      "url": "https://github.com/open-lakehouse/unitycatalog-rs",
      "repo": "https://github.com/open-lakehouse/unitycatalog-rs"
    },
    {
      "id": "polaris",
      "name": "Apache Polaris",
      "slot": "catalog",
      "blurb": "A catalog that implements the Apache Iceberg REST catalog specification.",
      "url": "https://polaris.apache.org",
      "repo": "https://github.com/apache/polaris",
      "license": "Apache-2.0",
      "steward": "Apache Software Foundation",
      "sitePath": "/technologies/catalogs"
    },
    {
      "id": "lakekeeper",
      "name": "Lakekeeper",
      "slot": "catalog",
      "blurb": "An Apache Iceberg REST catalog written in Rust.",
      "url": "https://docs.lakekeeper.io",
      "repo": "https://github.com/lakekeeper/lakekeeper",
      "license": "Apache-2.0",
      "sitePath": "/technologies/catalogs"
    },
    {
      "id": "hive-metastore",
      "name": "Hive Metastore",
      "slot": "catalog",
      "blurb": "The original Hadoop-era table catalog that Spark, Trino and others still read.",
      "url": "https://hive.apache.org",
      "license": "Apache-2.0",
      "steward": "Apache Software Foundation"
    },
    {
      "id": "spark",
      "name": "Apache Spark",
      "slot": "batch",
      "blurb": "A distributed engine for batch SQL, DataFrames, Structured Streaming and declarative pipelines, reachable remotely over Spark Connect.",
      "url": "https://spark.apache.org",
      "repo": "https://github.com/apache/spark",
      "license": "Apache-2.0",
      "steward": "Apache Software Foundation",
      "sitePath": "/learn/getting-started/apache-spark"
    },
    {
      "id": "flink",
      "name": "Apache Flink",
      "slot": "streaming",
      "blurb": "A stateful stream processor with event-time windows, timers and exactly-once checkpoints.",
      "url": "https://flink.apache.org",
      "repo": "https://github.com/apache/flink",
      "license": "Apache-2.0",
      "steward": "Apache Software Foundation",
      "sitePath": "/technologies/compute-engines"
    },
    {
      "id": "trino",
      "name": "Trino",
      "slot": "sql",
      "blurb": "A distributed SQL query engine that reads many catalogs and table formats in one query.",
      "url": "https://trino.io",
      "repo": "https://github.com/trinodb/trino",
      "license": "Apache-2.0",
      "steward": "Trino Software Foundation"
    },
    {
      "id": "duckdb",
      "name": "DuckDB",
      "slot": "sql",
      "blurb": "An in-process analytical SQL database that reads Parquet, Delta and Iceberg.",
      "url": "https://duckdb.org",
      "repo": "https://github.com/duckdb/duckdb",
      "license": "MIT",
      "steward": "DuckDB Foundation"
    },
    {
      "id": "datafusion",
      "name": "Apache DataFusion",
      "slot": "sql",
      "blurb": "An embeddable query engine in Rust built on Apache Arrow.",
      "url": "https://datafusion.apache.org",
      "repo": "https://github.com/apache/datafusion",
      "license": "Apache-2.0",
      "steward": "Apache Software Foundation",
      "sitePath": "/technologies/compute-engines"
    },
    {
      "id": "sdp",
      "name": "Spark Declarative Pipelines",
      "slot": "pipelines",
      "blurb": "The Spark 4.1+ framework where you declare tables and flows and Spark works out the order, retries and incremental updates.",
      "url": "https://spark.apache.org/docs/latest/declarative-pipelines-programming-guide.html",
      "license": "Apache-2.0",
      "steward": "Apache Software Foundation"
    },
    {
      "id": "spark-rtm",
      "name": "Spark Real-Time Mode",
      "slot": "realtime",
      "blurb": "A Structured Streaming trigger that processes records continuously for low-latency stateless and stateful queries.",
      "url": "https://spark.apache.org/docs/latest/streaming/index.html",
      "license": "Apache-2.0",
      "steward": "Apache Software Foundation"
    },
    {
      "id": "polars",
      "name": "Polars",
      "slot": "sql",
      "blurb": "A DataFrame library in Rust with Python bindings, built on Apache Arrow.",
      "url": "https://pola.rs",
      "repo": "https://github.com/pola-rs/polars",
      "license": "MIT"
    },
    {
      "id": "airflow",
      "name": "Apache Airflow",
      "slot": "orchestration",
      "blurb": "A workflow scheduler where pipelines are Python DAGs of tasks.",
      "url": "https://airflow.apache.org",
      "repo": "https://github.com/apache/airflow",
      "license": "Apache-2.0",
      "steward": "Apache Software Foundation",
      "sitePath": "/technologies/orchestration"
    },
    {
      "id": "temporal",
      "name": "Temporal",
      "slot": "orchestration",
      "blurb": "A durable execution engine for long-running workflows written as code.",
      "url": "https://temporal.io",
      "repo": "https://github.com/temporalio/temporal",
      "license": "MIT",
      "sitePath": "/technologies/orchestration"
    },
    {
      "id": "dagster",
      "name": "Dagster",
      "slot": "orchestration",
      "blurb": "An asset-oriented orchestrator for data pipelines.",
      "url": "https://dagster.io",
      "repo": "https://github.com/dagster-io/dagster",
      "license": "Apache-2.0"
    },
    {
      "id": "kubernetes",
      "name": "Kubernetes",
      "slot": "deploy",
      "blurb": "The container scheduler that most self-hosted lakehouse services run on in production.",
      "url": "https://kubernetes.io",
      "repo": "https://github.com/kubernetes/kubernetes",
      "license": "Apache-2.0",
      "steward": "Cloud Native Computing Foundation"
    },
    {
      "id": "mlflow",
      "name": "MLflow",
      "slot": "ml",
      "blurb": "An open platform for experiment tracking, a model registry, GenAI tracing and evaluation.",
      "url": "https://mlflow.org",
      "repo": "https://github.com/mlflow/mlflow",
      "license": "Apache-2.0",
      "steward": "Linux Foundation",
      "sitePath": "/learn/getting-started/mlflow"
    },
    {
      "id": "omnigent",
      "name": "Omnigent",
      "slot": "agent-harness",
      "blurb": "An agent harness that runs AI agents with tools, skills and policies.",
      "url": "https://omnigent.ai",
      "sitePath": "/learn/getting-started/omnigent"
    },
    {
      "id": "ollama",
      "name": "Ollama",
      "slot": "agent-models",
      "blurb": "A local runtime for open-weight language models.",
      "url": "https://ollama.com",
      "repo": "https://github.com/ollama/ollama",
      "license": "MIT"
    },
    {
      "id": "mcp",
      "name": "Model Context Protocol",
      "slot": "agent-tools",
      "blurb": "An open protocol that exposes tools and data to AI agents.",
      "url": "https://modelcontextprotocol.io",
      "license": "MIT"
    },
    {
      "id": "lakehouse-agent-kit",
      "name": "lakehouse-agent-kit",
      "slot": "agent-tools",
      "blurb": "Agent skills for Spark, Delta, Iceberg, Unity Catalog OSS, Kafka, Airflow and MLflow.",
      "url": "https://github.com/open-lakehouse/lakehouse-agent-kit",
      "repo": "https://github.com/open-lakehouse/lakehouse-agent-kit"
    },
    {
      "id": "delta-sharing",
      "name": "Delta Sharing",
      "slot": "sharing",
      "blurb": "An open REST protocol for sharing live tables across organizations without copying them.",
      "url": "https://delta.io/sharing",
      "repo": "https://github.com/delta-io/delta-sharing",
      "license": "Apache-2.0",
      "steward": "Linux Foundation"
    },
    {
      "id": "distributary",
      "name": "distributary",
      "slot": "sharing",
      "blurb": "A Rust implementation of the Delta Sharing protocol: client, admin API and a sharing server.",
      "url": "https://github.com/open-lakehouse/distributary",
      "repo": "https://github.com/open-lakehouse/distributary"
    },
    {
      "id": "flight-sql",
      "name": "Arrow Flight SQL",
      "slot": "apps",
      "blurb": "A gRPC protocol for running SQL and streaming Arrow record batches back to the client.",
      "url": "https://arrow.apache.org/docs/format/FlightSql.html",
      "license": "Apache-2.0",
      "steward": "Apache Software Foundation"
    },
    {
      "id": "hydrofoil",
      "name": "hydrofoil",
      "slot": "apps",
      "blurb": "An open-lakehouse Arrow Flight SQL server over lakehouse tables.",
      "url": "https://github.com/open-lakehouse/hydrofoil",
      "repo": "https://github.com/open-lakehouse/hydrofoil"
    },
    {
      "id": "spark-connect",
      "name": "Spark Connect",
      "slot": "spark-connect",
      "blurb": "Spark's gRPC client-server protocol; thin clients in Python, Scala, Go, Rust and more send plans to a remote Spark.",
      "url": "https://spark.apache.org/docs/latest/spark-connect-overview.html",
      "license": "Apache-2.0",
      "steward": "Apache Software Foundation",
      "sitePath": "/blog/apache-spark/idiots-guide-spark-connect-clients"
    },
    {
      "id": "metric-views",
      "name": "Spark metric views",
      "slot": "semantic",
      "blurb": "Spark's semantic layer: measures and dimensions declared in YAML over a source table and queried with MEASURE().",
      "url": "https://github.com/lisancao/spark-demos/tree/main/demos/01_metrics_views",
      "license": "Apache-2.0",
      "steward": "Apache Software Foundation"
    },
    {
      "id": "kafka-sink",
      "name": "Kafka sink topic",
      "slot": "apps",
      "blurb": "Results written back to a Kafka topic for downstream services.",
      "url": "https://kafka.apache.org"
    },
    {
      "id": "superset",
      "name": "Apache Superset",
      "slot": "bi",
      "blurb": "An open source BI and dashboarding application.",
      "url": "https://superset.apache.org",
      "repo": "https://github.com/apache/superset",
      "license": "Apache-2.0",
      "steward": "Apache Software Foundation"
    },
    {
      "id": "jupyter",
      "name": "Jupyter",
      "slot": "bi",
      "blurb": "Notebooks for interactive Python, SQL and Spark.",
      "url": "https://jupyter.org",
      "license": "BSD-3-Clause",
      "steward": "Project Jupyter"
    },
    {
      "id": "marimo",
      "name": "marimo",
      "slot": "bi",
      "blurb": "A reactive Python notebook stored as plain .py files.",
      "url": "https://marimo.io",
      "repo": "https://github.com/marimo-team/marimo",
      "license": "Apache-2.0"
    },
    {
      "id": "grafana",
      "name": "Grafana",
      "slot": "observability",
      "blurb": "Dashboards and alerting over metrics and SQL sources.",
      "url": "https://grafana.com",
      "repo": "https://github.com/grafana/grafana",
      "license": "AGPL-3.0"
    },
    {
      "id": "openlineage",
      "name": "OpenLineage",
      "slot": "lineage",
      "blurb": "An open standard for emitting lineage events from jobs, with integrations for Spark, Airflow, Flink and dbt.",
      "url": "https://openlineage.io",
      "repo": "https://github.com/OpenLineage/OpenLineage",
      "license": "Apache-2.0",
      "steward": "LF AI & Data Foundation",
      "sitePath": "/technologies/open-governance#open-lineage"
    },
    {
      "id": "marquez",
      "name": "Marquez",
      "slot": "lineage",
      "blurb": "The reference OpenLineage metadata server and lineage UI.",
      "url": "https://marquezproject.ai",
      "repo": "https://github.com/MarquezProject/marquez",
      "license": "Apache-2.0",
      "steward": "LF AI & Data Foundation"
    },
    {
      "id": "policast",
      "name": "policast",
      "slot": "access-policy",
      "blurb": "Author governance once in Cedar, compile it to portable CEL, and push enforcement into the query engine's physical plan.",
      "url": "https://github.com/open-lakehouse/policast",
      "repo": "https://github.com/open-lakehouse/policast",
      "sitePath": "/technologies/open-governance#open-policies"
    },
    {
      "id": "cedar",
      "name": "Cedar",
      "slot": "access-policy",
      "blurb": "A policy language and evaluation engine for authorization.",
      "url": "https://www.cedarpolicy.com",
      "repo": "https://github.com/cedar-policy/cedar",
      "license": "Apache-2.0"
    },
    {
      "id": "opa",
      "name": "Open Policy Agent",
      "slot": "access-policy",
      "blurb": "A general-purpose policy engine with the Rego language.",
      "url": "https://www.openpolicyagent.org",
      "repo": "https://github.com/open-policy-agent/opa",
      "license": "Apache-2.0",
      "steward": "Cloud Native Computing Foundation"
    },
    {
      "id": "rustfs",
      "name": "RustFS",
      "slot": "storage",
      "blurb": "A self-hosted S3-compatible object store written in Rust.",
      "url": "https://github.com/rustfs/rustfs",
      "repo": "https://github.com/rustfs/rustfs",
      "license": "Apache-2.0"
    },
    {
      "id": "postgres",
      "name": "PostgreSQL",
      "slot": "catalog",
      "blurb": "The relational database most open catalogs use to store their metadata.",
      "url": "https://www.postgresql.org",
      "license": "PostgreSQL"
    },
    {
      "id": "pyiceberg",
      "name": "PyIceberg",
      "slot": "sql",
      "blurb": "The pure-Python Apache Iceberg library for reading and writing Iceberg tables without a JVM.",
      "url": "https://py.iceberg.apache.org",
      "repo": "https://github.com/apache/iceberg-python",
      "license": "Apache-2.0",
      "steward": "Apache Software Foundation"
    },
    {
      "id": "openfga",
      "name": "OpenFGA",
      "slot": "access-policy",
      "blurb": "A relationship-based authorization service modelled on Google Zanzibar.",
      "url": "https://openfga.dev",
      "repo": "https://github.com/openfga/openfga",
      "license": "Apache-2.0",
      "steward": "Cloud Native Computing Foundation"
    },
    {
      "id": "envoy",
      "name": "Envoy",
      "slot": "access-policy",
      "blurb": "A proxy used here to terminate mTLS and route each client certificate to its own backend.",
      "url": "https://www.envoyproxy.io",
      "repo": "https://github.com/envoyproxy/envoy",
      "license": "Apache-2.0",
      "steward": "Cloud Native Computing Foundation"
    },
    {
      "id": "breakwater",
      "name": "breakwater",
      "slot": "access-policy",
      "blurb": "Cedar fine-grained access control for Apache DataFusion: an access gate plus row filters and column masks applied in the query planner.",
      "url": "https://github.com/open-lakehouse/breakwater",
      "repo": "https://github.com/open-lakehouse/breakwater",
      "license": "Apache-2.0"
    },
    {
      "id": "headwaters",
      "name": "headwaters",
      "slot": "lineage",
      "blurb": "Experimental Rust OpenLineage service: an append-only event log in Postgres, projected read tables, a read API and a UI.",
      "url": "https://github.com/open-lakehouse/headwaters",
      "repo": "https://github.com/open-lakehouse/headwaters",
      "license": "Apache-2.0"
    },
    {
      "id": "open-lineage-connect",
      "name": "open-lineage-connect",
      "slot": "lineage",
      "blurb": "An OpenLineage pipeline that stores lineage events as Delta and Iceberg tables, with a Spark 4 plugin for column-level lineage.",
      "url": "https://github.com/open-lakehouse/open-lineage-connect",
      "repo": "https://github.com/open-lakehouse/open-lineage-connect",
      "license": "Apache-2.0"
    },
    {
      "id": "ecs-fargate",
      "name": "Amazon ECS on Fargate",
      "slot": "deploy",
      "blurb": "AWS's serverless container runtime; it runs the catalog server without managing hosts.",
      "url": "https://aws.amazon.com/fargate/"
    },
    {
      "id": "neon",
      "name": "Neon",
      "slot": "catalog",
      "blurb": "Serverless Postgres with branching; used for catalog metadata and, in luminescent-lakehouse, to host the services themselves.",
      "url": "https://neon.com"
    },
    {
      "id": "terraform",
      "name": "Terraform",
      "slot": "deploy",
      "blurb": "Infrastructure as code; the reference repos ship their cloud deployments as Terraform.",
      "url": "https://www.terraform.io",
      "license": "BUSL-1.1"
    },
    {
      "id": "opentofu",
      "name": "OpenTofu",
      "slot": "deploy",
      "blurb": "An open source fork of Terraform governed by the Linux Foundation.",
      "url": "https://opentofu.org",
      "license": "MPL-2.0",
      "steward": "Linux Foundation"
    },
    {
      "id": "redis",
      "name": "Redis",
      "slot": "apps",
      "blurb": "An in-memory key-value store used to serve the latest streaming state to applications.",
      "url": "https://redis.io"
    },
    {
      "id": "valkey",
      "name": "Valkey",
      "slot": "apps",
      "blurb": "A Linux Foundation fork of Redis under the BSD license.",
      "url": "https://valkey.io",
      "license": "BSD-3-Clause",
      "steward": "Linux Foundation"
    },
    {
      "id": "dashboard",
      "name": "Next.js dashboard",
      "slot": "bi",
      "blurb": "The read-only web dashboard that ships with the open-lakehouse stack.",
      "url": "https://github.com/open-lakehouse/open-lakehouse/tree/main/dashboard"
    },
    {
      "id": "gitops",
      "name": "GitOps CI gate",
      "slot": "deploy",
      "blurb": "Pull-request-only changes with a dry run against the real catalog before anything is applied.",
      "url": "https://github.com/open-lakehouse/safe-spark-agents-paper"
    },
    {
      "id": "spark-connect-clients",
      "name": "Spark Connect clients",
      "slot": "spark-connect",
      "blurb": "Thin clients in Python, Scala, Go, Rust, Swift and more that send query plans to a remote Spark Connect server.",
      "url": "https://spark.apache.org/docs/latest/spark-connect-overview.html",
      "sitePath": "/blog/apache-spark/idiots-guide-spark-connect-clients"
    },
    {
      "id": "dlt",
      "name": "dlt",
      "slot": "ingest-batch",
      "blurb": "A Python library for loading data from APIs, databases and files into tables.",
      "url": "https://dlthub.com",
      "repo": "https://github.com/dlt-hub/dlt",
      "license": "Apache-2.0"
    },
    {
      "id": "omnigent-sandbox",
      "name": "Omnigent sandbox hosts",
      "slot": "agent-sandbox",
      "blurb": "Run the Omnigent runner in a remote container or microVM per session; provider credentials stay on the launching process and never enter the sandbox.",
      "url": "https://omnigent.ai/docs/deploy/cloud-sandbox-host"
    },
    {
      "id": "vllm",
      "name": "vLLM",
      "slot": "agent-models",
      "blurb": "A high-throughput inference server for open-weight language models.",
      "url": "https://vllm.ai",
      "repo": "https://github.com/vllm-project/vllm",
      "license": "Apache-2.0"
    },
    {
      "id": "opentelemetry",
      "name": "OpenTelemetry",
      "slot": "observability",
      "blurb": "The open standard and SDKs for traces, metrics and logs.",
      "url": "https://opentelemetry.io",
      "repo": "https://github.com/open-telemetry",
      "license": "Apache-2.0",
      "steward": "Cloud Native Computing Foundation"
    },
    {
      "id": "prometheus",
      "name": "Prometheus",
      "slot": "observability",
      "blurb": "A metrics database and alerting system.",
      "url": "https://prometheus.io",
      "repo": "https://github.com/prometheus/prometheus",
      "license": "Apache-2.0",
      "steward": "Cloud Native Computing Foundation"
    },
    {
      "id": "spark-feather",
      "name": "Spark local mode (Project Feather)",
      "slot": "local",
      "blurb": "Spark in a single process; Spark 4.3 adds shuffle-free single-task execution for small queries (spark.sql.optimizer.singleTaskExecution.enabled, off by default).",
      "url": "https://issues.apache.org/jira/browse/SPARK-56978",
      "license": "Apache-2.0",
      "steward": "Apache Software Foundation"
    },
    {
      "id": "great-expectations",
      "name": "Great Expectations",
      "slot": "quality",
      "blurb": "Declarative data quality tests (expectations) run against tables and batches.",
      "url": "https://greatexpectations.io",
      "repo": "https://github.com/great-expectations/great_expectations",
      "license": "Apache-2.0"
    },
    {
      "id": "soda-core",
      "name": "Soda Core",
      "slot": "quality",
      "blurb": "Data quality checks written in YAML and run against tables.",
      "url": "https://github.com/sodadata/soda-core",
      "repo": "https://github.com/sodadata/soda-core",
      "license": "Apache-2.0"
    },
    {
      "id": "datahub",
      "name": "DataHub",
      "slot": "metadata",
      "blurb": "A metadata platform for search, ownership, glossary and lineage across data systems.",
      "url": "https://datahubproject.io",
      "repo": "https://github.com/datahub-project/datahub",
      "license": "Apache-2.0"
    },
    {
      "id": "openmetadata",
      "name": "OpenMetadata",
      "slot": "metadata",
      "blurb": "A metadata platform for discovery, governance, quality and collaboration.",
      "url": "https://open-metadata.org",
      "repo": "https://github.com/open-metadata/OpenMetadata",
      "license": "Apache-2.0"
    },
    {
      "id": "iceberg-maintenance",
      "name": "Iceberg maintenance procedures",
      "slot": "maintenance",
      "blurb": "rewrite_data_files, rewrite_manifests and expire_snapshots, called from Spark SQL on a schedule.",
      "url": "https://iceberg.apache.org/docs/latest/maintenance/",
      "license": "Apache-2.0",
      "steward": "Apache Software Foundation"
    },
    {
      "id": "argocd",
      "name": "Argo CD",
      "slot": "deploy",
      "blurb": "GitOps continuous delivery for Kubernetes.",
      "url": "https://argoproj.github.io/cd/",
      "repo": "https://github.com/argoproj/argo-cd",
      "license": "Apache-2.0",
      "steward": "Cloud Native Computing Foundation"
    },
    {
      "id": "keycloak",
      "name": "Keycloak",
      "slot": "identity",
      "blurb": "Identity and access management with single sign-on, OIDC and SAML.",
      "url": "https://www.keycloak.org",
      "repo": "https://github.com/keycloak/keycloak",
      "license": "Apache-2.0",
      "steward": "Cloud Native Computing Foundation"
    },
    {
      "id": "spiffe",
      "name": "SPIFFE / SPIRE",
      "slot": "identity",
      "blurb": "Workload identity: cryptographic identities for services and agents.",
      "url": "https://spiffe.io",
      "repo": "https://github.com/spiffe/spire",
      "license": "Apache-2.0",
      "steward": "Cloud Native Computing Foundation"
    },
    {
      "id": "openbao",
      "name": "OpenBao",
      "slot": "identity",
      "blurb": "An open source fork of HashiCorp Vault for secrets management.",
      "url": "https://openbao.org",
      "repo": "https://github.com/openbao/openbao",
      "license": "MPL-2.0"
    }
  ],
  "patterns": [
    {
      "slug": "agentic-lakehouse",
      "title": "The agentic lakehouse",
      "stackLine": "Omnigent and MLflow over sandboxed Spark Connect sessions, on Iceberg and Unity Catalog",
      "tagline": "Agents get a sandbox, a Spark session and a catalog identity. The platform decides the rest.",
      "category": "Platform",
      "definition": "The agentic lakehouse architecture gives each AI agent a governed path to data. Omnigent runs the agent and evaluates policies on every tool call, model request and file operation, at session, agent and server level; MLflow traces and evaluates every step and fronts model providers. Each agent session runs in a sandbox, locally or on Kubernetes, with provider credentials kept outside it. Inside, the agent gets a Spark client over Spark Connect: a local Spark with Project Feather's shuffle-free execution for fast work on a subset of data, or a remote session pinned to its identity. Through Spark it can run batch, streaming, Real-Time Mode and declarative pipelines against Apache Iceberg tables in Unity Catalog, which authorizes each request and vends storage credentials scoped to what the agent may touch.",
      "whenToUse": [
        "You want agents to build and operate pipelines, not only answer questions.",
        "You need one governance story for people, services and agents.",
        "You want agents to iterate fast on small data without touching production."
      ],
      "notFor": [
        "A single question-answering assistant over a few tables: the semantic layer architecture is lighter."
      ],
      "nodes": [
        {
          "label": "Operational systems and event streams",
          "slot": "sources",
          "role": "The data agents work on"
        },
        {
          "component": "kafka",
          "slot": "ingest-stream",
          "role": "Events agents can build streaming pipelines over",
          "detail": true
        },
        {
          "component": "omnigent",
          "slot": "agent-harness",
          "role": "Runs agents; policies return ALLOW, DENY or ASK at session, agent and server level",
          "swaps": []
        },
        {
          "component": "omnigent-sandbox",
          "slot": "agent-sandbox",
          "role": "A container or microVM per session; provider credentials never enter it",
          "swaps": [
            "kubernetes"
          ]
        },
        {
          "component": "kubernetes",
          "slot": "agent-sandbox",
          "role": "Cluster for sandboxes and Spark executors",
          "detail": true
        },
        {
          "component": "mcp",
          "slot": "agent-tools",
          "role": "Named lakehouse tools: read a table, dry-run a pipeline, run one SQL statement",
          "swaps": [
            "lakehouse-agent-kit"
          ]
        },
        {
          "component": "mlflow",
          "slot": "agent-models",
          "role": "AI Gateway in front of hosted providers",
          "swaps": [
            "vllm",
            "ollama"
          ]
        },
        {
          "component": "mlflow",
          "slot": "agent-observability",
          "role": "Traces every agent step; evaluates results against trusted tables"
        },
        {
          "component": "spark-connect",
          "slot": "spark-connect",
          "role": "One client session per agent: local in the sandbox, or a remote endpoint pinned to its identity"
        },
        {
          "component": "spark-feather",
          "slot": "local",
          "role": "Fast local Spark on a subset of data, same catalog",
          "version": "Spark 4.3"
        },
        {
          "component": "sdp",
          "slot": "pipelines",
          "role": "The agent's output; a dry run must pass before it runs"
        },
        {
          "component": "spark",
          "slot": "batch",
          "role": "Batch and SQL on the cluster after review"
        },
        {
          "component": "spark",
          "slot": "streaming",
          "role": "Structured Streaming jobs agents can author",
          "detail": true
        },
        {
          "component": "spark-rtm",
          "slot": "realtime",
          "role": "Real-Time Mode for millisecond paths",
          "detail": true
        },
        {
          "component": "unity-catalog",
          "slot": "catalog",
          "role": "Authorizes each request; vends credentials scoped to the agent's namespace",
          "swaps": [
            "lakekeeper",
            "polaris"
          ]
        },
        {
          "component": "iceberg",
          "slot": "format",
          "role": "Snapshots make every agent write inspectable and reversible",
          "swaps": [
            "delta"
          ]
        },
        {
          "component": "seaweedfs",
          "slot": "storage",
          "role": "Object storage",
          "swaps": [
            "s3",
            "rustfs",
            "minio"
          ]
        },
        {
          "component": "openlineage",
          "slot": "lineage",
          "role": "Which tables each agent job read and wrote"
        },
        {
          "component": "gitops",
          "slot": "deploy",
          "role": "Agent changes arrive as pull requests; CI dry-runs them before anything is applied"
        },
        {
          "component": "spiffe",
          "slot": "identity",
          "role": "A workload identity per agent and tenant",
          "detail": true
        },
        {
          "component": "airflow",
          "slot": "orchestration",
          "role": "Runs approved pipelines; agents trigger runs through it",
          "detail": true
        }
      ],
      "steps": [
        {
          "title": "A session starts in a sandbox",
          "body": "Omnigent starts the agent in a container or microVM, locally or on Kubernetes. The sandbox gets the agent's own identity; provider credentials stay outside."
        },
        {
          "title": "Policies wrap every call",
          "body": "Each tool call, model request and file operation passes session, agent and server policies. Any DENY blocks it; any ASK waits for a person."
        },
        {
          "title": "The agent gets a Spark session",
          "body": "Inside the sandbox it connects over Spark Connect to a local Spark with Project Feather enabled, working on a subset of the data registered in the same catalog."
        },
        {
          "title": "It writes declarative pipelines",
          "body": "The agent writes Spark Declarative Pipelines into its own namespace and dry-runs them against the real catalog."
        },
        {
          "title": "Changes go through review",
          "body": "Passing work becomes a pull request; CI dry-runs it again and a controller applies it after approval."
        },
        {
          "title": "Production runs under identity",
          "body": "Approved pipelines run on the cluster in batch, streaming or Real-Time Mode, through an endpoint pinned to the agent's or tenant's identity; the catalog vends credentials only for its tables."
        },
        {
          "title": "Everything is traced",
          "body": "MLflow records each agent step and evaluation; OpenLineage records every table read and written; Iceberg snapshots let you roll back."
        }
      ],
      "repos": [
        {
          "name": "open-lakehouse/lakehouse-masterclass",
          "url": "https://github.com/open-lakehouse/lakehouse-masterclass",
          "description": "The local version: an SDP agent on Omnigent with a local model, MCP tools and ALLOW, DENY and ASK policies, writing into a sandbox namespace on Iceberg and Unity Catalog (chapters 3 and 13).",
          "license": "Apache-2.0",
          "targets": [
            "laptop"
          ]
        },
        {
          "name": "open-lakehouse/safe-spark-agents-paper",
          "url": "https://github.com/open-lakehouse/safe-spark-agents-paper",
          "description": "The production version: PR-only agent output, CI dry runs, identity-pinned Spark Connect behind mTLS, Kubernetes executors and a governed Iceberg REST catalog with per-tenant credential vending.",
          "targets": [
            "kubernetes",
            "aws"
          ]
        },
        {
          "name": "lisancao/spark-demos",
          "url": "https://github.com/lisancao/spark-demos",
          "description": "Demo 07 measures the local-mode overheads Project Feather targets; demo 16 shows Spark 4.3's shuffle-free single-task execution.",
          "targets": [
            "laptop"
          ]
        }
      ],
      "caveats": [
        "Project Feather's shuffle-free single-task execution ships off by default in Spark 4.3 and applies to in-memory relations at or below 1,000 rows by default.",
        "Omnigent sandbox providers differ in network egress control; check the provider before relying on it for isolation.",
        "This architecture combines the masterclass and the paper; no single repo deploys all of it yet."
      ],
      "learn": [
        {
          "label": "The agentic lakehouse (guide)",
          "href": "/agentic-lakehouse"
        },
        {
          "label": "Agentic data engineering (guide)",
          "href": "/agentic-data-engineering"
        },
        {
          "label": "Governed AI agents architecture",
          "href": "/reference-architectures/governed-ai-agents"
        },
        {
          "label": "Omnigent policies",
          "href": "https://omnigent.ai/docs/policies/overview"
        },
        {
          "label": "Getting started with MLflow",
          "href": "/learn/getting-started/mlflow"
        }
      ],
      "faqs": [
        {
          "q": "How do you give an AI agent access to Spark safely?",
          "a": "Give each agent its own Spark Connect session: a local Spark in its sandbox for fast work on a subset of data, and a remote endpoint pinned to its identity for production runs. The catalog authorizes every request and vends storage credentials scoped to the agent's namespace."
        },
        {
          "q": "What do Omnigent and MLflow each do in an agentic lakehouse?",
          "a": "Omnigent runs the agent, keeps its session in a sandbox, and enforces policies on every tool call, model request and file operation. MLflow traces and evaluates what the agent did and can front model providers through its AI Gateway."
        },
        {
          "q": "What is Project Feather and why does it matter for agents?",
          "a": "Project Feather (SPARK-56978) cuts Spark's local-mode latency. Spark 4.3 adds shuffle-free single-task execution for small queries, which suits agents that issue many small queries while they iterate."
        }
      ],
      "sources": [
        {
          "label": "Omnigent policies",
          "href": "https://omnigent.ai/docs/policies/overview"
        },
        {
          "label": "Omnigent cloud sandbox hosts",
          "href": "https://omnigent.ai/docs/deploy/cloud-sandbox-host"
        },
        {
          "label": "SPARK-56978 (Project Feather)",
          "href": "https://issues.apache.org/jira/browse/SPARK-56978"
        },
        {
          "label": "spark-demos demo 07",
          "href": "https://github.com/lisancao/spark-demos/tree/main/demos/07_project_feather"
        },
        {
          "label": "safe-spark-agents paper",
          "href": "https://open-lakehouse.github.io/safe-spark-agents-paper/"
        }
      ],
      "keywords": [
        "agentic lakehouse architecture",
        "AI agents Spark Connect",
        "agent sandbox Kubernetes Spark",
        "Omnigent MLflow lakehouse",
        "Project Feather agents"
      ],
      "updated": "2026-11-21",
      "url": "https://openlakehouse.io/reference-architectures/agentic-lakehouse"
    },
    {
      "slug": "batch-medallion",
      "title": "Batch medallion with Spark Declarative Pipelines",
      "stackLine": "Spark 4.3, Apache Iceberg and Unity Catalog with bronze, silver and gold",
      "tagline": "Declare the tables, let Spark work out the order, keep every layer in an open format.",
      "category": "Batch",
      "definition": "A batch medallion architecture organizes lakehouse tables into three layers: bronze holds raw records as they arrived, silver holds cleaned and conformed records, and gold holds aggregates shaped for a specific use. In this open reference architecture, Spark Declarative Pipelines (Spark 4.1 and later) defines each layer as a table or materialized view, Spark resolves the dependency graph and runs it, the tables are Apache Iceberg in Unity Catalog OSS 0.7 on S3-compatible storage, Apache Airflow schedules and backfills the runs, and DuckDB reads the gold tables through the catalog's Iceberg REST endpoint.",
      "whenToUse": [
        "Your sources arrive as files, extracts or database snapshots on a schedule.",
        "You want idempotent bronze loads and reproducible silver and gold tables.",
        "You want to change a transformation without hand-ordering every downstream job."
      ],
      "notFor": [
        "Sub-second latency: use the real-time streaming pattern.",
        "Teams that need a released Iceberg runtime for Spark 4.3 today: the course builds one from an open Iceberg pull request as a temporary step."
      ],
      "nodes": [
        {
          "label": "Order-event generator and batch extracts",
          "slot": "sources",
          "role": "Daily and hourly files"
        },
        {
          "label": "Idempotent bronze loader",
          "slot": "ingest-batch",
          "role": "Appends each batch once, keyed so reruns do not duplicate"
        },
        {
          "component": "auto-cdc",
          "slot": "ingest-cdc",
          "role": "Applies change feeds as SCD type 1 or 2",
          "detail": true
        },
        {
          "component": "seaweedfs",
          "slot": "storage",
          "role": "s3://lakehouse/warehouse",
          "version": "4.51",
          "swaps": [
            "minio",
            "rustfs",
            "s3",
            "gcs-adls"
          ]
        },
        {
          "component": "iceberg",
          "slot": "format",
          "role": "Bronze, silver and gold tables",
          "version": "runtime 4.3_2.13 built from apache/iceberg#18749",
          "swaps": [
            "delta",
            "hudi"
          ]
        },
        {
          "component": "unity-catalog",
          "slot": "catalog",
          "role": "Writable Iceberg REST catalog",
          "version": "0.7.0",
          "swaps": [
            "polaris",
            "lakekeeper",
            "unitycatalog-rs"
          ]
        },
        {
          "component": "spark",
          "slot": "batch",
          "role": "Runs the pipeline over Spark Connect",
          "version": "4.3.0"
        },
        {
          "component": "sdp",
          "slot": "pipelines",
          "role": "Declares bronze to silver to gold and resolves order",
          "version": "pyspark[pipelines]==4.3.0"
        },
        {
          "component": "airflow",
          "slot": "orchestration",
          "role": "DAG with schedules and backfills",
          "version": "3.3.2",
          "swaps": [
            "dagster",
            "temporal"
          ]
        },
        {
          "component": "mlflow",
          "slot": "ml",
          "role": "Logs the gold snapshot id with each model run",
          "version": "3.1.0",
          "detail": true
        },
        {
          "component": "duckdb",
          "slot": "sql",
          "role": "Reads gold through Iceberg REST",
          "version": "1.5.6",
          "swaps": [
            "trino",
            "pyiceberg"
          ]
        }
      ],
      "steps": [
        {
          "title": "Land bronze once",
          "body": "Each batch is appended to a bronze Iceberg table with a key that makes reruns idempotent."
        },
        {
          "title": "Declare silver and gold",
          "body": "A Spark Declarative Pipelines spec declares silver as cleaned bronze and gold as aggregates over silver."
        },
        {
          "title": "Spark plans the graph",
          "body": "spark-pipelines run resolves dependencies, creates or updates each table in Unity Catalog and records the run."
        },
        {
          "title": "Airflow schedules",
          "body": "An Airflow DAG triggers the pipeline on a schedule and replays past intervals for backfills."
        },
        {
          "title": "Serve from the same tables",
          "body": "DuckDB attaches the Unity Catalog Iceberg REST endpoint and queries gold without copying it."
        }
      ],
      "repos": [
        {
          "name": "open-lakehouse/lakehouse-masterclass",
          "url": "https://github.com/open-lakehouse/lakehouse-masterclass",
          "description": "Chapters 6 to 11 build this pattern: Iceberg through Unity Catalog, idempotent bronze, the SDP medallion, Airflow backfills and DuckDB serving.",
          "license": "Apache-2.0",
          "targets": [
            "laptop"
          ]
        },
        {
          "name": "open-lakehouse/open-lakehouse",
          "url": "https://github.com/open-lakehouse/open-lakehouse",
          "description": "An open reference architecture for the lakehouse that runs on Docker, deploys to AWS, and is designed so an AI agent can set it up and tear it down.",
          "license": "Apache-2.0",
          "targets": [
            "laptop",
            "aws"
          ],
          "quickstart": [
            "git clone https://github.com/open-lakehouse/open-lakehouse",
            "cd open-lakehouse",
            "",
            "cp .env.example .env       # fill in POSTGRES_*, S3_* placeholders",
            "./lakehouse setup          # validate env, install deps, download ~860MB of JARs",
            "./lakehouse start all      # Spark 4.1 master + worker + Connect server + Kafka",
            "./lakehouse start unity-catalog",
            "./lakehouse start mlflow",
            "./lakehouse status --json  # confirm healthy (incl. spark.connect_grpc_listening)"
          ]
        },
        {
          "name": "lisancao/spark-demos",
          "url": "https://github.com/lisancao/spark-demos",
          "description": "Demo 16 includes an AUTO CDC flow that writes SCD type 2 into Iceberg on Spark 4.3.0.",
          "targets": [
            "laptop"
          ]
        }
      ],
      "caveats": [
        "There is no released Iceberg Spark runtime for Spark 4.3 yet; the course's chapter 5.5 builds it from apache/iceberg#18749 as a temporary step.",
        "Unity Catalog 0.7 or later is required for Iceberg writes through its REST catalog.",
        "Older SeaweedFS releases have an S3A _temporary rename bug; the course pins 4.51."
      ],
      "learn": [
        {
          "label": "AUTO CDC in Spark Declarative Pipelines",
          "href": "/blog/apache-spark/auto-cdc-declarative-pipelines"
        },
        {
          "label": "Getting started with Apache Spark",
          "href": "/learn/getting-started/apache-spark"
        },
        {
          "label": "Spark Declarative Pipelines programming guide",
          "href": "https://spark.apache.org/docs/latest/declarative-pipelines-programming-guide.html"
        }
      ],
      "faqs": [
        {
          "q": "What is a medallion architecture?",
          "a": "A layout of lakehouse tables in three layers: bronze for raw data as it arrived, silver for cleaned and conformed data, and gold for aggregates built for a specific consumer."
        },
        {
          "q": "Do I need Databricks to use declarative pipelines?",
          "a": "No. Spark Declarative Pipelines is part of open source Apache Spark from 4.1, run with the spark-pipelines CLI against a Spark Connect server."
        },
        {
          "q": "Can DuckDB read tables that Spark writes?",
          "a": "Yes, when both go through the same catalog. In the masterclass, DuckDB attaches Unity Catalog's Iceberg REST endpoint and reads the gold Iceberg tables Spark wrote."
        }
      ],
      "sources": [
        {
          "label": "lakehouse-masterclass COURSE.md",
          "href": "https://github.com/open-lakehouse/lakehouse-masterclass"
        },
        {
          "label": "Spark Declarative Pipelines guide",
          "href": "https://spark.apache.org/docs/latest/declarative-pipelines-programming-guide.html"
        }
      ],
      "keywords": [
        "medallion architecture open source",
        "bronze silver gold Spark",
        "Spark Declarative Pipelines example",
        "Iceberg medallion",
        "SCD type 2 Spark"
      ],
      "updated": "2026-11-21",
      "url": "https://openlakehouse.io/reference-architectures/batch-medallion"
    },
    {
      "slug": "change-data-capture",
      "title": "Change data capture with SCD type 2",
      "stackLine": "AUTO CDC in Spark Declarative Pipelines, from a Kafka change feed into Apache Iceberg",
      "tagline": "Keep the current state and every past version of each row, without hand-written MERGE logic.",
      "category": "Batch",
      "definition": "Change data capture (CDC) with slowly changing dimensions type 2 turns a feed of row-level changes from an operational system into a table that holds both the current state and the full history of each row. In open source Apache Spark 4.3, an AUTO CDC flow in Spark Declarative Pipelines reads the change feed, orders events by a sequence column, applies inserts, updates and deletes by key, and stores the result as SCD type 2: a change to a tracked column closes the old version and opens a new one, while changes to untracked columns update the current version in place. The target must support row-level operations, which Apache Iceberg provides.",
      "whenToUse": [
        "An operational database or service emits change events and you need its tables in the lakehouse.",
        "Auditors or analysts ask what a row looked like at a past point in time.",
        "You want to stop maintaining hand-written MERGE statements for every replicated table."
      ],
      "notFor": [
        "Targets without row-level operations: AUTO CDC needs a DSv2 table that supports them.",
        "Spark releases before 4.3 for this exact flow; the reference demo is verified on Spark 4.3.0."
      ],
      "nodes": [
        {
          "label": "Operational database or service",
          "slot": "sources",
          "role": "Emits one event per insert, update or delete"
        },
        {
          "component": "debezium",
          "slot": "ingest-cdc",
          "role": "Turns database transaction logs into change events",
          "detail": true
        },
        {
          "component": "kafka",
          "slot": "ingest-stream",
          "role": "The change feed topic (menu-changes in the demo)",
          "version": "apache/kafka 4.0.0 image"
        },
        {
          "component": "local-fs",
          "slot": "storage",
          "role": "Iceberg warehouse directory in the demo",
          "swaps": [
            "s3",
            "seaweedfs",
            "minio",
            "rustfs"
          ]
        },
        {
          "component": "iceberg",
          "slot": "format",
          "role": "SCD type 2 target with row-level operations",
          "version": "Spark 4.3 runtime built from source"
        },
        {
          "label": "Iceberg hadoop catalog",
          "slot": "catalog",
          "role": "Declared in the pipeline spec",
          "swaps": [
            "unity-catalog",
            "polaris",
            "lakekeeper"
          ]
        },
        {
          "component": "sdp",
          "slot": "pipelines",
          "role": "Runs the pipeline with spark-pipelines run",
          "version": "pyspark==4.3.0"
        },
        {
          "component": "auto-cdc",
          "slot": "ingest-cdc",
          "role": "KEYS, SEQUENCE BY, APPLY AS DELETE WHEN, STORED AS SCD TYPE 2"
        }
      ],
      "steps": [
        {
          "title": "Changes are published",
          "body": "Each insert, update or delete arrives on a Kafka topic as one JSON event with a key, a sequence number and an operation."
        },
        {
          "title": "Read the feed",
          "body": "A Python table in the pipeline reads the topic with Structured Streaming and parses each event."
        },
        {
          "title": "Apply by key, in order",
          "body": "The AUTO CDC flow groups events by key and orders them by the sequence column, so late or out-of-order events land correctly."
        },
        {
          "title": "Track history",
          "body": "A change to a tracked column (price or station in the demo) closes the current version and opens a new one; a change to another column updates the current version in place; a delete closes the row's window."
        },
        {
          "title": "Query any point in time",
          "body": "The Iceberg table holds every version with its validity window, so you can read the current state or the state at any past sequence."
        }
      ],
      "repos": [
        {
          "name": "lisancao/spark-demos",
          "url": "https://github.com/lisancao/spark-demos",
          "description": "Demo 16 (Spark 4.3 guide), scd2/ folder: a ghost-kitchen menu change feed on Kafka applied with AUTO CDC as SCD type 2 into Iceberg.",
          "targets": [
            "laptop"
          ],
          "quickstart": [
            "scd2/reset.sh       # Kafka up, an empty menu-changes topic, no table, no checkpoints",
            "scd2/publish.sh scd2/incoming/batch-1.json && scd2/run.sh && scd2/history.sh",
            "scd2/publish.sh scd2/incoming/batch-2.json && scd2/run.sh && scd2/history.sh",
            "scd2/publish.sh scd2/incoming/batch-3.json && scd2/run.sh && scd2/history.sh",
            "docker compose -f scd2/compose.yaml down -v   # when done"
          ]
        }
      ],
      "caveats": [
        "Iceberg has not published a Spark 4.3 runtime (Maven Central stops at iceberg-spark-runtime-4.1); the demo builds iceberg-spark-runtime-4.3_2.13 from an Iceberg checkout with Spark 4.3 support.",
        "AUTO CDC needs a target that implements DSv2 row-level operations.",
        "The jars and spark.sql.extensions are static configs, so they are passed to spark-pipelines run, not set in the pipeline spec.",
        "Pipeline storage must be an absolute URI."
      ],
      "learn": [
        {
          "label": "AUTO CDC: turning an event log into current state",
          "href": "/blog/apache-spark/auto-cdc-declarative-pipelines"
        },
        {
          "label": "Batch medallion pattern",
          "href": "/reference-architectures/batch-medallion"
        },
        {
          "label": "Spark Declarative Pipelines guide",
          "href": "https://spark.apache.org/docs/latest/declarative-pipelines-programming-guide.html"
        }
      ],
      "faqs": [
        {
          "q": "What is SCD type 2?",
          "a": "Slowly changing dimension type 2 keeps every version of a row: when a tracked attribute changes, the current version is closed and a new one is opened, so the table answers both what is true now and what was true at any earlier time."
        },
        {
          "q": "Can open source Spark do CDC without hand-written MERGE?",
          "a": "Yes. Spark Declarative Pipelines in Spark 4.3 has AUTO CDC flows: you declare the keys, the sequence column, the delete condition and STORED AS SCD TYPE 1 or 2, and Spark applies the change feed."
        },
        {
          "q": "How does AUTO CDC handle out-of-order events?",
          "a": "It orders events per key by the SEQUENCE BY column, so an event that arrives late is applied in sequence order rather than arrival order."
        }
      ],
      "sources": [
        {
          "label": "spark-demos demo 16 README",
          "href": "https://github.com/lisancao/spark-demos/tree/main/demos/16_spark_43_guide"
        },
        {
          "label": "menu.sql (the AUTO CDC flow)",
          "href": "https://github.com/lisancao/spark-demos/blob/main/demos/16_spark_43_guide/scd2/transformations/menu.sql"
        }
      ],
      "keywords": [
        "change data capture Spark",
        "SCD type 2 Spark",
        "AUTO CDC Spark Declarative Pipelines",
        "CDC to Iceberg",
        "Kafka CDC lakehouse"
      ],
      "updated": "2026-11-21",
      "url": "https://openlakehouse.io/reference-architectures/change-data-capture"
    },
    {
      "slug": "streaming-medallion",
      "title": "Streaming medallion",
      "stackLine": "Kafka, Spark Structured Streaming and Apache Iceberg in Unity Catalog",
      "tagline": "Events in, governed tables out, seconds behind the source.",
      "category": "Streaming",
      "definition": "A streaming medallion architecture applies the bronze, silver and gold layout to event streams. Apache Kafka buffers events, an Apache Spark Structured Streaming query appends them to a bronze Apache Iceberg table with its checkpoint on object storage, and a Spark Declarative Pipeline derives silver and gold. Because the tables are open and registered in Unity Catalog OSS, batch jobs, other engines and AI agents read the same data the stream writes.",
      "whenToUse": [
        "Sources emit events continuously and consumers want tables, not topics.",
        "Latency of seconds to minutes is enough.",
        "You want one copy of history that streaming jobs, batch jobs and agents all read."
      ],
      "notFor": [
        "Request-path latency in milliseconds: see the real-time streaming architecture."
      ],
      "nodes": [
        {
          "label": "Applications, devices and CDC",
          "slot": "sources",
          "role": "Emit events"
        },
        {
          "component": "debezium",
          "slot": "ingest-cdc",
          "role": "Turns database changes into Kafka events",
          "detail": true
        },
        {
          "component": "kafka",
          "slot": "ingest-stream",
          "role": "Durable event buffer (the orders topic)",
          "version": "Confluent 7.5.0 images"
        },
        {
          "component": "spark",
          "slot": "streaming",
          "role": "Kafka to iceberg.bronze.orders_raw, checkpoint at s3a://lakehouse/_checkpoints",
          "version": "4.3.0",
          "swaps": [
            "flink"
          ]
        },
        {
          "component": "sdp",
          "slot": "pipelines",
          "role": "Silver and gold derived from bronze",
          "version": "4.3.0"
        },
        {
          "component": "spark-connect",
          "slot": "spark-connect",
          "role": "The streaming query runs over Spark Connect",
          "version": "4.3.0"
        },
        {
          "component": "unity-catalog",
          "slot": "catalog",
          "role": "Iceberg REST catalog for every layer",
          "version": "0.7.0",
          "swaps": [
            "polaris",
            "lakekeeper"
          ]
        },
        {
          "component": "iceberg",
          "slot": "format",
          "role": "Bronze, silver and gold tables",
          "swaps": [
            "delta",
            "hudi"
          ]
        },
        {
          "component": "seaweedfs",
          "slot": "storage",
          "role": "Tables and streaming checkpoints",
          "version": "4.51",
          "swaps": [
            "rustfs",
            "minio",
            "s3"
          ]
        },
        {
          "component": "airflow",
          "slot": "orchestration",
          "role": "Runs the batch side and table maintenance",
          "version": "3.3.2",
          "detail": true
        },
        {
          "component": "iceberg-maintenance",
          "slot": "maintenance",
          "role": "Compaction keeps small streaming files in check",
          "detail": true
        }
      ],
      "steps": [
        {
          "title": "Buffer events",
          "body": "Producers write JSON events to a Kafka topic, including resends and late events."
        },
        {
          "title": "Append to bronze",
          "body": "A Structured Streaming query reads Kafka and appends to a bronze Iceberg table; its checkpoint makes the write exactly-once."
        },
        {
          "title": "Clean and deduplicate",
          "body": "Silver handles late and repeated events deterministically."
        },
        {
          "title": "Aggregate",
          "body": "Gold computes the aggregates consumers read."
        },
        {
          "title": "Compact",
          "body": "Streaming writes many small files; a scheduled rewrite_data_files keeps reads fast."
        }
      ],
      "repos": [
        {
          "name": "open-lakehouse/lakehouse-masterclass",
          "url": "https://github.com/open-lakehouse/lakehouse-masterclass",
          "description": "Chapter 9 streams Kafka into iceberg.bronze.orders_raw over Spark Connect; chapter 8 builds silver and gold; chapter 10 adds maintenance.",
          "license": "Apache-2.0",
          "targets": [
            "laptop"
          ]
        },
        {
          "name": "open-lakehouse/open-lakehouse",
          "url": "https://github.com/open-lakehouse/open-lakehouse",
          "description": "The same flow writing Delta Lake bronze into Unity Catalog 0.6.0.",
          "license": "Apache-2.0",
          "targets": [
            "laptop",
            "aws"
          ],
          "quickstart": [
            "git clone https://github.com/open-lakehouse/open-lakehouse",
            "cd open-lakehouse",
            "",
            "cp .env.example .env       # fill in POSTGRES_*, S3_* placeholders",
            "./lakehouse setup          # validate env, install deps, download ~860MB of JARs",
            "./lakehouse start all      # Spark 4.1 master + worker + Connect server + Kafka",
            "./lakehouse start unity-catalog",
            "./lakehouse start mlflow",
            "./lakehouse status --json  # confirm healthy (incl. spark.connect_grpc_listening)"
          ]
        }
      ],
      "caveats": [
        "Match the Kafka connector to your Spark version exactly; a spark-sql-kafka build for one Spark minor version can fail with NoSuchMethodError on another.",
        "Kafka itself is not registered in the catalog; only the tables are."
      ],
      "learn": [
        {
          "label": "Real-time streaming architecture",
          "href": "/reference-architectures/real-time-streaming"
        },
        {
          "label": "Lakehouse masterclass, chapter 9",
          "href": "https://github.com/open-lakehouse/lakehouse-masterclass/blob/main/textbook/chapters/ch09-streaming.md"
        },
        {
          "label": "Structured Streaming guide",
          "href": "https://spark.apache.org/docs/latest/streaming/index.html"
        }
      ],
      "faqs": [
        {
          "q": "How do I stream Kafka into Apache Iceberg with open source tools?",
          "a": "Run an Apache Spark Structured Streaming query with the Kafka source and an Iceberg table as the sink, with its checkpoint on object storage, and register the table in an Iceberg REST catalog such as Unity Catalog OSS 0.7 so other engines can read it."
        },
        {
          "q": "Is the Kafka to Iceberg write exactly-once?",
          "a": "Yes for the table: Structured Streaming records Kafka offsets in its checkpoint and commits each micro-batch atomically, so a restarted query neither skips nor duplicates batches."
        }
      ],
      "sources": [
        {
          "label": "lakehouse-masterclass chapter 9",
          "href": "https://github.com/open-lakehouse/lakehouse-masterclass/blob/main/textbook/chapters/ch09-streaming.md"
        },
        {
          "label": "Structured Streaming + Kafka integration",
          "href": "https://spark.apache.org/docs/latest/streaming/structured-streaming-kafka-integration.html"
        }
      ],
      "keywords": [
        "Kafka to Iceberg",
        "streaming medallion architecture",
        "Spark Structured Streaming Kafka Iceberg",
        "streaming lakehouse open source"
      ],
      "updated": "2026-11-21",
      "url": "https://openlakehouse.io/reference-architectures/streaming-medallion"
    },
    {
      "slug": "real-time-streaming",
      "title": "Real-time streaming with Spark Real-Time Mode",
      "stackLine": "Kafka in, Kafka out, milliseconds in between",
      "tagline": "Continuous processing for fraud, recommendations and live boards, measured end to end.",
      "category": "Streaming",
      "definition": "Real-time streaming is the architecture for decisions that must happen while an event is still in flight: score a payment, update a recommendation, move a leaderboard. In open source Apache Spark, Real-Time Mode is a Structured Streaming trigger that processes records continuously instead of in micro-batches. The reference pipelines read from Kafka, transform or keep state with transformWithState, and write back to Kafka or a key-value store, with latency measured from producer timestamp to consumer.",
      "whenToUse": [
        "Your SLA is in tens or hundreds of milliseconds, not seconds.",
        "You are porting Apache Flink jobs and want to know which ones move to Spark.",
        "You already run Spark for batch and want one engine for both."
      ],
      "notFor": [
        "Writing large analytical tables: use the streaming medallion pattern and keep this path thin.",
        "Python UDFs in the hot path: Real-Time Mode does not support them."
      ],
      "nodes": [
        {
          "label": "Payments, clicks, game events",
          "slot": "sources",
          "role": "Producers with event timestamps"
        },
        {
          "component": "kafka",
          "slot": "ingest-stream",
          "role": "Input topic, 16 partitions in the reference runs",
          "version": "Confluent 7.6.0 image"
        },
        {
          "component": "spark-rtm",
          "slot": "realtime",
          "role": "Continuous processing trigger",
          "version": "Spark 4.1 to 4.3"
        },
        {
          "component": "spark",
          "slot": "realtime",
          "role": "transformWithState for keyed state, on RocksDB",
          "version": "4.3.0"
        },
        {
          "component": "flink",
          "slot": "realtime",
          "role": "The engine being compared or migrated from",
          "detail": true
        },
        {
          "component": "kafka-sink",
          "slot": "apps",
          "role": "Output and latency topics"
        },
        {
          "component": "redis",
          "slot": "apps",
          "role": "Latest state for applications",
          "detail": true,
          "swaps": [
            "valkey"
          ]
        },
        {
          "component": "iceberg",
          "slot": "format",
          "role": "Optional history table written by a separate query",
          "detail": true,
          "swaps": [
            "delta"
          ]
        },
        {
          "label": "Fraud engine, app UI, live board",
          "slot": "apps",
          "role": "Read results within milliseconds"
        }
      ],
      "steps": [
        {
          "title": "Produce with timestamps",
          "body": "A generator writes keyed events to Kafka with the send time embedded."
        },
        {
          "title": "Process continuously",
          "body": "A Structured Streaming query with the real-time trigger processes each record as it arrives instead of waiting for a micro-batch."
        },
        {
          "title": "Keep state",
          "body": "Stateful steps such as deduplication, windows or a custom transformWithState processor keep per-key state in RocksDB."
        },
        {
          "title": "Emit",
          "body": "Results go to an output Kafka topic or a key-value store."
        },
        {
          "title": "Measure",
          "body": "A consumer subtracts the embedded send time from arrival time and reports p50, p95 and p99."
        }
      ],
      "repos": [
        {
          "name": "lisancao/spark-rtm-quickstart",
          "url": "https://github.com/lisancao/spark-rtm-quickstart",
          "description": "Five Real-Time Mode pipelines on Spark 4.1 with Kafka and a latency consumer, compared against micro-batch.",
          "targets": [
            "laptop"
          ],
          "quickstart": [
            "# Start Kafka + Spark",
            "docker compose up -d",
            "",
            "# Create Kafka topics",
            "docker exec kafka kafka-topics --bootstrap-server localhost:9092 \\",
            "    --create --topic rtm-input --partitions 16 --if-not-exists",
            "docker exec kafka kafka-topics --bootstrap-server localhost:9092 \\",
            "    --create --topic rtm-output --partitions 16 --if-not-exists",
            "docker exec kafka kafka-topics --bootstrap-server localhost:9092 \\",
            "    --create --topic rtm-latency --partitions 16 --if-not-exists",
            "",
            "# Start the data generator (in a separate terminal)",
            "python data_generator/producer.py --rate 1000 --keys 100",
            "",
            "# Run a pipeline",
            "docker exec spark spark-submit /opt/spark-data/pipelines/01_stateless_passthrough.py"
          ]
        },
        {
          "name": "lisancao/spark-demos",
          "url": "https://github.com/lisancao/spark-demos",
          "description": "Demo 14 (bookshop recommender, Spark 4.3.0) and demo 10 (chained transformWithState lobby board) compare micro-batch with Real-Time Mode and commit the numbers in NOTES.md.",
          "targets": [
            "laptop"
          ]
        },
        {
          "name": "lisancao/flink-to-spark-rtm",
          "url": "https://github.com/lisancao/flink-to-spark-rtm",
          "description": "Four streaming patterns (stateless, tumbling window, sliding window, keyed state) written for both Flink 1.20 and Spark 4.1 Real-Time Mode, with migration notes.",
          "targets": [
            "laptop"
          ]
        }
      ],
      "caveats": [
        "Open source Spark 4.1 Real-Time Mode is stateless only; stateful queries need a later release (the stateful demos run on Spark 4.3).",
        "Python UDFs are not supported in Real-Time Mode.",
        "PySpark 4.1 has no trigger(realTime=...) argument; the quickstart uses a Py4J helper.",
        "transformWithState requires the RocksDB state store provider.",
        "Size task slots to source partitions plus shuffles times shuffle partitions, or the query stalls."
      ],
      "learn": [
        {
          "label": "Spark 4.3 Real-Time Mode demo (demo 14)",
          "href": "https://github.com/lisancao/spark-demos/tree/main/demos/14_real_time_mode"
        },
        {
          "label": "Stateful streaming demo (demo 10)",
          "href": "https://github.com/lisancao/spark-demos/tree/main/demos/10_stateful_streaming"
        },
        {
          "label": "Apache Flink on this site",
          "href": "/technologies/compute-engines"
        }
      ],
      "faqs": [
        {
          "q": "How fast is Spark Real-Time Mode?",
          "a": "In the spark-rtm-quickstart run committed in results/latency-results.md (stateless, 500 events per second, 16 cores), end-to-end p50 was 17 ms and p99 was 21 to 26 ms across six runs. In spark-demos demo 14 on Spark 4.3.0, a stateless enrichment step measured p50 0 ms and p99 1 ms in real-time mode against 115 ms and 204 ms in micro-batch."
        },
        {
          "q": "Can Spark replace Flink for low-latency streaming?",
          "a": "For many stateless and windowed jobs, yes; flink-to-spark-rtm writes the same four patterns for both engines. Keyed state with timers is where migrations need the most care, since Spark expresses it through transformWithState."
        },
        {
          "q": "Does Real-Time Mode support stateful queries?",
          "a": "Not in open source Spark 4.1. The stateful reference demos (transformWithState, dedup and windows) run on Spark 4.3."
        }
      ],
      "sources": [
        {
          "label": "spark-rtm-quickstart results/latency-results.md",
          "href": "https://github.com/lisancao/spark-rtm-quickstart/blob/main/results/latency-results.md"
        },
        {
          "label": "spark-demos demo 14 NOTES.md",
          "href": "https://github.com/lisancao/spark-demos/blob/main/demos/14_real_time_mode/NOTES.md"
        },
        {
          "label": "spark-demos demo 10 NOTES.md",
          "href": "https://github.com/lisancao/spark-demos/blob/main/demos/10_stateful_streaming/NOTES.md"
        }
      ],
      "keywords": [
        "Spark Real-Time Mode",
        "Spark real time streaming latency",
        "Flink to Spark migration",
        "transformWithState example",
        "low latency streaming open source"
      ],
      "updated": "2026-11-21",
      "url": "https://openlakehouse.io/reference-architectures/real-time-streaming"
    },
    {
      "slug": "multi-engine-catalog",
      "title": "One catalog, many engines",
      "stackLine": "Unity Catalog OSS with Spark, DuckDB, PyIceberg and Trino on Delta and Iceberg",
      "tagline": "Write once, read from whatever engine fits the question.",
      "category": "Platform",
      "definition": "A multi-engine catalog architecture puts an open catalog between the tables and every engine that uses them. Unity Catalog OSS stores table metadata in Postgres, exposes Delta tables through its own API and Iceberg tables through the Iceberg REST catalog specification, and vends short-lived storage credentials per table. Apache Spark, DuckDB, PyIceberg and Trino then read and write the same data without copies, and access is decided once, in the catalog.",
      "whenToUse": [
        "Different teams prefer different engines for the same data.",
        "You want to stop copying data into a warehouse per tool.",
        "You want storage credentials vended per table instead of shared keys."
      ],
      "notFor": [
        "Expecting identical feature support in every engine: write support differs by engine, format and catalog version."
      ],
      "nodes": [
        {
          "label": "Pipelines and notebooks",
          "slot": "sources",
          "role": "Create and update tables"
        },
        {
          "component": "rustfs",
          "slot": "storage",
          "role": "S3-compatible storage with STS credentials",
          "version": "1.0.0",
          "swaps": [
            "seaweedfs",
            "minio",
            "s3"
          ]
        },
        {
          "component": "delta",
          "slot": "format",
          "role": "Catalog-managed Delta tables",
          "swaps": [
            "iceberg"
          ]
        },
        {
          "component": "iceberg",
          "slot": "format",
          "role": "Native Iceberg tables through Iceberg REST"
        },
        {
          "component": "unity-catalog",
          "slot": "catalog",
          "role": "Delta API, Iceberg REST catalog and credential vending",
          "version": "0.7.0",
          "swaps": [
            "unitycatalog-rs",
            "polaris",
            "lakekeeper"
          ]
        },
        {
          "component": "postgres",
          "slot": "catalog",
          "role": "Catalog metadata",
          "version": "16.3",
          "detail": true
        },
        {
          "component": "spark",
          "slot": "batch",
          "role": "Delta notebooks on Spark 4.2.0; Iceberg notebooks on Spark 4.1.3",
          "version": "4.2.0 / 4.1.3"
        },
        {
          "component": "pyiceberg",
          "slot": "sql",
          "role": "JVM-free Iceberg reads and writes"
        },
        {
          "component": "duckdb",
          "slot": "sql",
          "role": "Attaches the Iceberg REST endpoint for SQL reads",
          "swaps": [
            "trino",
            "datafusion",
            "polars"
          ]
        },
        {
          "component": "trino",
          "slot": "sql",
          "role": "Distributed SQL over the same catalog",
          "detail": true
        },
        {
          "component": "marimo",
          "slot": "bi",
          "role": "Reactive notebooks on :2718 and :2719",
          "swaps": [
            "jupyter"
          ]
        }
      ],
      "steps": [
        {
          "title": "Create through the catalog",
          "body": "A Spark session configured with the Unity Catalog connector creates a managed Delta table, or an Iceberg table through the Iceberg REST endpoint."
        },
        {
          "title": "Catalog records metadata",
          "body": "Unity Catalog stores the table, its location and its format in Postgres."
        },
        {
          "title": "Credentials are vended",
          "body": "When an engine loads a table, the catalog returns short-lived storage credentials scoped to that table's path."
        },
        {
          "title": "Another engine reads",
          "body": "DuckDB or PyIceberg connects to the same Iceberg REST endpoint and reads the table directly from object storage."
        }
      ],
      "repos": [
        {
          "name": "open-lakehouse/unitycatalog-playground",
          "url": "https://github.com/open-lakehouse/unitycatalog-playground",
          "description": "Unity Catalog OSS on your machine with Spark, Delta and Iceberg in marimo notebooks, Postgres for metadata and RustFS for storage.",
          "license": "Apache-2.0",
          "targets": [
            "laptop"
          ],
          "quickstart": [
            "git clone https://github.com/open-lakehouse/unitycatalog-playground.git",
            "cd unitycatalog-playground",
            "just uc=local start"
          ]
        },
        {
          "name": "open-lakehouse/unitycatalog-rs",
          "url": "https://github.com/open-lakehouse/unitycatalog-rs",
          "description": "A Rust implementation of the same catalog APIs, useful when you want a single binary or Helm chart.",
          "license": "Apache-2.0",
          "targets": [
            "laptop",
            "kubernetes"
          ],
          "quickstart": [
            "pip install 'unitycatalog-rs[all]'   # the Python client, the uc CLI, the server and the web UI",
            "uc dev                               # a server on http://localhost:8080, with the web UI",
            "uc catalog list                      # upstream's bin/uc commands"
          ]
        },
        {
          "name": "open-lakehouse/lakehouse-masterclass",
          "url": "https://github.com/open-lakehouse/lakehouse-masterclass",
          "description": "Chapter 11 has DuckDB read the Spark-written Iceberg tables through Unity Catalog 0.7's Iceberg REST endpoint.",
          "license": "Apache-2.0",
          "targets": [
            "laptop"
          ]
        }
      ],
      "caveats": [
        "iceberg-spark-runtime exists only for Spark 4.0 and 4.1 at the time of writing, which is why the playground's Iceberg notebook runs Spark 4.1.3.",
        "The RustFS STS credential in the playground expires after 12 hours; refresh it with just uc=local rotate-creds.",
        "The playground needs at least 4 GB of Docker memory and is not for production."
      ],
      "learn": [
        {
          "label": "Catalogs on this site",
          "href": "/technologies/catalogs"
        },
        {
          "label": "Delta catalog-managed tables",
          "href": "/blog/delta-lake/delta-catalog-managed-tables"
        },
        {
          "label": "DuckDB Delta grows up",
          "href": "/blog/delta-lake/duckdb-delta-grows-up"
        }
      ],
      "faqs": [
        {
          "q": "What is an Iceberg REST catalog?",
          "a": "An HTTP API defined by the Apache Iceberg project for creating, loading and committing Iceberg tables. Any engine that speaks it can use any catalog that implements it, including Unity Catalog OSS, Apache Polaris and Lakekeeper."
        },
        {
          "q": "Can Spark and DuckDB share the same tables?",
          "a": "Yes. Point both at the same catalog: Spark through the Unity Catalog connector or Iceberg REST, DuckDB through its Iceberg extension attached to the Iceberg REST endpoint."
        },
        {
          "q": "What is credential vending?",
          "a": "The catalog hands an engine short-lived storage credentials scoped to one table's location when the engine loads it, so engines never hold long-lived bucket keys."
        }
      ],
      "sources": [
        {
          "label": "unitycatalog-playground README",
          "href": "https://github.com/open-lakehouse/unitycatalog-playground#readme"
        },
        {
          "label": "Iceberg REST catalog spec",
          "href": "https://iceberg.apache.org/rest-catalog-spec/"
        },
        {
          "label": "Unity Catalog OSS",
          "href": "https://github.com/unitycatalog/unitycatalog"
        }
      ],
      "keywords": [
        "Iceberg REST catalog",
        "Unity Catalog OSS Iceberg",
        "multi-engine lakehouse",
        "DuckDB Unity Catalog",
        "credential vending"
      ],
      "updated": "2026-11-21",
      "url": "https://openlakehouse.io/reference-architectures/multi-engine-catalog"
    },
    {
      "slug": "governed-ai-agents",
      "title": "Governed AI agents for data engineering",
      "stackLine": "Spark Declarative Pipelines, Spark Connect, Kubernetes and a governed Iceberg REST catalog",
      "tagline": "Agents write pipeline specs; the platform decides what they are allowed to touch.",
      "category": "Platform",
      "definition": "Governed AI data engineering is an architecture in which AI agents author data pipelines but never hold direct power over data. The agent writes declarative Spark Declarative Pipelines specs as a pull request; CI dry-runs them against the real catalog; a controller applies approved changes. Each tenant reaches Spark only through one identity-pinned Spark Connect ingress behind mTLS, executors run as Kubernetes pods, and a governed Iceberg REST catalog authorizes every request and vends storage credentials scoped to that tenant. Each layer owns one job, so a mistake in one does not become a breach in another.",
      "whenToUse": [
        "You want AI agents to build or change pipelines without giving them production credentials.",
        "You need per-tenant isolation on shared Spark infrastructure.",
        "You want defects caught before any data is processed."
      ],
      "notFor": [
        "A single-user sandbox: the masterclass's local agent chapter is the lighter starting point."
      ],
      "nodes": [
        {
          "label": "AI coding agent",
          "slot": "sources",
          "role": "Writes inert pipeline specs as a pull request"
        },
        {
          "component": "gitops",
          "slot": "deploy",
          "role": "PR-only output, dry run against the real catalog, reconcile"
        },
        {
          "component": "sdp",
          "slot": "pipelines",
          "role": "Declarative authoring: specs, not imperative jobs",
          "version": "Spark 4.1.2"
        },
        {
          "component": "envoy",
          "slot": "access-policy",
          "role": "mTLS on :15009; routes each client certificate to its tenant",
          "version": "1.31.5"
        },
        {
          "component": "spark-connect",
          "slot": "spark-connect",
          "role": "The single identity-pinned ingress per tenant",
          "version": "4.1.2"
        },
        {
          "component": "kubernetes",
          "slot": "deploy",
          "role": "Client-mode driver plus executor pods on EKS",
          "version": "EKS 1.31"
        },
        {
          "component": "spark",
          "slot": "batch",
          "role": "Executors do the work",
          "version": "4.1.2"
        },
        {
          "component": "iceberg",
          "slot": "format",
          "role": "Tables under per-tenant prefixes",
          "version": "1.11.0",
          "swaps": [
            "delta"
          ]
        },
        {
          "component": "lakekeeper",
          "slot": "catalog",
          "role": "Governed Iceberg REST catalog with per-principal authorization and credential vending",
          "version": "0.13.1",
          "swaps": [
            "unity-catalog",
            "polaris"
          ]
        },
        {
          "component": "openfga",
          "slot": "access-policy",
          "role": "Authorization model behind the catalog",
          "version": "1.14.0"
        },
        {
          "component": "s3",
          "slot": "storage",
          "role": "Data under per-tenant prefixes with STS-scoped credentials",
          "swaps": [
            "minio"
          ]
        },
        {
          "component": "omnigent",
          "slot": "agent-harness",
          "role": "Agent harness with tools and policies",
          "detail": true
        },
        {
          "component": "ollama",
          "slot": "agent-models",
          "role": "Local model for the course's agent chapter",
          "detail": true
        }
      ],
      "steps": [
        {
          "title": "Agent proposes",
          "body": "The agent writes Spark Declarative Pipelines specs and opens a pull request; it has no direct write path."
        },
        {
          "title": "CI dry-runs",
          "body": "CI runs the pipeline in dry-run mode against the real catalog, catching structural defects before any data is processed."
        },
        {
          "title": "Identity-pinned ingress",
          "body": "The tenant's client certificate reaches Envoy, which routes by its SPIFFE URI SAN to that tenant's Spark Connect server."
        },
        {
          "title": "Executors run",
          "body": "Kubernetes schedules executor pods that do the work."
        },
        {
          "title": "Catalog authorizes",
          "body": "Lakekeeper with OpenFGA authorizes each table operation and vends STS credentials scoped to the tenant's prefix."
        }
      ],
      "repos": [
        {
          "name": "open-lakehouse/safe-spark-agents-paper",
          "url": "https://github.com/open-lakehouse/safe-spark-agents-paper",
          "description": "Working paper, reproducible study and open reference architecture for safe, governed AI data engineering on Apache Spark.",
          "targets": [
            "kubernetes",
            "aws",
            "laptop"
          ],
          "quickstart": [
            "cd study",
            "python3 analysis/analyze.py results/results.powered.AB.n12.final.jsonl --tasks config/TASKS.lock.json --assume-backend local"
          ]
        },
        {
          "name": "open-lakehouse/lakehouse-masterclass",
          "url": "https://github.com/open-lakehouse/lakehouse-masterclass",
          "description": "Chapter 3 runs an agent on Omnigent with a local Ollama model, MCP tools and ALLOW, DENY and ASK policies; chapter 13 has a coding agent operate the stack through AGENTS.md.",
          "license": "Apache-2.0",
          "targets": [
            "laptop"
          ]
        },
        {
          "name": "open-lakehouse/lakehouse-agent-kit",
          "url": "https://github.com/open-lakehouse/lakehouse-agent-kit",
          "description": "Early-stage agent skills for the open lakehouse, driven by a connection profile instead of hardcoded hosts (lakehouse-core ships today).",
          "targets": [
            "cloud-agnostic"
          ]
        }
      ],
      "caveats": [
        "The isolation proof runs on one Spark Connect server per tenant; a shared-server design is described as frontier work in the paper.",
        "The five isolation links are proven one at a time, not as one composed request.",
        "Unity Catalog OSS 0.5.0, evaluated as an alternate catalog, could not do per-principal authorization on its Iceberg REST path."
      ],
      "learn": [
        {
          "label": "Agentic data engineering (guide)",
          "href": "/agentic-data-engineering"
        },
        {
          "label": "The agentic lakehouse (guide)",
          "href": "/agentic-lakehouse"
        },
        {
          "label": "Getting started with Omnigent",
          "href": "/learn/getting-started/omnigent"
        },
        {
          "label": "MLflow for agents",
          "href": "/learn/getting-started/mlflow"
        },
        {
          "label": "Safe Spark agents paper",
          "href": "https://github.com/open-lakehouse/safe-spark-agents-paper"
        }
      ],
      "faqs": [
        {
          "q": "How do you let AI agents build data pipelines safely?",
          "a": "Give them a declarative output and no direct path to data: the agent writes Spark Declarative Pipelines specs as a pull request, CI dry-runs them against the real catalog, and execution happens through an identity-pinned Spark Connect ingress with a catalog that authorizes every table operation."
        },
        {
          "q": "Do declarative pipelines catch more agent mistakes?",
          "a": "In the safe-spark-agents study (528 runs: 22 tasks, 12 seeds, 2 arms), the Spark Declarative Pipelines dry run caught 79 structural defects before any data was processed, against 0 for the imperative arm. SDP output was 49% fewer lines at about 2.3 times the tokens."
        }
      ],
      "sources": [
        {
          "label": "safe-spark-agents-paper",
          "href": "https://github.com/open-lakehouse/safe-spark-agents-paper"
        },
        {
          "label": "Paper site",
          "href": "https://open-lakehouse.github.io/safe-spark-agents-paper/"
        }
      ],
      "keywords": [
        "AI agents data engineering",
        "governed AI agents Spark",
        "agentic data engineering",
        "Spark Connect multi-tenant",
        "Lakekeeper OpenFGA"
      ],
      "updated": "2026-11-21",
      "url": "https://openlakehouse.io/reference-architectures/governed-ai-agents"
    },
    {
      "slug": "open-data-sharing",
      "title": "Open data sharing",
      "stackLine": "Delta Sharing servers over Unity Catalog and open tables",
      "tagline": "Share live tables with another organization without copying them or sending files.",
      "category": "Platform",
      "definition": "Open data sharing is an architecture for giving another organization read access to live lakehouse tables through an open protocol instead of file exports. A Delta Sharing server authenticates the recipient, checks which shares and tables they may read, and returns short-lived URLs or credentials for the underlying files; the recipient reads them with any Delta Sharing client, including pandas, Spark and other engines. Data stays in the provider's storage and the recipient always sees the current version.",
      "whenToUse": [
        "Partners, customers or regulators need recurring access to the same tables.",
        "You want to stop running file-drop jobs.",
        "Recipients use different tools than you do."
      ],
      "notFor": [
        "Write access for recipients: the protocol is read-only."
      ],
      "nodes": [
        {
          "label": "Provider pipelines",
          "slot": "sources",
          "role": "Maintain the tables to share"
        },
        {
          "component": "s3",
          "slot": "storage",
          "role": "Provider's bucket; data never moves",
          "swaps": [
            "gcs-adls",
            "minio",
            "seaweedfs"
          ]
        },
        {
          "component": "delta",
          "slot": "format",
          "role": "Shared tables",
          "swaps": [
            "iceberg"
          ]
        },
        {
          "component": "unity-catalog",
          "slot": "catalog",
          "role": "Source of shares and table locations",
          "swaps": [
            "unitycatalog-rs"
          ]
        },
        {
          "component": "delta-sharing",
          "slot": "sharing",
          "role": "Open REST protocol for recipients",
          "version": "server 1.3.10 in open-lakehouse"
        },
        {
          "component": "distributary",
          "slot": "sharing",
          "role": "Composable Rust sharing server with Postgres or SQLite stores",
          "detail": true
        },
        {
          "component": "spark",
          "slot": "batch",
          "role": "Provider-side writes"
        }
      ],
      "steps": [
        {
          "title": "Define a share",
          "body": "The provider groups tables into a share and grants it to a recipient."
        },
        {
          "title": "Issue a profile",
          "body": "The recipient receives a profile file with the server endpoint and a bearer token."
        },
        {
          "title": "Recipient queries",
          "body": "The client lists shares and tables and asks to read one, optionally with predicate hints."
        },
        {
          "title": "Server returns file URLs",
          "body": "The server checks the grant and returns short-lived URLs for the current table files."
        },
        {
          "title": "Read directly",
          "body": "The client reads Parquet files from the provider's storage; nothing is copied into the recipient's platform."
        }
      ],
      "repos": [
        {
          "name": "open-lakehouse/distributary",
          "url": "https://github.com/open-lakehouse/distributary",
          "description": "OpenSharing and Delta Sharing in Rust: protocol models, client, admin API and a composable sharing server.",
          "license": "Apache-2.0",
          "targets": [
            "cloud-agnostic"
          ],
          "quickstart": [
            "cargo check --workspace --all-features",
            "cargo nextest run --workspace --all-features"
          ]
        },
        {
          "name": "open-lakehouse/unitycatalog-rs",
          "url": "https://github.com/open-lakehouse/unitycatalog-rs",
          "description": "A catalog that serves a Delta Sharing server alongside the Unity Catalog, Delta and Iceberg REST APIs.",
          "license": "Apache-2.0",
          "targets": [
            "laptop",
            "kubernetes"
          ],
          "quickstart": [
            "pip install 'unitycatalog-rs[all]'   # the Python client, the uc CLI, the server and the web UI",
            "uc dev                               # a server on http://localhost:8080, with the web UI",
            "uc catalog list                      # upstream's bin/uc commands"
          ]
        },
        {
          "name": "open-lakehouse/open-lakehouse",
          "url": "https://github.com/open-lakehouse/open-lakehouse",
          "description": "Ships an opt-in Delta Sharing server (1.3.10) on :8443 next to the rest of the stack.",
          "license": "Apache-2.0",
          "targets": [
            "laptop",
            "aws"
          ],
          "quickstart": [
            "git clone https://github.com/open-lakehouse/open-lakehouse",
            "cd open-lakehouse",
            "",
            "cp .env.example .env       # fill in POSTGRES_*, S3_* placeholders",
            "./lakehouse setup          # validate env, install deps, download ~860MB of JARs",
            "./lakehouse start all      # Spark 4.1 master + worker + Connect server + Kafka",
            "./lakehouse start unity-catalog",
            "./lakehouse start mlflow",
            "./lakehouse status --json  # confirm healthy (incl. spark.connect_grpc_listening)"
          ]
        }
      ],
      "caveats": [
        "distributary's README gives developer commands only; its architecture document plans presigned-URL queries, change data feed and recipient tokens."
      ],
      "learn": [
        {
          "label": "Delta Lake on this site",
          "href": "/technologies/delta-lake"
        },
        {
          "label": "Delta Sharing protocol",
          "href": "https://github.com/delta-io/delta-sharing/blob/main/PROTOCOL.md"
        }
      ],
      "faqs": [
        {
          "q": "What is Delta Sharing?",
          "a": "An open REST protocol, governed with Delta Lake under the Linux Foundation, for sharing live tables across organizations. Recipients read the provider's files through short-lived URLs with any compatible client."
        },
        {
          "q": "Do recipients need the same platform as the provider?",
          "a": "No. Clients exist for pandas, Apache Spark and other tools, and the open-lakehouse repos include Rust implementations of the server and client."
        }
      ],
      "sources": [
        {
          "label": "Delta Sharing protocol",
          "href": "https://github.com/delta-io/delta-sharing/blob/main/PROTOCOL.md"
        },
        {
          "label": "distributary",
          "href": "https://github.com/open-lakehouse/distributary"
        }
      ],
      "keywords": [
        "Delta Sharing open source",
        "data sharing lakehouse",
        "share tables without copying",
        "Delta Sharing server Rust"
      ],
      "updated": "2026-11-21",
      "url": "https://openlakehouse.io/reference-architectures/open-data-sharing"
    },
    {
      "slug": "laptop-open-lakehouse",
      "title": "The open lakehouse on a laptop",
      "stackLine": "Spark 4.3, Apache Iceberg, Unity Catalog, Kafka, Airflow, MLflow and an agent, in Docker",
      "tagline": "The whole stack, one service at a time, on the machine in front of you.",
      "category": "Platform",
      "definition": "The open lakehouse on a laptop runs every layer of an open source data platform in Docker on one machine: SeaweedFS as S3-compatible storage, Apache Iceberg tables in Unity Catalog OSS 0.7 through its Iceberg REST endpoint, Apache Spark 4.3 behind a Spark Connect server, Spark Declarative Pipelines for the medallion, Kafka for events, Airflow 3 for scheduling and table maintenance, DuckDB reading the same tables, MLflow for models, and an AI agent on Omnigent with a local model, MCP tools and policies. It exists so a data engineer, a student or an AI agent can build, test and tear down a real lakehouse without a cloud account.",
      "whenToUse": [
        "You want to learn how the layers of an open lakehouse fit together by building them.",
        "You need a local integration environment with a real catalog and object store.",
        "You want an AI agent to have a full, disposable stack to work against."
      ],
      "notFor": [
        "Production: the course's Terraform chapter is illustrative and not applied.",
        "Teams that need a released Iceberg runtime for Spark 4.3 today: the course builds one from an open Iceberg pull request."
      ],
      "nodes": [
        {
          "label": "Order-event generator",
          "slot": "sources",
          "role": "Batch and streaming order events, the course's one dataset"
        },
        {
          "label": "Idempotent bronze loader",
          "slot": "ingest-batch",
          "role": "Appends each batch once"
        },
        {
          "component": "kafka",
          "slot": "ingest-stream",
          "role": "Order events for the streaming chapter",
          "version": "Confluent 7.5.0 images"
        },
        {
          "component": "omnigent",
          "slot": "agent-harness",
          "role": "Runs the SDP agent and evaluates ALLOW, DENY and ASK policies on every tool call",
          "version": "0.22.0"
        },
        {
          "component": "mcp",
          "slot": "agent-tools",
          "role": "Named tools: read and write pipeline files, dry-run or run the pipeline, run one SQL statement; no shell"
        },
        {
          "component": "ollama",
          "slot": "agent-models",
          "role": "Local model sdp-qwen3, built from qwen3:14b with a 16K context window"
        },
        {
          "component": "mlflow",
          "slot": "ml",
          "role": "Tracks a model trained on gold and logs the gold snapshot id",
          "version": "3.1.0"
        },
        {
          "component": "spark-connect",
          "slot": "spark-connect",
          "role": "sc://spark-connect:15002 for every client, the agent included",
          "version": "4.3.0"
        },
        {
          "component": "spark",
          "slot": "batch",
          "role": "Ingestion and queries over Spark Connect",
          "version": "4.3.0"
        },
        {
          "component": "sdp",
          "slot": "pipelines",
          "role": "Bronze to silver to gold; the agent's output, gated on a dry run",
          "version": "pyspark[pipelines]==4.3.0"
        },
        {
          "component": "spark",
          "slot": "streaming",
          "role": "Kafka to iceberg.bronze.orders_raw with a checkpoint on S3",
          "version": "4.3.0"
        },
        {
          "component": "duckdb",
          "slot": "sql",
          "role": "Reads gold through the Iceberg REST endpoint",
          "version": "1.5.6"
        },
        {
          "component": "unity-catalog",
          "slot": "catalog",
          "role": "Writable Iceberg REST catalog; a sandbox namespace for the agent",
          "version": "0.7.0",
          "swaps": [
            "polaris",
            "lakekeeper",
            "unitycatalog-rs"
          ]
        },
        {
          "component": "iceberg",
          "slot": "format",
          "role": "Bronze, silver and gold tables; snapshots for time travel and rollback",
          "version": "runtime 4.3_2.13 built from apache/iceberg#18749",
          "swaps": [
            "delta"
          ]
        },
        {
          "component": "seaweedfs",
          "slot": "storage",
          "role": "s3://lakehouse/warehouse",
          "version": "4.51",
          "swaps": [
            "rustfs",
            "minio",
            "s3"
          ]
        },
        {
          "component": "airflow",
          "slot": "orchestration",
          "role": "Schedules the medallion with backfills",
          "version": "3.3.2",
          "swaps": [
            "dagster"
          ]
        },
        {
          "component": "iceberg-maintenance",
          "slot": "maintenance",
          "role": "A DAG that runs rewrite_data_files, rewrite_manifests and expire_snapshots"
        }
      ],
      "steps": [
        {
          "title": "Storage and compute",
          "body": "SeaweedFS serves the S3 API; Spark 4.3 runs behind a Spark Connect server that every client, including the agent, reaches at sc://."
        },
        {
          "title": "Tables and catalog",
          "body": "Unity Catalog OSS 0.7 is the Iceberg REST catalog; tables are named iceberg.<namespace>.<table>, and the agent gets its own sandbox namespace."
        },
        {
          "title": "Bronze, silver, gold",
          "body": "Batch loads and a Structured Streaming job land bronze; a Spark Declarative Pipeline derives silver and gold."
        },
        {
          "title": "Schedule and maintain",
          "body": "Airflow runs the pipeline with backfills and a second DAG compacts files and expires snapshots."
        },
        {
          "title": "Serve and learn",
          "body": "DuckDB reads gold through the same catalog, MLflow trains on it and records the snapshot id."
        },
        {
          "title": "Hand it to an agent",
          "body": "An agent on Omnigent with a local model and MCP tools writes pipelines into its sandbox; policies require a passing dry run and ask before code pulls results onto one machine."
        }
      ],
      "repos": [
        {
          "name": "open-lakehouse/lakehouse-masterclass",
          "url": "https://github.com/open-lakehouse/lakehouse-masterclass",
          "description": "The course that builds this stack chapter by chapter, from storage to agents. You write the Compose file yourself; there is no single command.",
          "license": "Apache-2.0",
          "targets": [
            "laptop"
          ]
        },
        {
          "name": "open-lakehouse/open-lakehouse",
          "url": "https://github.com/open-lakehouse/open-lakehouse",
          "description": "The same layers prebuilt, writing Delta Lake into Unity Catalog 0.6.0 with Spark 4.1, started with one script.",
          "license": "Apache-2.0",
          "targets": [
            "laptop",
            "aws"
          ],
          "quickstart": [
            "git clone https://github.com/open-lakehouse/open-lakehouse",
            "cd open-lakehouse",
            "",
            "cp .env.example .env       # fill in POSTGRES_*, S3_* placeholders",
            "./lakehouse setup          # validate env, install deps, download ~860MB of JARs",
            "./lakehouse start all      # Spark 4.1 master + worker + Connect server + Kafka",
            "./lakehouse start unity-catalog",
            "./lakehouse start mlflow",
            "./lakehouse status --json  # confirm healthy (incl. spark.connect_grpc_listening)"
          ]
        }
      ],
      "caveats": [
        "There is no released Iceberg Spark runtime for Spark 4.3; chapter 5.5 builds it from apache/iceberg#18749 as a temporary step.",
        "Unity Catalog 0.7 or later is required for Iceberg writes through its REST catalog.",
        "The course recommends 16 GB of RAM; the agent's model needs about 12 GB of memory.",
        "Older SeaweedFS releases have an S3A _temporary rename bug; the course pins 4.51.",
        "In open-lakehouse, writes are Delta only: Unity Catalog 0.6.0 serves Iceberg read-only."
      ],
      "learn": [
        {
          "label": "The agentic lakehouse",
          "href": "/agentic-lakehouse"
        },
        {
          "label": "Open lakehouse on your laptop",
          "href": "/blog/apache-spark/open-lakehouse-on-your-laptop"
        },
        {
          "label": "Getting started with Unity Catalog",
          "href": "/learn/getting-started/unity-catalog"
        },
        {
          "label": "Lakehouse masterclass (course)",
          "href": "https://github.com/open-lakehouse/lakehouse-masterclass"
        }
      ],
      "faqs": [
        {
          "q": "Can I run a full open source lakehouse on a laptop?",
          "a": "Yes. The lakehouse masterclass builds Iceberg tables in Unity Catalog OSS 0.7 on SeaweedFS with Spark 4.3, Kafka, Airflow 3.3.2, DuckDB and MLflow in Docker, and adds an AI agent on Omnigent with a local Ollama model. The open-lakehouse repository offers a prebuilt Delta variant."
        },
        {
          "q": "Can an AI agent work on a local lakehouse safely?",
          "a": "Yes. In the masterclass the agent writes only to its own sandbox namespace, uses named MCP tools instead of a shell, and policies require a passing dry run before any pipeline runs."
        },
        {
          "q": "How do other engines read the tables?",
          "a": "Through Unity Catalog's Iceberg REST endpoint. DuckDB attaches it and reads the gold tables Spark wrote, without copies."
        }
      ],
      "sources": [
        {
          "label": "lakehouse-masterclass",
          "href": "https://github.com/open-lakehouse/lakehouse-masterclass"
        },
        {
          "label": "open-lakehouse docs/compatibility.md",
          "href": "https://github.com/open-lakehouse/open-lakehouse/blob/main/docs/compatibility.md"
        }
      ],
      "keywords": [
        "open source data lakehouse docker",
        "local Iceberg lakehouse",
        "lakehouse on a laptop",
        "Unity Catalog Iceberg docker compose",
        "agentic lakehouse local"
      ],
      "updated": "2026-11-21",
      "url": "https://openlakehouse.io/reference-architectures/laptop-open-lakehouse"
    },
    {
      "slug": "policy-and-lineage",
      "title": "Policy pushdown and open lineage",
      "stackLine": "Cedar policies compiled to CEL, enforced in Spark and DataFusion, with OpenLineage",
      "tagline": "Write access rules once, enforce them inside every engine, and record where every column came from.",
      "category": "More patterns",
      "definition": "Policy pushdown and open lineage is a governance architecture for multi-engine lakehouses. Access rules are authored once in the Cedar policy language, compiled to portable CEL expressions, and enforced inside each query engine's plan as row filters and column masks, so no engine depends on SQL views or per-engine rewrites. Alongside, every job emits OpenLineage events, which are stored as lakehouse tables and served through a lineage API, so auditors can trace a published number back to its sources.",
      "whenToUse": [
        "Several engines read the same sensitive tables.",
        "You need row filters and column masks that cannot be bypassed by choosing a different engine.",
        "Regulators or auditors ask where a value came from."
      ],
      "notFor": [
        "Production lineage storage today without evaluation: headwaters describes itself as experimental and recommends Marquez for production."
      ],
      "nodes": [
        {
          "label": "Policy authors",
          "slot": "sources",
          "role": "Write Cedar policies and tag templates"
        },
        {
          "component": "cedar",
          "slot": "access-policy",
          "role": "Policy language; deny always wins",
          "version": "cedar-policy 4"
        },
        {
          "component": "policast",
          "slot": "access-policy",
          "role": "Compiles Cedar to CEL and injects enforcement into the physical plan"
        },
        {
          "component": "breakwater",
          "slot": "access-policy",
          "role": "Row filters and column masks inside the DataFusion planner",
          "detail": true
        },
        {
          "component": "unity-catalog",
          "slot": "catalog",
          "role": "Policy decision point resolving tags",
          "version": "0.4.1 in the demo",
          "swaps": [
            "unitycatalog-rs",
            "lakekeeper"
          ]
        },
        {
          "component": "rustfs",
          "slot": "storage",
          "role": "Demo object store",
          "swaps": [
            "minio",
            "s3"
          ]
        },
        {
          "component": "iceberg",
          "slot": "format",
          "role": "Lineage event tables, written through Lakekeeper (Delta also supported)",
          "swaps": [
            "delta"
          ]
        },
        {
          "component": "spark",
          "slot": "batch",
          "role": "Enforcement as Catalyst rules",
          "version": "4.2 plugin"
        },
        {
          "component": "datafusion",
          "slot": "sql",
          "role": "Enforcement as plan rewrites",
          "version": "53.1"
        },
        {
          "component": "openlineage",
          "slot": "lineage",
          "role": "Lineage events from every job, column level from Spark"
        },
        {
          "component": "open-lineage-connect",
          "slot": "lineage",
          "role": "Ingests events and writes them to Delta and Iceberg tables"
        },
        {
          "component": "headwaters",
          "slot": "lineage",
          "role": "Lineage read API and UI",
          "detail": true,
          "swaps": [
            "marquez"
          ]
        }
      ],
      "steps": [
        {
          "title": "Author once",
          "body": "A policy author writes Cedar policies, including tag-based templates that apply to every column tagged, for example, as PHI."
        },
        {
          "title": "Compile",
          "body": "policast compiles the policies to CEL expressions that any engine can evaluate."
        },
        {
          "title": "Enforce in the plan",
          "body": "Spark applies them as Catalyst rules and DataFusion as plan rewrites, so filters and masks run inside the query, not in a view."
        },
        {
          "title": "Emit lineage",
          "body": "A Spark 4 plugin emits OpenLineage events with column-level lineage for each job."
        },
        {
          "title": "Store lineage as tables",
          "body": "An ingest service writes the events to Delta or Iceberg tables, which a lineage API and UI read."
        }
      ],
      "repos": [
        {
          "name": "open-lakehouse/policast",
          "url": "https://github.com/open-lakehouse/policast",
          "description": "Author governance once in Cedar, compile it to portable CEL, and push enforcement into Spark and DataFusion physical plans.",
          "license": "Apache-2.0",
          "targets": [
            "laptop"
          ],
          "quickstart": [
            "cp docker/.env.example .env",
            "docker compose up -d sidecar",
            "docker compose --profile demo run --rm datafusion-demo",
            "",
            "# Same policies enforced on Spark (Catalyst rules, no sidecar):",
            "docker compose --profile spark run --rm spark-demo   # or: just spark-demo"
          ]
        },
        {
          "name": "open-lakehouse/open-lineage-connect",
          "url": "https://github.com/open-lakehouse/open-lineage-connect",
          "description": "OpenLineage end to end: a Go ingest service, a Rust service that writes events to Delta and Iceberg tables, and a Spark 4 plugin for column-level lineage.",
          "license": "Apache-2.0",
          "targets": [
            "laptop"
          ],
          "quickstart": [
            "make docker-compose-up        # builds both images, starts both services + MinIO",
            "curl -sf http://localhost:8090/health",
            "curl -sf http://localhost:8091/health",
            "make docker-compose-down      # tears it down and removes the Delta volume"
          ]
        },
        {
          "name": "open-lakehouse/breakwater",
          "url": "https://github.com/open-lakehouse/breakwater",
          "description": "Cedar fine-grained access control for DataFusion, with OCI-distributed policy bundles and a policy decision point service.",
          "license": "Apache-2.0",
          "targets": [
            "cloud-agnostic"
          ]
        },
        {
          "name": "open-lakehouse/headwaters",
          "url": "https://github.com/open-lakehouse/headwaters",
          "description": "Experimental Rust OpenLineage service with a Marquez-inspired read API and UI.",
          "license": "Apache-2.0",
          "targets": [
            "laptop"
          ]
        }
      ],
      "caveats": [
        "In policast, deny always wins and grants never bypass column masks.",
        "headwaters is experimental and not a drop-in Marquez replacement.",
        "The policast demo pins Unity Catalog 0.4.1 as its policy decision point."
      ],
      "learn": [
        {
          "label": "Open governance on this site",
          "href": "/technologies/open-governance"
        },
        {
          "label": "Tracing OpenClaw",
          "href": "/blog/agentic/openclaw-tracing"
        }
      ],
      "faqs": [
        {
          "q": "How do you enforce the same access policy in Spark and other engines?",
          "a": "Compile one policy source into an engine-neutral form and inject it into each engine's query plan. policast compiles Cedar policies to CEL and enforces them as Catalyst rules in Spark and as plan rewrites in DataFusion."
        },
        {
          "q": "What is OpenLineage?",
          "a": "An open standard, hosted by the LF AI & Data Foundation, for lineage events that describe jobs, runs and the datasets they read and write. Spark, Airflow, Flink and dbt have integrations."
        },
        {
          "q": "Can lineage be stored in the lakehouse itself?",
          "a": "Yes. open-lineage-connect writes OpenLineage events to Delta tables, Iceberg tables through a REST catalog, or both."
        }
      ],
      "sources": [
        {
          "label": "policast README",
          "href": "https://github.com/open-lakehouse/policast#readme"
        },
        {
          "label": "open-lineage-connect README",
          "href": "https://github.com/open-lakehouse/open-lineage-connect#readme"
        },
        {
          "label": "OpenLineage",
          "href": "https://openlineage.io"
        }
      ],
      "keywords": [
        "Cedar policy Spark",
        "row level security open source lakehouse",
        "column masking Spark",
        "OpenLineage Spark column lineage",
        "data governance open source"
      ],
      "updated": "2026-11-21",
      "url": "https://openlakehouse.io/reference-architectures/policy-and-lineage"
    },
    {
      "slug": "semantic-layer",
      "title": "Semantic layer with Spark metric views",
      "stackLine": "Metrics declared in YAML, served over Spark Connect to BI, notebooks and agents",
      "tagline": "Define revenue once. Every dashboard, notebook and agent gets the same number.",
      "category": "More patterns",
      "definition": "A semantic layer is the set of governed metric and dimension definitions that sit between tables and the tools that query them. In open source Apache Spark, a metric view declares measures and dimensions in YAML over a source table; consumers query it with the MEASURE() function and Spark expands the definition at query time. Served over Spark Connect or JDBC, the same definitions answer dashboards, notebooks and AI agents, so a metric cannot drift between tools.",
      "whenToUse": [
        "Different teams report different numbers for the same metric.",
        "You want AI agents to answer questions from governed definitions instead of writing raw SQL."
      ],
      "notFor": [
        "Spark versions before metric views shipped; the reference demo is verified on Spark 4.2.0."
      ],
      "nodes": [
        {
          "label": "Gold tables",
          "slot": "sources",
          "role": "Facts and dimensions to measure"
        },
        {
          "component": "delta",
          "slot": "format",
          "role": "Source tables",
          "swaps": [
            "iceberg"
          ]
        },
        {
          "component": "hive-metastore",
          "slot": "catalog",
          "role": "Registers the metric view in the demo",
          "swaps": [
            "unity-catalog"
          ]
        },
        {
          "component": "spark",
          "slot": "batch",
          "role": "Expands MEASURE() at query time",
          "version": "4.2.0"
        },
        {
          "component": "metric-views",
          "slot": "semantic",
          "role": "YAML measures and dimensions"
        },
        {
          "component": "spark-connect",
          "slot": "spark-connect",
          "role": "Remote access for clients and agents"
        },
        {
          "component": "superset",
          "slot": "bi",
          "role": "Dashboards over the metric view",
          "detail": true,
          "swaps": [
            "grafana"
          ]
        }
      ],
      "steps": [
        {
          "title": "Declare metrics",
          "body": "Write measures and dimensions in YAML over a source table."
        },
        {
          "title": "Register",
          "body": "Create the metric view in the catalog."
        },
        {
          "title": "Query with MEASURE()",
          "body": "Clients select dimensions and MEASURE(metric); Spark expands the definition and aggregates at the requested grain."
        },
        {
          "title": "Serve everyone",
          "body": "Dashboards connect over JDBC or Spark Connect, and agents use the same views as tools."
        }
      ],
      "repos": [
        {
          "name": "lisancao/spark-demos",
          "url": "https://github.com/lisancao/spark-demos",
          "description": "Demo 01_metrics_views: eight metric view examples, a doctor script and a grammar probe, verified on Spark 4.2.0.",
          "targets": [
            "laptop"
          ]
        }
      ],
      "caveats": [
        "The reference demo is verified on Spark 4.2.0 and awaits official Spark 4.3 images for re-verification."
      ],
      "learn": [
        {
          "label": "Metric views demo",
          "href": "https://github.com/lisancao/spark-demos/tree/main/demos/01_metrics_views"
        },
        {
          "label": "Spark Connect clients guide",
          "href": "/blog/apache-spark/idiots-guide-spark-connect-clients"
        }
      ],
      "faqs": [
        {
          "q": "Does open source Spark have a semantic layer?",
          "a": "Yes. Spark metric views declare measures and dimensions in YAML over a table, and queries use the MEASURE() function to evaluate them."
        },
        {
          "q": "Why give AI agents a semantic layer?",
          "a": "Because an agent querying metric views uses the governed definition of each metric instead of inventing its own SQL, so its answers match the dashboards."
        }
      ],
      "sources": [
        {
          "label": "spark-demos 01_metrics_views",
          "href": "https://github.com/lisancao/spark-demos/tree/main/demos/01_metrics_views"
        }
      ],
      "keywords": [
        "Spark metric views",
        "open source semantic layer",
        "MEASURE function Spark",
        "semantic layer for AI agents"
      ],
      "updated": "2026-11-21",
      "url": "https://openlakehouse.io/reference-architectures/semantic-layer"
    },
    {
      "slug": "ml-lifecycle",
      "title": "ML and GenAI lifecycle on the lakehouse",
      "stackLine": "MLflow tracking, registry and AI Gateway over open tables",
      "tagline": "Every model run points at the exact table version it was trained on.",
      "category": "More patterns",
      "definition": "The ML lifecycle on an open lakehouse ties experiments, models and GenAI traces to versioned tables. Features are built by Spark from silver and gold tables in an open format; each MLflow run records parameters, metrics, artifacts and the table snapshot or version it trained on; the MLflow model registry promotes versions; and the MLflow AI Gateway fronts model providers for GenAI applications. Because tables support time travel, any run can be reproduced against the exact data it saw.",
      "whenToUse": [
        "You need to reproduce a model from months ago.",
        "You train on lakehouse tables and want lineage from data to model.",
        "You run GenAI applications and want tracing and evaluation in the same place."
      ],
      "notFor": [
        "Low-latency online feature serving by itself: pair it with the real-time streaming pattern and a key-value store."
      ],
      "nodes": [
        {
          "label": "Gold feature tables",
          "slot": "sources",
          "role": "Training data"
        },
        {
          "component": "iceberg",
          "slot": "format",
          "role": "Snapshot ids give reproducible training sets",
          "swaps": [
            "delta"
          ]
        },
        {
          "component": "unity-catalog",
          "slot": "catalog",
          "role": "Tables, and in the course, the catalog the run reads through",
          "swaps": [
            "polaris",
            "lakekeeper"
          ]
        },
        {
          "component": "spark",
          "slot": "batch",
          "role": "Feature engineering and batch scoring",
          "swaps": [
            "duckdb",
            "polars"
          ]
        },
        {
          "component": "mlflow",
          "slot": "ml",
          "role": "Tracking, registry, tracing, evaluation and AI Gateway",
          "version": "3.14.0 in open-lakehouse; 3.1.0 in the course"
        },
        {
          "component": "airflow",
          "slot": "orchestration",
          "role": "Retraining schedules",
          "detail": true
        },
        {
          "component": "jupyter",
          "slot": "bi",
          "role": "Experiments",
          "swaps": [
            "marimo"
          ]
        }
      ],
      "steps": [
        {
          "title": "Build features",
          "body": "Spark reads gold tables and writes a feature table."
        },
        {
          "title": "Record the data version",
          "body": "The training run logs the table's snapshot id or version to MLflow alongside parameters and metrics."
        },
        {
          "title": "Register",
          "body": "A good run's model is registered and promoted in the MLflow model registry."
        },
        {
          "title": "Serve and trace",
          "body": "Applications call models and providers through the MLflow AI Gateway; traces land back in MLflow for evaluation."
        }
      ],
      "repos": [
        {
          "name": "open-lakehouse/open-lakehouse",
          "url": "https://github.com/open-lakehouse/open-lakehouse",
          "description": "Runs MLflow 3.14.0 tracking (:5000) and AI Gateway (:5001) next to Spark, Delta and Unity Catalog.",
          "license": "Apache-2.0",
          "targets": [
            "laptop",
            "aws"
          ],
          "quickstart": [
            "git clone https://github.com/open-lakehouse/open-lakehouse",
            "cd open-lakehouse",
            "",
            "cp .env.example .env       # fill in POSTGRES_*, S3_* placeholders",
            "./lakehouse setup          # validate env, install deps, download ~860MB of JARs",
            "./lakehouse start all      # Spark 4.1 master + worker + Connect server + Kafka",
            "./lakehouse start unity-catalog",
            "./lakehouse start mlflow",
            "./lakehouse status --json  # confirm healthy (incl. spark.connect_grpc_listening)"
          ]
        },
        {
          "name": "open-lakehouse/lakehouse-masterclass",
          "url": "https://github.com/open-lakehouse/lakehouse-masterclass",
          "description": "Chapter 12 trains a model on gold and logs the gold Iceberg snapshot id to MLflow.",
          "license": "Apache-2.0",
          "targets": [
            "laptop"
          ]
        }
      ],
      "caveats": [
        "MLflow 3.x matches --allowed-hosts exactly; the open-lakehouse stack sets localhost:5000 explicitly."
      ],
      "learn": [
        {
          "label": "Getting started with MLflow",
          "href": "/learn/getting-started/mlflow"
        },
        {
          "label": "Agentic posts",
          "href": "/blog/category/agentic"
        }
      ],
      "faqs": [
        {
          "q": "How do I make an ML model reproducible on a lakehouse?",
          "a": "Log the table snapshot id (Iceberg) or version (Delta Lake) used for training to the MLflow run; time travel then lets you read exactly that data again."
        },
        {
          "q": "Is MLflow open source?",
          "a": "Yes. MLflow is Apache-2.0 licensed and hosted by the Linux Foundation."
        }
      ],
      "sources": [
        {
          "label": "MLflow docs",
          "href": "https://mlflow.org/docs/latest/"
        }
      ],
      "keywords": [
        "MLflow lakehouse",
        "reproducible machine learning time travel",
        "MLflow AI Gateway",
        "open source MLOps stack"
      ],
      "updated": "2026-11-21",
      "url": "https://openlakehouse.io/reference-architectures/ml-lifecycle"
    },
    {
      "slug": "arrow-native-serving",
      "title": "Arrow-native serving",
      "stackLine": "Arrow Flight SQL and Spark Connect clients over lakehouse tables",
      "tagline": "Results leave as Arrow columns, not rows, in whatever language the client speaks.",
      "category": "More patterns",
      "definition": "Arrow-native serving delivers lakehouse query results as Apache Arrow record batches over gRPC instead of row-by-row JDBC. Two open protocols do this: Arrow Flight SQL, a generic SQL-over-Flight protocol, and Spark Connect, Spark's client-server protocol. A Flight SQL server built on Apache DataFusion can answer queries over Delta tables with policy enforcement and lineage built in, while Spark Connect lets thin clients in Python, Go, Rust, Swift and other languages send plans to a remote Spark and hand the Arrow results straight to DuckDB or Polars.",
      "whenToUse": [
        "Clients pull large result sets into Python, Rust or other analytical tools.",
        "You want to query the lakehouse from a language without a JVM.",
        "You want policy and lineage enforced at the serving edge."
      ],
      "notFor": [
        "Clients that only speak ODBC or JDBC: put a Flight SQL JDBC driver or a SQL gateway in front."
      ],
      "nodes": [
        {
          "component": "delta",
          "slot": "format",
          "role": "Tables served",
          "swaps": [
            "iceberg"
          ]
        },
        {
          "component": "unity-catalog",
          "slot": "catalog",
          "role": "Resolves tables and vends credentials",
          "swaps": [
            "unitycatalog-rs"
          ]
        },
        {
          "component": "datafusion",
          "slot": "sql",
          "role": "Query engine inside the Flight SQL server",
          "version": "55"
        },
        {
          "component": "spark",
          "slot": "batch",
          "role": "Remote engine behind Spark Connect",
          "version": "4.2.0 in the demos"
        },
        {
          "component": "hydrofoil",
          "slot": "apps",
          "role": "Flight SQL server with Cedar policy and OpenLineage"
        },
        {
          "component": "flight-sql",
          "slot": "apps",
          "role": "Protocol",
          "detail": true
        },
        {
          "component": "spark-connect",
          "slot": "spark-connect",
          "role": "gRPC protocol for Spark clients"
        },
        {
          "component": "breakwater",
          "slot": "access-policy",
          "role": "Cedar enforcement in the DataFusion planner",
          "detail": true
        },
        {
          "component": "openlineage",
          "slot": "lineage",
          "role": "Lineage emitted per query",
          "detail": true
        },
        {
          "component": "spark-connect-clients",
          "slot": "spark-connect",
          "role": "Python, Scala, Go, Rust, OCaml, Swift clients"
        },
        {
          "component": "duckdb",
          "slot": "sql",
          "role": "Joins Arrow results locally",
          "swaps": [
            "polars"
          ]
        }
      ],
      "steps": [
        {
          "title": "Client sends a query or plan",
          "body": "A Flight SQL client sends SQL, or a Spark Connect client sends an unresolved logical plan over gRPC."
        },
        {
          "title": "Server resolves tables",
          "body": "The server resolves table names through the catalog and obtains storage access."
        },
        {
          "title": "Policy applies",
          "body": "In hydrofoil, Cedar policies are enforced inside the DataFusion plan before execution."
        },
        {
          "title": "Arrow streams back",
          "body": "Results stream to the client as Arrow record batches."
        },
        {
          "title": "Zero-copy downstream",
          "body": "The client hands the same Arrow batches to DuckDB or Polars without conversion."
        }
      ],
      "repos": [
        {
          "name": "open-lakehouse/hydrofoil",
          "url": "https://github.com/open-lakehouse/hydrofoil",
          "description": "A Flight SQL server over open-table-format tables, built on DataFusion 55 with Cedar policy enforcement, OpenLineage and OpenTelemetry tracing.",
          "license": "Apache-2.0",
          "targets": [
            "cloud-agnostic"
          ]
        },
        {
          "name": "lisancao/spark-demos",
          "url": "https://github.com/lisancao/spark-demos",
          "description": "Demos 02 (Spark Connect setup), 08 (OCaml client) and 09 (Rust client with DuckDB 2.0 and Polars on the same Arrow batches).",
          "targets": [
            "laptop"
          ]
        }
      ],
      "caveats": [
        "hydrofoil's README does not yet document running the Flight SQL server; its architecture is recorded in docs/adr."
      ],
      "learn": [
        {
          "label": "An idiot's guide to Spark Connect clients",
          "href": "/blog/apache-spark/idiots-guide-spark-connect-clients"
        },
        {
          "label": "Arrow and Spark",
          "href": "/blog/apache-spark/arrow-and-spark"
        }
      ],
      "faqs": [
        {
          "q": "What is the difference between Arrow Flight SQL and Spark Connect?",
          "a": "Both stream Apache Arrow over gRPC. Flight SQL is a generic SQL protocol any engine can implement; Spark Connect carries Spark's own logical plans, so clients get the full DataFrame API of a remote Spark."
        },
        {
          "q": "Can I use Spark from Rust or Go?",
          "a": "Yes, through Spark Connect clients. spark-demos demo 09 uses the Rust client and passes the Arrow results to DuckDB and Polars."
        }
      ],
      "sources": [
        {
          "label": "Arrow Flight SQL",
          "href": "https://arrow.apache.org/docs/format/FlightSql.html"
        },
        {
          "label": "Spark Connect overview",
          "href": "https://spark.apache.org/docs/latest/spark-connect-overview.html"
        }
      ],
      "keywords": [
        "Arrow Flight SQL lakehouse",
        "Spark Connect Rust",
        "Spark Connect Go",
        "DataFusion Flight SQL server"
      ],
      "updated": "2026-11-21",
      "url": "https://openlakehouse.io/reference-architectures/arrow-native-serving"
    },
    {
      "slug": "cloud-deployment-aws",
      "title": "Self-hosted catalog on AWS",
      "stackLine": "Unity Catalog OSS on ECS Fargate with Neon Postgres and S3, in Terraform",
      "tagline": "The open catalog in your own AWS account, with no static storage keys.",
      "category": "More patterns",
      "definition": "A self-hosted open catalog on AWS runs Unity Catalog OSS as a container on Amazon ECS Fargate behind an Application Load Balancer, keeps catalog metadata in a managed Postgres database, stores configuration on EFS and secrets in AWS Secrets Manager, and vends credentials for an S3 data bucket through a bucket-scoped IAM role instead of static keys. Everything is declared in Terraform, so the catalog can be recreated in another account or region from code.",
      "whenToUse": [
        "You want an open catalog in your own cloud account.",
        "Data residency or sovereignty rules out a hosted service."
      ],
      "notFor": [
        "A full compute stack: this reference deploys the catalog server; compute is deployed separately."
      ],
      "nodes": [
        {
          "component": "s3",
          "slot": "storage",
          "role": "Data bucket reached through a bucket-scoped storage role"
        },
        {
          "component": "unity-catalog",
          "slot": "catalog",
          "role": "Catalog server, digest-pinned and mirrored to ECR",
          "version": "0.7.0",
          "swaps": [
            "unitycatalog-rs",
            "polaris",
            "lakekeeper"
          ]
        },
        {
          "component": "neon",
          "slot": "catalog",
          "role": "Postgres for catalog metadata",
          "swaps": [
            "postgres"
          ]
        },
        {
          "component": "ecs-fargate",
          "slot": "deploy",
          "role": "Runs the server in a two-AZ VPC behind a public ALB",
          "swaps": [
            "kubernetes"
          ]
        },
        {
          "component": "terraform",
          "slot": "deploy",
          "role": "Declares the whole deployment",
          "version": ">= 1.11, AWS provider ~> 6.45",
          "swaps": [
            "opentofu"
          ]
        },
        {
          "component": "spark",
          "slot": "batch",
          "role": "Any engine with a Unity Catalog or Iceberg REST client",
          "swaps": [
            "trino",
            "duckdb"
          ]
        }
      ],
      "steps": [
        {
          "title": "Prepare a profile",
          "body": "just init-profile and just doctor check AWS credentials and tooling."
        },
        {
          "title": "Sync state and secrets",
          "body": "Terraform state and the Neon connection secret are synced into the account."
        },
        {
          "title": "Deploy",
          "body": "just deploy uc-server applies Terraform: VPC, ALB, ECS service, EFS and the storage role."
        },
        {
          "title": "Bootstrap",
          "body": "The bootstrap step creates the storage credential, the unity catalog and the unity.default schema."
        }
      ],
      "repos": [
        {
          "name": "open-lakehouse/terraform-deploy-oss",
          "url": "https://github.com/open-lakehouse/terraform-deploy-oss",
          "description": "Terraform and scripts for deploying open source lakehouse services to the cloud, starting with Unity Catalog on AWS.",
          "targets": [
            "aws"
          ],
          "quickstart": [
            "just init-profile prod",
            "just doctor",
            "just sync terraform-state",
            "just sync neon-secret",
            "just deploy uc-server"
          ]
        },
        {
          "name": "open-lakehouse/open-lakehouse",
          "url": "https://github.com/open-lakehouse/open-lakehouse",
          "description": "terraform/ holds AWS deployment for the rest of the stack, including Spark and MLflow on ECS (just deploy spark-ecs, just deploy mlflow-ecs).",
          "license": "Apache-2.0",
          "targets": [
            "laptop",
            "aws"
          ],
          "quickstart": [
            "git clone https://github.com/open-lakehouse/open-lakehouse",
            "cd open-lakehouse",
            "",
            "cp .env.example .env       # fill in POSTGRES_*, S3_* placeholders",
            "./lakehouse setup          # validate env, install deps, download ~860MB of JARs",
            "./lakehouse start all      # Spark 4.1 master + worker + Connect server + Kafka",
            "./lakehouse start unity-catalog",
            "./lakehouse start mlflow",
            "./lakehouse status --json  # confirm healthy (incl. spark.connect_grpc_listening)"
          ]
        }
      ],
      "caveats": [
        "Upgrading Unity Catalog from 0.6.0 or earlier needs a schema change: ALTER TABLE uc_properties ALTER COLUMN property_value TYPE text;",
        "Unity Catalog 0.7.0 permanently deletes dropped managed table files after seven days.",
        "The default ingress CIDR is 0.0.0.0/0; narrow it before production.",
        "During the measured v0.7.0 cutover in the sandbox, 5 of 491 requests returned 502 within 8 seconds (docs/unitycatalog/observability.md)."
      ],
      "learn": [
        {
          "label": "Multi-engine catalog pattern",
          "href": "/reference-architectures/multi-engine-catalog"
        },
        {
          "label": "Getting started with Unity Catalog",
          "href": "/learn/getting-started/unity-catalog"
        }
      ],
      "faqs": [
        {
          "q": "How do I deploy Unity Catalog OSS on AWS?",
          "a": "terraform-deploy-oss runs Unity Catalog 0.7.0 on ECS Fargate behind an ALB, with Neon Postgres for metadata, EFS for configuration and a bucket-scoped IAM role for S3, deployed with just deploy uc-server."
        }
      ],
      "sources": [
        {
          "label": "terraform-deploy-oss",
          "href": "https://github.com/open-lakehouse/terraform-deploy-oss"
        }
      ],
      "keywords": [
        "deploy Unity Catalog AWS",
        "Unity Catalog ECS Fargate",
        "Unity Catalog Terraform",
        "self-hosted data catalog AWS"
      ],
      "updated": "2026-11-21",
      "url": "https://openlakehouse.io/reference-architectures/cloud-deployment-aws"
    },
    {
      "slug": "serverless-lakehouse-services",
      "title": "Serverless lakehouse services",
      "stackLine": "Catalog and lineage as Neon Functions on branchable Postgres",
      "tagline": "Every pull request gets its own catalog, database and bucket.",
      "category": "More patterns",
      "definition": "Serverless lakehouse services package the control plane of an open lakehouse (the catalog, the lineage service and the sharing server) as functions that run per database branch. In luminescent-lakehouse, Rust services built on axum are compiled to Node-API addons and deployed as Neon Functions; each Neon branch gets its own Postgres schema and storage bucket, so a pull request preview has a full, isolated catalog and lineage service that disappears with the branch.",
      "whenToUse": [
        "You want preview environments with their own catalog per pull request.",
        "You want to run lakehouse control-plane services without operating servers."
      ],
      "notFor": [
        "Data-plane compute: engines still run elsewhere and talk to these services over HTTP."
      ],
      "nodes": [
        {
          "component": "neon",
          "slot": "catalog",
          "role": "Per-branch Postgres and storage bucket"
        },
        {
          "component": "unitycatalog-rs",
          "slot": "catalog",
          "role": "Catalog function (mangrove server)"
        },
        {
          "component": "headwaters",
          "slot": "lineage",
          "role": "OpenLineage ingest with Marquez-compatible reads"
        },
        {
          "component": "distributary",
          "slot": "sharing",
          "role": "Sharing function; built and tested, not yet deployed",
          "detail": true
        },
        {
          "component": "delta",
          "slot": "format",
          "role": "Managed tables under s3://lakehouse/managed"
        }
      ],
      "steps": [
        {
          "title": "Build",
          "body": "Each Rust service is compiled to a linux-arm64 Node-API addon and bundled within Neon's size limits."
        },
        {
          "title": "Migrate a branch",
          "body": "Deploying to a Neon branch runs the database migrations for that branch."
        },
        {
          "title": "Deploy functions",
          "body": "The catalog and lineage functions are applied to the branch from neon.ts."
        },
        {
          "title": "Promote",
          "body": "Pull requests get preview branches, merges deploy to staging, and production needs manual approval."
        }
      ],
      "repos": [
        {
          "name": "open-lakehouse/luminescent-lakehouse",
          "url": "https://github.com/open-lakehouse/luminescent-lakehouse",
          "description": "Deploys open-lakehouse services (Unity Catalog, OpenLineage, OpenSharing) to Neon as functions.",
          "license": "Apache-2.0",
          "targets": [
            "serverless"
          ],
          "quickstart": [
            "just test <fn>         # host-native addon behind the fetch handler, node --test",
            "just build <fn>        # linux-arm64 bundle + zip, gated on Neon's size limits",
            "just test-arm64 <fn>   # the deployable bundle in node:24-bookworm-slim",
            "just deploy <branch>   # migrate a Neon branch and apply neon.ts to it"
          ]
        }
      ],
      "caveats": [
        "The opensharing function builds and passes tests but is not in neon.ts yet; only the catalog and lineage functions deploy."
      ],
      "learn": [
        {
          "label": "Self-hosted catalog on AWS",
          "href": "/reference-architectures/cloud-deployment-aws"
        }
      ],
      "faqs": [
        {
          "q": "Can a data catalog run serverless?",
          "a": "Yes. luminescent-lakehouse runs a Unity Catalog implementation and an OpenLineage service as Neon Functions, with a separate Postgres branch and bucket per environment."
        }
      ],
      "sources": [
        {
          "label": "luminescent-lakehouse",
          "href": "https://github.com/open-lakehouse/luminescent-lakehouse"
        }
      ],
      "keywords": [
        "serverless data catalog",
        "Neon functions lakehouse",
        "preview environments data platform"
      ],
      "updated": "2026-11-21",
      "url": "https://openlakehouse.io/reference-architectures/serverless-lakehouse-services"
    }
  ],
  "industries": [
    {
      "slug": "banking",
      "name": "Banking",
      "sector": "Financial services",
      "summary": "Banks move core banking ledgers, card authorizations and payment messages into open tables so fraud, risk and regulatory reporting read one governed copy instead of a mart per team.",
      "sources": [
        {
          "name": "Core banking system",
          "delivery": "Nightly batch extracts plus CDC from the ledger database"
        },
        {
          "name": "Card authorization switch",
          "delivery": "Streaming, one event per authorization"
        },
        {
          "name": "Payment hub",
          "delivery": "Streaming ISO 20022 messages"
        },
        {
          "name": "CRM and digital channels",
          "delivery": "Hourly batch and clickstream events"
        },
        {
          "name": "Market and reference data feeds",
          "delivery": "Intraday batch files"
        }
      ],
      "formats": [
        {
          "name": "ISO 20022",
          "body": "ISO",
          "url": "https://www.iso20022.org",
          "what": "XML message standard for payments and securities"
        },
        {
          "name": "SWIFT MT",
          "body": "Swift",
          "url": "https://www.swift.com/standards/category-7-mt",
          "what": "Legacy FIN messages still exchanged during the MX migration"
        },
        {
          "name": "ISO 8583",
          "body": "ISO",
          "url": "https://www.iso.org/standard/79451.html",
          "what": "Card transaction message format"
        }
      ],
      "medallion": {
        "bronze": "Raw ledger extracts and payment messages",
        "silver": "Conformed accounts, customers and transactions",
        "gold": "Exposure, liquidity and fraud features"
      },
      "useCases": [
        {
          "title": "Real-time card fraud scoring",
          "problem": "Score each authorization against recent account behaviour before the switch times out.",
          "pattern": "real-time-streaming"
        },
        {
          "title": "Regulatory reporting from one copy",
          "problem": "Build liquidity and capital reports from conformed silver tables with lineage an auditor can follow.",
          "pattern": "policy-and-lineage"
        },
        {
          "title": "Core banking CDC into the lakehouse",
          "problem": "Keep a current and historical (SCD type 2) view of accounts without full nightly reloads.",
          "pattern": "change-data-capture"
        },
        {
          "title": "Credit risk model lifecycle",
          "problem": "Track, register and compare probability-of-default models trained on governed features.",
          "pattern": "ml-lifecycle"
        },
        {
          "title": "Analyst questions in plain language",
          "problem": "Let relationship managers ask about balances and products through governed metric definitions.",
          "pattern": "semantic-layer"
        }
      ],
      "url": "https://openlakehouse.io/reference-architectures/industries/banking"
    },
    {
      "slug": "payments-fintech",
      "name": "Payments and fintech",
      "sector": "Financial services",
      "summary": "Payment processors and fintechs run on event streams; the lakehouse holds the durable history that fraud models, reconciliation and merchant analytics read.",
      "sources": [
        {
          "name": "Payment gateway and acquirer",
          "delivery": "Streaming authorization and capture events"
        },
        {
          "name": "ACH and real-time payment rails",
          "delivery": "Batch files and streaming ISO 20022"
        },
        {
          "name": "Application databases",
          "delivery": "CDC through Debezium"
        },
        {
          "name": "Mobile app events",
          "delivery": "Streaming clickstream"
        }
      ],
      "formats": [
        {
          "name": "ISO 8583",
          "body": "ISO",
          "url": "https://www.iso.org/standard/79451.html",
          "what": "Card network messages"
        },
        {
          "name": "ISO 20022",
          "body": "ISO",
          "url": "https://www.iso20022.org",
          "what": "Real-time and cross-border payment messages"
        },
        {
          "name": "Nacha ACH file format",
          "body": "Nacha",
          "url": "https://www.nacha.org",
          "what": "Fixed-width US ACH batch files"
        }
      ],
      "medallion": {
        "bronze": "Raw gateway events and rail files",
        "silver": "One row per payment with its lifecycle state",
        "gold": "Merchant settlement, chargeback and fraud features"
      },
      "useCases": [
        {
          "title": "Sub-second fraud features",
          "problem": "Maintain velocity counters per card and device and serve them while the payment is still in flight.",
          "pattern": "real-time-streaming"
        },
        {
          "title": "Ledger reconciliation",
          "problem": "Match gateway, processor and bank files every day and surface the breaks.",
          "pattern": "batch-medallion"
        },
        {
          "title": "Streaming payment history into tables",
          "problem": "Land every gateway event in a bronze table and keep silver current within seconds.",
          "pattern": "streaming-medallion"
        },
        {
          "title": "Migrating a Flink fraud job to Spark",
          "problem": "Port keyed state and windows to Spark and measure whether latency holds.",
          "pattern": "real-time-streaming"
        },
        {
          "title": "Governed agent for merchant support",
          "problem": "Let an agent answer settlement questions with tools limited by policy.",
          "pattern": "governed-ai-agents"
        }
      ],
      "url": "https://openlakehouse.io/reference-architectures/industries/payments-fintech"
    },
    {
      "slug": "healthcare",
      "name": "Healthcare providers",
      "sector": "Healthcare and life sciences",
      "summary": "Health systems pull EHR, claims and device data into open tables mapped to a common data model, with strict access policy on every column that identifies a patient.",
      "sources": [
        {
          "name": "Electronic health record",
          "delivery": "HL7 v2 feeds, FHIR APIs and bulk exports"
        },
        {
          "name": "Claims and billing",
          "delivery": "Batch X12 837 and 835 files"
        },
        {
          "name": "Imaging archive (PACS)",
          "delivery": "DICOM objects and metadata"
        },
        {
          "name": "Bedside and remote monitoring devices",
          "delivery": "Streaming vitals"
        }
      ],
      "formats": [
        {
          "name": "HL7 FHIR",
          "body": "HL7 International",
          "url": "https://hl7.org/fhir/",
          "what": "REST resources and bulk NDJSON exports for clinical data"
        },
        {
          "name": "HL7 v2",
          "body": "HL7 International",
          "url": "https://www.hl7.org/implement/standards/product_brief.cfm?product_id=185",
          "what": "Pipe-delimited ADT, ORU and ORM messages"
        },
        {
          "name": "DICOM",
          "body": "NEMA (DICOM Standards Committee)",
          "url": "https://www.dicomstandard.org",
          "what": "Medical imaging objects and metadata"
        },
        {
          "name": "OMOP CDM",
          "body": "OHDSI",
          "url": "https://ohdsi.github.io/CommonDataModel/",
          "what": "Common data model for observational research"
        },
        {
          "name": "X12 837/835",
          "body": "X12",
          "url": "https://x12.org",
          "what": "Claim and remittance transactions"
        }
      ],
      "medallion": {
        "bronze": "Raw HL7, FHIR bundles and claim files",
        "silver": "OMOP-conformed persons, visits, conditions and measurements",
        "gold": "Quality measures, readmission risk and capacity dashboards"
      },
      "useCases": [
        {
          "title": "Patient-level access policy",
          "problem": "Enforce row filters and column masks on PHI the same way in every engine that reads the tables.",
          "pattern": "policy-and-lineage"
        },
        {
          "title": "Real-time deterioration alerts",
          "problem": "Score streaming vitals against early-warning rules and push alerts to care teams.",
          "pattern": "real-time-streaming"
        },
        {
          "title": "FHIR bulk export to OMOP",
          "problem": "Land FHIR NDJSON in bronze and transform it into the OMOP common data model.",
          "pattern": "batch-medallion"
        },
        {
          "title": "Readmission risk models",
          "problem": "Track experiments and promote models with a registry that records the training data version.",
          "pattern": "ml-lifecycle"
        },
        {
          "title": "Research data sharing",
          "problem": "Share de-identified cohorts with a university partner as live tables.",
          "pattern": "open-data-sharing"
        }
      ],
      "url": "https://openlakehouse.io/reference-architectures/industries/healthcare"
    },
    {
      "slug": "manufacturing",
      "name": "Manufacturing",
      "sector": "Manufacturing and industrial",
      "summary": "Plants stream machine telemetry from the shop floor, join it with MES and ERP records, and use the result for predictive maintenance, quality and OEE.",
      "sources": [
        {
          "name": "PLCs and SCADA via OPC UA",
          "delivery": "Streaming sensor tags"
        },
        {
          "name": "Plant historian",
          "delivery": "Batch backfill and streaming"
        },
        {
          "name": "Manufacturing execution system (MES)",
          "delivery": "CDC"
        },
        {
          "name": "ERP",
          "delivery": "Nightly batch"
        }
      ],
      "formats": [
        {
          "name": "OPC UA",
          "body": "OPC Foundation",
          "url": "https://opcfoundation.org/about/opc-technologies/opc-ua/",
          "what": "Industrial machine-to-machine protocol and information model"
        },
        {
          "name": "MQTT",
          "body": "OASIS",
          "url": "https://mqtt.org",
          "what": "Lightweight publish/subscribe messaging for devices"
        },
        {
          "name": "Sparkplug",
          "body": "Eclipse Foundation",
          "url": "https://sparkplug.eclipse.org",
          "what": "MQTT topic and payload specification for industrial data"
        },
        {
          "name": "ISA-95",
          "body": "ISA",
          "url": "https://www.isa.org/standards-and-publications/isa-standards/isa-95-standard",
          "what": "Model for enterprise and control system integration"
        }
      ],
      "medallion": {
        "bronze": "Raw tag readings and MES events",
        "silver": "Asset-aligned time series on the ISA-95 hierarchy",
        "gold": "OEE, scrap rate and failure predictions"
      },
      "useCases": [
        {
          "title": "Predictive maintenance",
          "problem": "Compute rolling sensor features per asset and score failure risk continuously.",
          "pattern": "real-time-streaming"
        },
        {
          "title": "Telemetry into tables",
          "problem": "Land MQTT and OPC UA readings in bronze and keep asset-level silver current.",
          "pattern": "streaming-medallion"
        },
        {
          "title": "OEE dashboards with one definition",
          "problem": "Define availability, performance and quality once and query them from BI and agents.",
          "pattern": "semantic-layer"
        },
        {
          "title": "Supplier data exchange",
          "problem": "Share quality and demand tables with suppliers as live tables.",
          "pattern": "open-data-sharing"
        },
        {
          "title": "Quality and scrap analytics",
          "problem": "Join MES quality checks with ERP orders every shift to find where scrap comes from.",
          "pattern": "batch-medallion"
        }
      ],
      "url": "https://openlakehouse.io/reference-architectures/industries/manufacturing"
    },
    {
      "slug": "energy-utilities",
      "name": "Energy and utilities",
      "sector": "Energy and resources",
      "summary": "Utilities combine smart meter interval data, grid telemetry and asset records for load forecasting, outage response and regulatory filings.",
      "sources": [
        {
          "name": "Advanced metering infrastructure (AMI)",
          "delivery": "Interval reads every 15 minutes, batch and streaming"
        },
        {
          "name": "SCADA and substation automation",
          "delivery": "Streaming telemetry"
        },
        {
          "name": "Outage management system",
          "delivery": "Streaming events"
        },
        {
          "name": "GIS and asset registry",
          "delivery": "Batch"
        }
      ],
      "formats": [
        {
          "name": "IEC 61850",
          "body": "IEC",
          "url": "https://webstore.iec.ch/en/publication/6028",
          "what": "Substation automation communication"
        },
        {
          "name": "CIM (IEC 61970 / 61968)",
          "body": "IEC",
          "url": "https://cimug.ucaiug.org",
          "what": "Common information model for grid and distribution"
        },
        {
          "name": "Green Button",
          "body": "Green Button Alliance",
          "url": "https://www.greenbuttonalliance.org",
          "what": "Customer energy usage data exchange"
        },
        {
          "name": "DNP3 (IEEE 1815)",
          "body": "IEEE",
          "url": "https://standards.ieee.org/ieee/1815/10003/",
          "what": "SCADA protocol for utilities"
        }
      ],
      "medallion": {
        "bronze": "Raw interval reads and SCADA points",
        "silver": "Validated, estimated and edited (VEE) meter data on the CIM network model",
        "gold": "Load forecasts, outage KPIs and rate-case reports"
      },
      "useCases": [
        {
          "title": "Load forecasting",
          "problem": "Train and track forecast models on years of interval data plus weather.",
          "pattern": "ml-lifecycle"
        },
        {
          "title": "Meter data at scale",
          "problem": "Process billions of interval reads a day through bronze, VEE silver and billing gold.",
          "pattern": "batch-medallion"
        },
        {
          "title": "Outage detection from streaming telemetry",
          "problem": "Correlate last-gasp meter events and SCADA alarms within seconds.",
          "pattern": "real-time-streaming"
        },
        {
          "title": "Regulator and partner sharing",
          "problem": "Share reliability metrics with regulators as live tables.",
          "pattern": "open-data-sharing"
        },
        {
          "title": "Self-hosted on AWS",
          "problem": "Run the open stack in the utility's own cloud account with infrastructure as code.",
          "pattern": "cloud-deployment-aws"
        }
      ],
      "url": "https://openlakehouse.io/reference-architectures/industries/energy-utilities"
    },
    {
      "slug": "retail-ecommerce",
      "name": "Retail and e-commerce",
      "sector": "Retail and consumer",
      "summary": "Retailers and online stores bring point-of-sale, clickstream, inventory, supply chain and loyalty data together for demand forecasting, replenishment, personalization and fraud.",
      "sources": [
        {
          "name": "Point-of-sale systems",
          "delivery": "Streaming baskets, end-of-day batch"
        },
        {
          "name": "Web and app clickstream",
          "delivery": "Streaming events"
        },
        {
          "name": "Inventory and warehouse management",
          "delivery": "CDC"
        },
        {
          "name": "Supplier EDI",
          "delivery": "Batch X12 or EDIFACT documents"
        },
        {
          "name": "Loyalty and CRM",
          "delivery": "Batch"
        }
      ],
      "formats": [
        {
          "name": "GS1 EPCIS",
          "body": "GS1",
          "url": "https://www.gs1.org/standards/epcis",
          "what": "Supply chain visibility events"
        },
        {
          "name": "GTIN",
          "body": "GS1",
          "url": "https://www.gs1.org/standards/id-keys/gtin",
          "what": "Global trade item numbers that key the product master"
        },
        {
          "name": "ANSI X12 (850, 856, 810)",
          "body": "X12",
          "url": "https://x12.org",
          "what": "Purchase orders, ship notices and invoices"
        },
        {
          "name": "UN/EDIFACT",
          "body": "UNECE",
          "url": "https://unece.org/trade/uncefact/introducing-unedifact",
          "what": "International EDI messages"
        },
        {
          "name": "CloudEvents",
          "body": "CNCF",
          "url": "https://cloudevents.io",
          "what": "Common envelope for clickstream and order events"
        }
      ],
      "medallion": {
        "bronze": "Raw baskets, EDI documents and stock snapshots",
        "silver": "Sales, inventory and orders keyed by GTIN and store",
        "gold": "Forecasts, replenishment orders and customer segments"
      },
      "useCases": [
        {
          "title": "Demand forecasting",
          "problem": "Train store-by-SKU forecasts and track which model version produced each order.",
          "pattern": "ml-lifecycle"
        },
        {
          "title": "Real-time inventory",
          "problem": "Keep stock positions current from POS and warehouse events so online orders do not oversell.",
          "pattern": "streaming-medallion"
        },
        {
          "title": "Supplier collaboration",
          "problem": "Share sell-through and stock tables with suppliers instead of sending reports.",
          "pattern": "open-data-sharing"
        },
        {
          "title": "One definition of margin",
          "problem": "Define revenue, margin and sell-through once for BI, notebooks and agents.",
          "pattern": "semantic-layer"
        },
        {
          "title": "In-session recommendations",
          "problem": "Update product recommendations while the shopper is still browsing.",
          "pattern": "real-time-streaming"
        },
        {
          "title": "Clickstream to sessions",
          "problem": "Sessionize web and app events with watermarks and land them as tables for funnel analysis.",
          "pattern": "streaming-medallion"
        }
      ],
      "url": "https://openlakehouse.io/reference-architectures/industries/retail-ecommerce"
    },
    {
      "slug": "telecommunications",
      "name": "Telecommunications",
      "sector": "Technology, media and telecom",
      "summary": "Operators collect network performance counters, call detail records and customer data for network planning, churn and service assurance.",
      "sources": [
        {
          "name": "Network elements and OSS",
          "delivery": "Streaming performance counters and alarms"
        },
        {
          "name": "Mediation (CDRs and xDRs)",
          "delivery": "Batch files every few minutes"
        },
        {
          "name": "BSS: billing and CRM",
          "delivery": "CDC"
        }
      ],
      "formats": [
        {
          "name": "3GPP charging data records",
          "body": "3GPP",
          "url": "https://www.3gpp.org/specifications-technologies",
          "what": "CDR formats defined in TS 32.297 and related specs"
        },
        {
          "name": "TM Forum Open APIs",
          "body": "TM Forum",
          "url": "https://www.tmforum.org/oda/open-apis/",
          "what": "Standard APIs for BSS and OSS integration"
        }
      ],
      "medallion": {
        "bronze": "Raw counters, alarms and CDR files",
        "silver": "Cell, subscriber and session-level facts",
        "gold": "Network KPIs, churn scores and capacity plans"
      },
      "useCases": [
        {
          "title": "Service assurance",
          "problem": "Correlate alarms and KPI drops across cells within seconds.",
          "pattern": "real-time-streaming"
        },
        {
          "title": "CDR processing",
          "problem": "Process mediation files into rated usage tables every few minutes.",
          "pattern": "streaming-medallion"
        },
        {
          "title": "Churn models",
          "problem": "Train and track churn models on usage, care and billing features.",
          "pattern": "ml-lifecycle"
        },
        {
          "title": "Subscriber data protection",
          "problem": "Mask subscriber identifiers for analysts and keep lineage for regulators.",
          "pattern": "policy-and-lineage"
        },
        {
          "title": "Network planning on many engines",
          "problem": "Run heavy jobs in Spark and interactive exploration in Trino against one catalog.",
          "pattern": "multi-engine-catalog"
        }
      ],
      "url": "https://openlakehouse.io/reference-architectures/industries/telecommunications"
    },
    {
      "slug": "cybersecurity",
      "name": "Cybersecurity",
      "sector": "Technology, media and telecom",
      "summary": "Security teams keep years of logs in open tables at object-storage prices and run detections, hunts and investigations over them with several engines.",
      "sources": [
        {
          "name": "Endpoint, identity and network logs",
          "delivery": "Streaming"
        },
        {
          "name": "Cloud audit logs",
          "delivery": "Streaming and batch"
        },
        {
          "name": "Threat intelligence feeds",
          "delivery": "Batch STIX bundles"
        }
      ],
      "formats": [
        {
          "name": "OCSF",
          "body": "OCSF project",
          "url": "https://ocsf.io",
          "what": "Open Cybersecurity Schema Framework for normalized security events"
        },
        {
          "name": "STIX / TAXII",
          "body": "OASIS",
          "url": "https://oasis-open.github.io/cti-documentation/",
          "what": "Threat intelligence objects and transport"
        },
        {
          "name": "Sigma",
          "body": "SigmaHQ",
          "url": "https://sigmahq.io",
          "what": "Generic detection rule format"
        }
      ],
      "medallion": {
        "bronze": "Raw logs per source",
        "silver": "OCSF-normalized events",
        "gold": "Detections, incidents and entity timelines"
      },
      "useCases": [
        {
          "title": "Streaming detections",
          "problem": "Evaluate detection rules on normalized events within seconds of arrival.",
          "pattern": "real-time-streaming"
        },
        {
          "title": "Security data lake",
          "problem": "Normalize every source to OCSF in silver and keep years of history cheaply.",
          "pattern": "streaming-medallion"
        },
        {
          "title": "Threat hunting with any engine",
          "problem": "Hunt in DuckDB or Trino over the same tables that Spark writes.",
          "pattern": "multi-engine-catalog"
        },
        {
          "title": "Least-privilege access to logs",
          "problem": "Restrict sensitive log fields by role in every engine.",
          "pattern": "policy-and-lineage"
        },
        {
          "title": "Investigation agents",
          "problem": "Let an agent query logs and draft incident timelines under strict tool policy.",
          "pattern": "governed-ai-agents"
        }
      ],
      "url": "https://openlakehouse.io/reference-architectures/industries/cybersecurity"
    }
  ],
  "resources": [
    {
      "id": "runnable-stacks",
      "title": "Runnable stacks and courses",
      "intro": "Clone one of these and you have a working open lakehouse to learn on or test against.",
      "items": [
        {
          "name": "open-lakehouse",
          "url": "https://github.com/open-lakehouse/open-lakehouse",
          "what": "Spark, Delta Lake, Unity Catalog, Kafka, Airflow and MLflow in Docker, with an AWS path."
        },
        {
          "name": "unitycatalog-playground",
          "url": "https://github.com/open-lakehouse/unitycatalog-playground",
          "what": "Unity Catalog OSS with Spark, Delta and Iceberg in marimo notebooks."
        },
        {
          "name": "lakehouse-masterclass",
          "url": "https://github.com/open-lakehouse/lakehouse-masterclass",
          "what": "A textbook course that builds an open lakehouse one service per chapter."
        },
        {
          "name": "Spark Masterclass",
          "url": "https://open-lakehouse.github.io/spark-masterclass/",
          "what": "A runnable online book on Apache Spark 4.3; every number traces to a script."
        },
        {
          "name": "spark-demos",
          "url": "https://github.com/lisancao/spark-demos",
          "what": "One runnable demo per Spark feature: metric views, Spark Connect, Real-Time Mode and more."
        },
        {
          "name": "safe-spark-agents-paper",
          "url": "https://github.com/open-lakehouse/safe-spark-agents-paper",
          "what": "A reproducible study and reference architecture for AI agents building Spark pipelines."
        }
      ]
    },
    {
      "id": "table-formats",
      "title": "Open table formats",
      "intro": "ACID tables on object storage, readable by many engines.",
      "items": [
        {
          "component": "delta",
          "name": "Delta Lake",
          "url": "https://github.com/delta-io/delta",
          "what": "Transaction-log table format; the protocol is in PROTOCOL.md."
        },
        {
          "name": "delta-rs",
          "url": "https://github.com/delta-io/delta-rs",
          "what": "Native Rust and Python library for Delta tables, no JVM."
        },
        {
          "name": "delta-kernel-rs",
          "url": "https://github.com/delta-io/delta-kernel-rs",
          "what": "A Rust kernel that engines embed to read and write Delta."
        },
        {
          "component": "iceberg",
          "name": "Apache Iceberg",
          "url": "https://github.com/apache/iceberg",
          "what": "Metadata-tree table format with a REST catalog specification."
        },
        {
          "component": "pyiceberg",
          "name": "PyIceberg",
          "url": "https://github.com/apache/iceberg-python",
          "what": "Pure-Python Iceberg reads and writes."
        },
        {
          "name": "iceberg-rust",
          "url": "https://github.com/apache/iceberg-rust",
          "what": "The Rust implementation of Apache Iceberg."
        },
        {
          "component": "hudi",
          "name": "Apache Hudi",
          "url": "https://github.com/apache/hudi",
          "what": "Table format built around upserts and incremental queries."
        }
      ]
    },
    {
      "id": "catalogs",
      "title": "Catalogs",
      "intro": "Where engines find tables, and where access is decided.",
      "items": [
        {
          "component": "unity-catalog",
          "name": "Unity Catalog OSS",
          "url": "https://github.com/unitycatalog/unitycatalog",
          "what": "Tables, volumes, functions and models, with Iceberg REST and credential vending."
        },
        {
          "component": "polaris",
          "name": "Apache Polaris",
          "url": "https://github.com/apache/polaris",
          "what": "An implementation of the Iceberg REST catalog specification."
        },
        {
          "component": "lakekeeper",
          "name": "Lakekeeper",
          "url": "https://github.com/lakekeeper/lakekeeper",
          "what": "Iceberg REST catalog in Rust."
        },
        {
          "component": "unitycatalog-rs",
          "name": "unitycatalog-rs",
          "url": "https://github.com/open-lakehouse/unitycatalog-rs",
          "what": "Rust implementation of the Unity Catalog OSS APIs."
        }
      ]
    },
    {
      "id": "engines",
      "title": "Compute engines",
      "intro": "What reads and writes the tables, from a laptop to a cluster.",
      "items": [
        {
          "component": "spark",
          "name": "Apache Spark",
          "url": "https://github.com/apache/spark",
          "what": "Batch, SQL, Structured Streaming and declarative pipelines."
        },
        {
          "component": "flink",
          "name": "Apache Flink",
          "url": "https://github.com/apache/flink",
          "what": "Stateful stream processing."
        },
        {
          "component": "trino",
          "name": "Trino",
          "url": "https://github.com/trinodb/trino",
          "what": "Distributed SQL across catalogs."
        },
        {
          "component": "duckdb",
          "name": "DuckDB",
          "url": "https://github.com/duckdb/duckdb",
          "what": "In-process analytical SQL."
        },
        {
          "component": "datafusion",
          "name": "Apache DataFusion",
          "url": "https://github.com/apache/datafusion",
          "what": "Embeddable Rust query engine on Arrow."
        },
        {
          "component": "polars",
          "name": "Polars",
          "url": "https://github.com/pola-rs/polars",
          "what": "Arrow-native DataFrames in Rust and Python."
        }
      ]
    },
    {
      "id": "streaming",
      "title": "Streaming and ingestion",
      "intro": "Getting events and database changes into the lakehouse.",
      "items": [
        {
          "component": "kafka",
          "name": "Apache Kafka",
          "url": "https://github.com/apache/kafka",
          "what": "The event log most streaming architectures start from."
        },
        {
          "component": "debezium",
          "name": "Debezium",
          "url": "https://github.com/debezium/debezium",
          "what": "Change data capture from database logs."
        },
        {
          "name": "spark-rtm-quickstart",
          "url": "https://github.com/lisancao/spark-rtm-quickstart",
          "what": "Spark Real-Time Mode pipelines with a latency harness."
        }
      ]
    },
    {
      "id": "orchestration",
      "title": "Orchestration",
      "intro": "What runs the jobs, and when.",
      "items": [
        {
          "component": "airflow",
          "name": "Apache Airflow",
          "url": "https://github.com/apache/airflow",
          "what": "Python DAG scheduler."
        },
        {
          "component": "dagster",
          "name": "Dagster",
          "url": "https://github.com/dagster-io/dagster",
          "what": "Asset-oriented orchestration."
        },
        {
          "component": "temporal",
          "name": "Temporal",
          "url": "https://github.com/temporalio/temporal",
          "what": "Durable execution for long-running workflows."
        }
      ]
    },
    {
      "id": "governance",
      "title": "Governance, lineage and policy",
      "intro": "Who can see what, and where it came from.",
      "items": [
        {
          "component": "openlineage",
          "name": "OpenLineage",
          "url": "https://github.com/OpenLineage/OpenLineage",
          "what": "Open standard for lineage events."
        },
        {
          "component": "marquez",
          "name": "Marquez",
          "url": "https://github.com/MarquezProject/marquez",
          "what": "Reference OpenLineage server and UI."
        },
        {
          "component": "policast",
          "name": "policast",
          "url": "https://github.com/open-lakehouse/policast",
          "what": "Cedar policies compiled to CEL and enforced inside Spark and DataFusion plans."
        },
        {
          "component": "breakwater",
          "name": "breakwater",
          "url": "https://github.com/open-lakehouse/breakwater",
          "what": "Cedar row filters and column masks for DataFusion."
        },
        {
          "component": "open-lineage-connect",
          "name": "open-lineage-connect",
          "url": "https://github.com/open-lakehouse/open-lineage-connect",
          "what": "OpenLineage events stored as Delta and Iceberg tables."
        }
      ]
    },
    {
      "id": "ml-ai",
      "title": "ML and AI",
      "intro": "Models, traces and agents on top of the lakehouse.",
      "items": [
        {
          "component": "mlflow",
          "name": "MLflow",
          "url": "https://github.com/mlflow/mlflow",
          "what": "Tracking, registry, GenAI tracing, evaluation and AI Gateway."
        },
        {
          "component": "lakehouse-agent-kit",
          "name": "lakehouse-agent-kit",
          "url": "https://github.com/open-lakehouse/lakehouse-agent-kit",
          "what": "Agent skills for the open lakehouse stack."
        },
        {
          "component": "mcp",
          "name": "Model Context Protocol",
          "url": "https://modelcontextprotocol.io",
          "what": "Open protocol for giving agents tools and data."
        }
      ]
    },
    {
      "id": "specs",
      "title": "Specs and protocols",
      "intro": "The open interfaces that make every box swappable. Read these when two projects disagree.",
      "items": [
        {
          "name": "Delta Lake protocol",
          "url": "https://github.com/delta-io/delta/blob/master/PROTOCOL.md",
          "what": "How the Delta transaction log works."
        },
        {
          "name": "Iceberg table spec",
          "url": "https://iceberg.apache.org/spec/",
          "what": "Iceberg metadata, manifests and snapshots."
        },
        {
          "name": "Iceberg REST catalog spec",
          "url": "https://iceberg.apache.org/rest-catalog-spec/",
          "what": "The HTTP API catalogs implement for Iceberg."
        },
        {
          "name": "Delta Sharing protocol",
          "url": "https://github.com/delta-io/delta-sharing/blob/main/PROTOCOL.md",
          "what": "REST protocol for sharing live tables."
        },
        {
          "name": "Spark Connect",
          "url": "https://spark.apache.org/docs/latest/spark-connect-overview.html",
          "what": "Spark's client-server protocol."
        },
        {
          "name": "Arrow Flight SQL",
          "url": "https://arrow.apache.org/docs/format/FlightSql.html",
          "what": "SQL over Arrow Flight."
        },
        {
          "name": "OpenLineage spec",
          "url": "https://github.com/OpenLineage/OpenLineage/tree/main/spec",
          "what": "The lineage event model and facets."
        }
      ]
    }
  ]
}
