Open source
Data engineering reference architectures
Open source blueprints for batch, streaming and AI data platforms, each one backed by code you can run.
Try
What is an open reference architecture?
An open reference architecture is a documented, runnable blueprint for a data platform in which every layer is open source and every interface between layers is an open format or protocol: Parquet files in an open table format such as Delta Lake or Apache Iceberg, an open catalog API such as Unity Catalog or the Iceberg REST specification, and open engine protocols such as Spark Connect or Arrow Flight SQL. Because the interfaces are open, any box in the diagram can be swapped for another project that speaks the same interface, and the whole architecture can run on a laptop, a Kubernetes cluster or any cloud.
Batch architectures
Files, extracts, snapshots and change feeds, turned into medallion tables and full row history on a schedule.
Batch
Batch medallion with Spark Declarative Pipelines
Spark 4.3, Apache Iceberg and Unity Catalog with bronze, silver and gold
Declare the tables, let Spark work out the order, keep every layer in an open format.
Batch
Change data capture with SCD type 2
AUTO CDC in Spark Declarative Pipelines, from a Kafka change feed into Apache Iceberg
Keep the current state and every past version of each row, without hand-written MERGE logic.
Streaming architectures
Events in, tables or decisions out, from minutes down to milliseconds behind the source.
Streaming
Streaming medallion
Kafka, Spark Structured Streaming and Apache Iceberg in Unity Catalog
Events in, governed tables out, seconds behind the source.
Streaming
Real-time streaming with Spark Real-Time Mode
Kafka in, Kafka out, milliseconds in between
Continuous processing for fraud, recommendations and live boards, measured end to end.
Platform architectures
The agentic lakehouse and the pieces every pipeline leans on: one catalog for every engine, governed agents, sharing, a full local stack.
Platform
The agentic lakehouse
Omnigent and MLflow over sandboxed Spark Connect sessions, on Iceberg and Unity Catalog
Agents get a sandbox, a Spark session and a catalog identity. The platform decides the rest.
Platform
One catalog, many engines
Unity Catalog OSS with Spark, DuckDB, PyIceberg and Trino on Delta and Iceberg
Write once, read from whatever engine fits the question.
Platform
Governed AI agents for data engineering
Spark Declarative Pipelines, Spark Connect, Kubernetes and a governed Iceberg REST catalog
Agents write pipeline specs; the platform decides what they are allowed to touch.
Platform
Open data sharing
Delta Sharing servers over Unity Catalog and open tables
Share live tables with another organization without copying them or sending files.
Platform
The open lakehouse on a laptop
Spark 4.3, Apache Iceberg, Unity Catalog, Kafka, Airflow, MLflow and an agent, in Docker
The whole stack, one service at a time, on the machine in front of you.
More patterns
Governance, semantics, ML, serving and deployment patterns that build on the ones above.
More patterns
Policy pushdown and open lineage
Cedar policies compiled to CEL, enforced in Spark and DataFusion, with OpenLineage
More patterns
Semantic layer with Spark metric views
Metrics declared in YAML, served over Spark Connect to BI, notebooks and agents
More patterns
ML and GenAI lifecycle on the lakehouse
MLflow tracking, registry and AI Gateway over open tables
More patterns
Arrow-native serving
Arrow Flight SQL and Spark Connect clients over lakehouse tables
More patterns
Self-hosted catalog on AWS
Unity Catalog OSS on ECS Fargate with Neon Postgres and S3, in Terraform
More patterns
Serverless lakehouse services
Catalog and lineage as Neon Functions on branchable Postgres
Interactive
The architecture board
Platform
The agentic lakehouse
Sources
Ingestion
Open lakehouse platform
AI and agents
The agents, the control plane that decides what they may do, and the models behind them.
Engine access
How agents, apps and people reach compute: a client session per identity.
Execution
Spark's execution modes, plus engines that read the same tables.
Data foundation
Open tables in a governed catalog, on storage you own.
Governance
Operations
Serving
Teams
Start from the problem
Which data engineering architecture should I use?
| If this sounds like you | Start with |
|---|---|
| My data arrives as files or extracts every night or every hour. | Batch medallion with Spark Declarative Pipelines |
| I need current and historical versions of rows from a database change feed. | Change data capture with SCD type 2 |
| My sources emit events and I want tables a few seconds behind them. | Streaming medallion |
| I need a decision while the event is still in flight, in milliseconds. | Real-time streaming with Spark Real-Time Mode |
| Different teams want Spark, DuckDB, Trino or Python on the same data. | One catalog, many engines |
| I want AI agents to build pipelines without handing them production keys. | Governed AI agents for data engineering |
| Partners or customers need live access to some of my tables. | Open data sharing |
| I want to learn the whole stack, or test against it, on my laptop. | The open lakehouse on a laptop |
Industry lenses
Data engineering architectures by industry
Resources
Open source data engineering resources
Runnable stacks and courses
Clone one of these and you have a working open lakehouse to learn on or test against.
- open-lakehouse Spark, Delta Lake, Unity Catalog, Kafka, Airflow and MLflow in Docker, with an AWS path.
- unitycatalog-playground Unity Catalog OSS with Spark, Delta and Iceberg in marimo notebooks.
- lakehouse-masterclass A textbook course that builds an open lakehouse one service per chapter.
- Spark Masterclass A runnable online book on Apache Spark 4.3; every number traces to a script.
- spark-demos One runnable demo per Spark feature: metric views, Spark Connect, Real-Time Mode and more.
- safe-spark-agents-paper A reproducible study and reference architecture for AI agents building Spark pipelines.
Open table formats
ACID tables on object storage, readable by many engines.
- Delta Lake Transaction-log table format; the protocol is in PROTOCOL.md.In: The agentic lakehouse, Batch medallion with Spark Declarative Pipelines, Streaming medallion
- delta-rs Native Rust and Python library for Delta tables, no JVM.
- delta-kernel-rs A Rust kernel that engines embed to read and write Delta.
- Apache Iceberg Metadata-tree table format with a REST catalog specification.In: The agentic lakehouse, Batch medallion with Spark Declarative Pipelines, Change data capture with SCD type 2
- PyIceberg Pure-Python Iceberg reads and writes.In: Batch medallion with Spark Declarative Pipelines, One catalog, many engines
- iceberg-rust The Rust implementation of Apache Iceberg.
- Apache Hudi Table format built around upserts and incremental queries.In: Batch medallion with Spark Declarative Pipelines, Streaming medallion
Catalogs
Where engines find tables, and where access is decided.
- Unity Catalog OSS Tables, volumes, functions and models, with Iceberg REST and credential vending.In: The agentic lakehouse, Batch medallion with Spark Declarative Pipelines, Change data capture with SCD type 2
- Apache Polaris An implementation of the Iceberg REST catalog specification.In: The agentic lakehouse, Batch medallion with Spark Declarative Pipelines, Change data capture with SCD type 2
- Lakekeeper Iceberg REST catalog in Rust.In: The agentic lakehouse, Batch medallion with Spark Declarative Pipelines, Change data capture with SCD type 2
- unitycatalog-rs Rust implementation of the Unity Catalog OSS APIs.In: Batch medallion with Spark Declarative Pipelines, One catalog, many engines, Open data sharing
Compute engines
What reads and writes the tables, from a laptop to a cluster.
- Apache Spark Batch, SQL, Structured Streaming and declarative pipelines.In: The agentic lakehouse, Batch medallion with Spark Declarative Pipelines, Streaming medallion
- Apache Flink Stateful stream processing.In: Streaming medallion, Real-time streaming with Spark Real-Time Mode
- Trino Distributed SQL across catalogs.In: Batch medallion with Spark Declarative Pipelines, One catalog, many engines, Self-hosted catalog on AWS
- DuckDB In-process analytical SQL.In: Batch medallion with Spark Declarative Pipelines, One catalog, many engines, The open lakehouse on a laptop
- Apache DataFusion Embeddable Rust query engine on Arrow.In: One catalog, many engines, Policy pushdown and open lineage, Arrow-native serving
- Polars Arrow-native DataFrames in Rust and Python.In: One catalog, many engines, ML and GenAI lifecycle on the lakehouse, Arrow-native serving
Streaming and ingestion
Getting events and database changes into the lakehouse.
- Apache Kafka The event log most streaming architectures start from.In: The agentic lakehouse, Change data capture with SCD type 2, Streaming medallion
- Debezium Change data capture from database logs.In: Change data capture with SCD type 2, Streaming medallion
- spark-rtm-quickstart Spark Real-Time Mode pipelines with a latency harness.
Orchestration
What runs the jobs, and when.
- Apache Airflow Python DAG scheduler.In: The agentic lakehouse, Batch medallion with Spark Declarative Pipelines, Streaming medallion
- Dagster Asset-oriented orchestration.In: Batch medallion with Spark Declarative Pipelines, The open lakehouse on a laptop
- Temporal Durable execution for long-running workflows.In: Batch medallion with Spark Declarative Pipelines
Governance, lineage and policy
Who can see what, and where it came from.
- OpenLineage Open standard for lineage events.In: The agentic lakehouse, Policy pushdown and open lineage, Arrow-native serving
- Marquez Reference OpenLineage server and UI.In: Policy pushdown and open lineage
- policast Cedar policies compiled to CEL and enforced inside Spark and DataFusion plans.In: Policy pushdown and open lineage
- breakwater Cedar row filters and column masks for DataFusion.In: Policy pushdown and open lineage, Arrow-native serving
- open-lineage-connect OpenLineage events stored as Delta and Iceberg tables.In: Policy pushdown and open lineage
ML and AI
Models, traces and agents on top of the lakehouse.
- MLflow Tracking, registry, GenAI tracing, evaluation and AI Gateway.In: The agentic lakehouse, Batch medallion with Spark Declarative Pipelines, The open lakehouse on a laptop
- lakehouse-agent-kit Agent skills for the open lakehouse stack.In: The agentic lakehouse
- Model Context Protocol Open protocol for giving agents tools and data.In: The agentic lakehouse, The open lakehouse on a laptop
Specs and protocols
The open interfaces that make every box swappable. Read these when two projects disagree.
- Delta Lake protocol How the Delta transaction log works.
- Iceberg table spec Iceberg metadata, manifests and snapshots.
- Iceberg REST catalog spec The HTTP API catalogs implement for Iceberg.
- Delta Sharing protocol REST protocol for sharing live tables.
- Spark Connect Spark's client-server protocol.
- Arrow Flight SQL SQL over Arrow Flight.
- OpenLineage spec The lineage event model and facets.
Answers
Frequently asked questions
- What is a reference architecture in data engineering?
- A reference architecture is a reusable blueprint that names the layers of a data platform (sources, ingestion, storage, table format, catalog, compute, orchestration, serving and governance), the component in each layer, and how data flows between them. Teams start from it instead of designing a platform from a blank page.
- What makes a reference architecture open?
- Every component is open source and every interface between components is an open format or protocol, so any box can be replaced by another project that speaks the same interface without migrating the data.
- What is the best open source data engineering stack?
- There is no single best stack; it depends on the workload. A common open baseline is Apache Spark for compute, Delta Lake or Apache Iceberg for tables, Unity Catalog OSS or an Iceberg REST catalog for governance, Apache Kafka for events, Apache Airflow for orchestration and MLflow for models. The architectures on this page show which combination fits batch, streaming, real-time, sharing and AI workloads.
- Is there a reference architecture for an agentic lakehouse?
- Yes. The governed AI agents architecture is the production shape of an agentic lakehouse: agents write Spark Declarative Pipelines as pull requests, CI dry-runs them against the real catalog, each tenant reaches Spark through an identity-pinned Spark Connect endpoint, and a governed Iceberg REST catalog authorizes every request. The agentic lakehouse and agentic data engineering guides on this site explain the concepts.
- Can I run these reference architectures myself?
- Yes. Every architecture links to at least one public repository with the versions it pins and the commands from its README, and most run on a laptop with Docker.
- How are these different from vendor reference architectures?
- Vendor reference architectures keep the vendor's platform fixed in the middle and vary the industry around it. Here the middle is also open: you can swap the table format, catalog, engine or orchestrator, and each choice is backed by code you can run.
- Is there a machine-readable version?
- Yes. /reference-architectures.json contains every architecture, component and industry lens, and each architecture page has a Markdown twin at the same path with a .md suffix.
Guides
Concepts behind the architectures
For agents and tools
The full catalog is published as JSON, every architecture page has a Markdown twin, and all of it is indexed in llms.txt. Last updated 2026-11-21.
