To keep storage layouts predictable as data grows, Delta, Hudi), never write raw Hive-style Parquet directories for mutable production tables—use Iceberg, Delta, or Hudi for atomic commits, snapshot isolation, and partition evolution.
TL;DR30-second simplified summary▾
Core Mechanics: Cloud object stores (S3, GCS, ADLS) lack atomic multi-file commits, and Hive-style directory listings (s3://bucket/dt=2026-11-18/) stall on millions of partitions.
Visual & Structural Flow: Depicts Catalog Pointer -> Snapshot -> Manifest List -> Parquet Data Files (Catalog (S3 Atomic CAS) -> Snapshot Manifest List -> Manifest Files (Avro) -> Parquet); Concurrent Writers -> Optimistic Catalog CAS -> Async Compaction (Flink / Spark Writers -> Catalog CAS Commit -> Trino / BI Readers -> Async Compact + Expire).
Trade-Offs & Production: All three solve ACID on object storage, with different strengths in multi-engine portability, Spark integration, and streaming upserts. Explore the end-to-end Medallion lakehouse system design and compare ETL/ELT, Kappa, and Lambda pipelines.
Failure Modes & Application: Explore the end-to-end Medallion lakehouse system design and compare ETL/ELT, Kappa, and Lambda pipelines.
What are Open Lakehouse Table Formats.
Why this matters: The mechanism: understand how Open Lakehouse Table Formats works from first principles.
Cloud object stores (S3, GCS, ADLS) lack atomic multi-file commits, and Hive-style directory listings (s3://bucket/dt=2026-11-18/) stall on millions of partitions. Open table formats (Apache Iceberg, Delta Lake, Apache Hudi) place a versioned ACID metadata/transaction log over immutable Parquet files.
Instead of listing S3 directories, readers consult the latest atomic snapshot pointer (metadata.json -> manifest list -> manifest files in Iceberg, or _delta_log/*.json in Delta) to get snapshot isolation, time travel, GDPR MERGE INTO / DELETE, and schema evolution.
Catalog Pointer -> Snapshot -> Manifest List -> Parquet Data Files
1.Zero Directory LIST: Query engines prune partitions and data files using manifest min/max stats before reading S3.
2.Snapshot Isolation: Readers see a consistent point-in-time snapshot even while concurrent writers commit.
3.Partition Evolution: Iceberg evolves daily -> hourly partitioning in metadata without rewriting historical Parquet.
A hierarchical metadata tree turns eventually-consistent object storage into an ACID multi-engine database.
Why Raw Parquet Directories Break Under Concurrent Writes & Deletes.
Why this matters: The problem: see what breaks without Why Raw Parquet Directories Break Under Concurrent Writes & Deletes under real concurrency or scale.
Think of Why Raw Parquet Directories Break Under Concurrent Writes & Deletes as the intuition layer for Lakehouse Table Formats (Iceberg, Delta, Hudi): The problem: see what breaks without Why Raw Parquet Directories Break Under Concurrent Writes & Deletes under real concurrency or scale.
Overwriting a raw Hive Parquet partition (INSERT OVERWRITE) exposes partial files to concurrent readers or corrupts the table on job failure. Furthermore, streaming micro-batches every 10 seconds create millions of 50 KB small files that degrade Spark/Trino scans by 20x unless compacted with OPTIMIZE / rewrite_data_files.
Why Raw Parquet Directories Break Under Concurrent Writes & Deletes
- Problem
- How to implement Lakehouse Table Formats (Iceberg, Delta, Hudi) without hitting unbounded tail latency, state divergence, or operational fragility.
- Naive Solution
- Use a single unpartitioned path with unbounded retries and synchronous global coordination.
- Why It Fails
- Global coordination serializes throughput under load, while unbounded retries amplify transient stalls into full outages.
- Alternatives
- Compare synchronous strict-consistency paths against bounded asynchronous replication, local caching, or partitioned ownership.
- Engineering Decision
- To keep storage layouts predictable as data grows, delta, Hudi), never write raw Hive-style Parquet directories for mutable production tables—use Iceberg, Delta, or Hudi for atomic commits, snapshot isolation, and partition evolution.
- Trade-Offs
- Gains predictable p99 latency and fault isolation in exchange for explicit bounding, observability, and slightly higher implementation complexity.
When Lakehouse Table Formats (Iceberg, Delta, Hudi) experiences a sudden 5x traffic spike alongside a slow downstream dependency, which engineering choice best protects system stability?
Safe Snapshot Vacuuming
Never vacuum/expire snapshots too aggressively (e.g., < 24–72 hours) while long-running batch or ML training queries still reference older snapshots.
Hidden Partitioning
Iceberg derives days(event_ts) automatically from the timestamp column—preventing users from accidentally forgetting the partition filter and scanning the whole table.
Where Lakehouse Formats Excel (and Where OLTP RDBMS Wins).
Why this matters: Scope boundary: identify where this pattern fits best and where simpler or async alternatives win.
Think of Where Lakehouse Formats Excel (and Where OLTP RDBMS Wins) as the intuition layer for Lakehouse Table Formats (Iceberg, Delta, Hudi): Scope boundary: identify where this pattern fits best and where simpler or async alternatives win.
Use Iceberg/Delta/Hudi for analytical Bronze/Silver/Gold tables; use Postgres/DynamoDB for sub-10 ms OLTP.
| Choice | What it buys | What it costs |
|---|---|---|
| Good Candidate: Medallion Lakehouses (Bronze/Silver/Gold) | Multi-engine ACID reads/writes (Spark, Trino, Flink, Snowflake) with GDPR `MERGE INTO` and time travel. | Requires scheduled `OPTIMIZE` compaction and `expire_snapshots` maintenance jobs. |
| Good Candidate: High-Frequency CDC Upserts (Hudi MoR / Delta DV) | Merge-on-Read (MoR) and Deletion Vectors absorb streaming upserts without rewriting 512 MB Parquet files. | Read queries must merge base + delta logs until async compaction finishes. |
| Avoid: Sub-10 ms OLTP Point Lookups | PostgreSQL or DynamoDB serves single-row ACID transactions in `<5 ms`. | Object-storage commits take ~100–500 ms and are built for columnar scans, not row OLTP. |
Iceberg MERGE INTO Upserts, Time Travel & Compaction.
Why this matters: Operational control: configure bounds, failure handling, and safe production defaults.
Think of Iceberg MERGE INTO Upserts, Time Travel & Compaction as the intuition layer for Lakehouse Table Formats (Iceberg, Delta, Hudi): Operational control: configure bounds, failure handling, and safe production defaults.
Run atomic MERGE INTO for CDC upserts/GDPR deletes, query historical snapshots with as-of-timestamp, and schedule rewrite_data_files to merge small streaming files into 128–512 MB Parquet blocks.
Iceberg MERGE INTO Upserts, Time Travel & Compaction
# PySpark: Iceberg atomic MERGE INTO upsert + Time Travel + Compaction
spark.sql("""
MERGE INTO catalog.silver.orders t
USING staged_orders s
ON t.order_id = s.order_id
WHEN MATCHED THEN UPDATE SET *
WHEN NOT MATCHED THEN INSERT *
""")
# Time-travel query to a prior consistent snapshot
df_yesterday = spark.read.option("as-of-timestamp", "2026-11-15T00:00:00Z").table("catalog.silver.orders")
# Compact small streaming files into optimal 256 MB blocks
spark.sql("CALL catalog.system.rewrite_data_files(table => 'silver.orders', options => map('target-file-size-bytes', '268435456'))")
Comparing Apache Iceberg vs. Delta Lake vs. Apache Hudi.
Why this matters: The trade-off: compare competing approaches across latency, consistency, and operational cost.
Think of Comparing Apache Iceberg vs. Delta Lake vs. Apache Hudi as the intuition layer for Lakehouse Table Formats (Iceberg, Delta, Hudi): The trade-off: compare competing approaches across latency, consistency, and operational cost.
All three solve ACID on object storage, with different strengths in multi-engine portability, Spark integration, and streaming upserts.
Comparing Apache Iceberg vs. Delta Lake vs. Apache Hudi
- No backpressure on spikes
- Implicit shared state
- Cascading tail latency
- Explicit capacity budgets
- Isolated failure domains
- Predictable p99 latency
| Choice | What it buys | What it costs |
|---|---|---|
| Apache Iceberg | Broadest multi-engine interoperability (Trino, Snowflake, Spark, Flink, BigQuery) + hidden partitioning & partition evolution. | Requires a catalog (REST, Glue, Nessie) for atomic pointer swaps. |
| Delta Lake | Deepest Spark/Databricks optimization, Liquid Clustering, and fast Deletion Vectors via `_delta_log`. | Historically Spark-centric (UniForm bridges Iceberg/Hudi metadata compatibility). |
| Apache Hudi (CoW vs. MoR) | Purpose-built record-level indexing and Merge-on-Read (MoR) for high-churn CDC upserts. | Timeline + compaction tuning is more complex for pure append-only analytics. |
Production Medallion: Streaming MoR / Micro-Batch + Async Compaction.
Why this matters: Production architecture: see how the components compose end to end under real load.
Think of Production Medallion: Streaming MoR / Micro-Batch + Async Compaction as the intuition layer for Lakehouse Table Formats (Iceberg, Delta, Hudi): Production architecture: see how the components compose end to end under real load.
In production, Flink or Spark Structured Streaming commits Bronze/Silver micro-batches every 1–5 minutes, while an asynchronous maintenance job compacts small files into 256 MB Parquet blocks and expires snapshots older than 7 days.
Concurrent Writers -> Optimistic Catalog CAS -> Async Compaction
1.Optimistic Concurrency: Two writers touching disjoint partitions both commit via catalog CAS retry.
2.Copy-on-Write vs MoR: CoW optimizes pure read speed; MoR + Deletion Vectors absorb frequent CDC updates.
3.Safe Vacuum: Retain >=24–72h of snapshots so long-running Trino/Spark jobs never hit FileNotFoundException.
Optimistic catalog commits decouple streaming writers from readers while background compaction keeps scan performance fast.
Medallion Lakehouses, ETL/ELT & Streaming Architectures.
Why this matters: Applied problems: connect these internals to concrete system design and debugging scenarios.
Think of Medallion Lakehouses, ETL/ELT & Streaming Architectures as the intuition layer for Lakehouse Table Formats (Iceberg, Delta, Hudi): Applied problems: connect these internals to concrete system design and debugging scenarios.
Explore the end-to-end Medallion lakehouse system design and compare ETL/ELT, Kappa, and Lambda pipelines.
Practice: Make the trade-off yourself.
In Apache Hudi or Delta/Iceberg Merge-on-Read (MoR) tables, what trade-off does MoR make compared to Copy-on-Write (CoW)?