Streaming lakehouse
| Also known as | Real-time lakehouse, streaming into the lakehouse |
|---|---|
| Field | Data engineering, stream processing |
| Key parts | Streaming writers, Open table formats, incremental and change-data reads, table maintenance |
| Open source implementations | Apache Iceberg, Delta Lake, Apache Hudi, Apache Paimon, Structured Streaming, Apache Flink, Spark Declarative Pipelines |
| Related | Open lakehouse, Medallion architecture, Exactly-once semantics, Small files problem |
A streaming lakehouse is a data architecture in which streaming jobs write directly into tables in an open table format, so that the same tables serve both streaming readers, which consume new changes incrementally, and batch readers, which query a consistent snapshot. It applies the open lakehouse idea to continuously arriving data: instead of keeping a separate real-time store next to the lake, the table itself is the hand-off point between pipeline stages.
Terminology
The term is used loosely and has no single defining paper or specification. Some projects use it as a name for their own design:
- Apache Paimon, formerly Flink Table Store, describes itself as "a lake format for building Lakehouse Architecture for both streaming and batch operations".[1][2] The Apache Software Foundation's announcement of Paimon's graduation to a top-level project, on 16 April 2024, calls it "a streaming data lake platform" and a format that enables real-time lakehouse architectures.[1]
- Apache Fluss, a streaming storage project (incubating at its 0.9 release), uses "Streaming Lakehouse" as the name of the setup in which its tiering service moves table data into Paimon or Iceberg, with recent data held in Fluss and historical data in the lake table, and queries combining both.[3]
Apache Iceberg, Delta Lake and Apache Hudi document the same pattern (streaming writes and incremental reads on one table) without using the name. This page uses "streaming lakehouse" for the general pattern, not for any one product.
How it works
A streaming lakehouse has three moving parts.
Streaming writes
A streaming engine writes each micro-batch or checkpoint interval as one atomic commit to the table. Structured Streaming can write to Iceberg tables in append or complete output mode, to Delta tables, and to Hudi tables.[4][5][6] The Iceberg Flink sink commits to the table after each successful Flink checkpoint and supports upserts on tables with a primary key or identifier fields.[7] Because each commit is atomic, batch readers never see a half-written batch, and the sink can be part of an exactly-once pipeline.[5]
Incremental and change-data reads
Downstream jobs read only what changed since their last position, which turns each table into a source for the next stage, as in a medallion architecture. What a reader can see differs by format:
| Format | Incremental read | Updates and deletes |
|---|---|---|
| Apache Iceberg | Spark streaming reads start from a timestamp (stream-from-timestamp); Flink streaming reads start from a snapshot and poll for new ones[4][8] |
Spark streaming reads only append snapshots; overwrite and delete snapshots raise an error unless skipped with streaming-skip-overwrite-snapshots or streaming-skip-delete-snapshots[4]
|
| Delta Lake | A streaming read processes the existing table and then new data[5] | Plain streaming reads fail on non-append commits unless skipChangeCommits is set; the change data feed (readChangeFeed) returns row-level inserts, updates and deletes[5][9]
|
| Apache Hudi | Incremental queries return data written since an instant on the table's timeline[10] | Incremental CDC queries return inserts, updates and deletes with before and after images[10] |
| Apache Paimon | Streaming updates on an LSM-tree structure, typically written with Flink[2] | Changelog producers generate a complete changelog for merge engines[2] |
The Delta change data feed is enabled with the table property delta.enableChangeDataFeed and adds the columns _change_type (insert, update_preimage, update_postimage or delete), _commit_version and _commit_timestamp. Only changes made after it is enabled are recorded.[9]
Declarative streaming tables
Spark Declarative Pipelines (SDP) expresses the pattern declaratively. An SDP streaming table is a table filled by one or more streaming flows that process only new data, and it can read from any source that spark.readStream supports, including Kafka.[11] In Spark 4.3, Auto CDC applies a stream of change events to a target streaming table by key and sequence value, handling out-of-order and duplicate events.[11]
CREATE STREAMING TABLE orders
AS SELECT * FROM STREAM orders_source;
Example
This PySpark sketch writes a Kafka topic into an Iceberg table once a minute, then reads the same table as a batch snapshot and as an incremental stream. It assumes the Iceberg Spark runtime and Kafka connector are on the classpath and that a catalog named lake is configured.
orders = (
spark.readStream.format("kafka")
.option("kafka.bootstrap.servers", "broker:9092")
.option("subscribe", "orders")
.load()
.selectExpr("CAST(key AS STRING) AS order_id",
"CAST(value AS STRING) AS payload",
"timestamp")
)
(orders.writeStream.format("iceberg")
.outputMode("append")
.trigger(processingTime="1 minute") # one commit per minute
.option("checkpointLocation", "/chk/bronze_orders")
.toTable("lake.bronze.orders"))
spark.table("lake.bronze.orders").count() # batch reader: a snapshot
spark.readStream.format("iceberg").load("lake.bronze.orders") # streaming reader
Limits
Latency is bounded by commit frequency
Readers see new data only after it is committed, so freshness is set by how often the writer commits, not by how fast the engine processes records. Iceberg recommends a trigger interval of at least 1 minute for streaming writes, because frequent commits create many data files, manifests and snapshots.[4] With Flink, Iceberg commits follow checkpoints, so the checkpoint interval is also the commit interval.[7] Systems such as Fluss address this by keeping the most recent data in a separate low-latency store and combining it with the lake table at query time.[3]
Small files and metadata growth
Each streaming commit usually writes small files. Iceberg's documentation states that streaming writes typically produce small amounts of data per commit, leading to many small files, and recommends compacting data files (rewrite_data_files), expiring old snapshots and rewriting manifests (rewrite_manifests) on tables written by streams.[4] Delta Lake offers OPTIMIZE to coalesce small files, and since Delta 3.1.0, auto compaction and optimized writes.[12] In Hudi, merge-on-read tables lower write latency for near real-time availability, at the cost of query performance until log files are compacted.[10] See Copy-on-write and merge-on-read.
Updates downstream
Append-only incremental reads are the simplest case. When an upstream table receives updates or deletes, downstream streams need a change feed (Delta, Hudi, Paimon) or must skip those commits and lose the changes, as with Iceberg's and Delta's skip options.[4][5]
See also
- Stream processing
- Exactly-once semantics
- Open lakehouse
- Medallion architecture
- Spark Declarative Pipelines
- Small files problem
- Copy-on-write and merge-on-read
References
- ↑ 1.0 1.1 The Apache Software Foundation Announces New Top-Level Project Apache Paimon. Apache Software Foundation, 2024-04-16.Retrieved 2026-11-22.
- ↑ 2.0 2.1 2.2 Apache Paimon documentation (1.4). Apache Software Foundation.Retrieved 2026-11-22.
- ↑ 3.0 3.1 Building a Streaming Lakehouse (Apache Fluss 0.9). Apache Software Foundation.Retrieved 2026-11-22.
- ↑ 4.0 4.1 4.2 4.3 4.4 4.5 Spark Structured Streaming (Apache Iceberg 1.12.0). Apache Software Foundation.Retrieved 2026-11-22.
- ↑ 5.0 5.1 5.2 5.3 5.4 Table streaming reads and writes. Delta Lake.Retrieved 2026-11-22.
- ↑ Streaming Writes (Apache Hudi 1.2.1). Apache Software Foundation.Retrieved 2026-11-22.
- ↑ 7.0 7.1 Flink Writes (Apache Iceberg 1.12.0). Apache Software Foundation.Retrieved 2026-11-22.
- ↑ Flink Queries (Apache Iceberg 1.12.0). Apache Software Foundation.Retrieved 2026-11-22.
- ↑ 9.0 9.1 Change data feed. Delta Lake.Retrieved 2026-11-22.
- ↑ 10.0 10.1 10.2 Table and Query Types (Apache Hudi 1.2.1). Apache Software Foundation.Retrieved 2026-11-22.
- ↑ 11.0 11.1 Spark Declarative Pipelines Programming Guide (Spark 4.3.0). Apache Software Foundation.Retrieved 2026-11-22.
- ↑ Optimizations. Delta Lake.Retrieved 2026-11-22.