Skip to content
tezvyn:
Menu

Problems the Lakehouse architecture solves

MediumHow cards are made

Summary

knowing the gaps in raw data lakes.

Key points

lakehouse adds ACID transactions, schema enforcement, and time travel on cheap object storage.

Watch out for

describing it as merely a faster query engine rather than a table format.

Why it exists

Traditional data lakes store raw files such as Parquet or CSV on cheap object storage, which is scalable and inexpensive but offers no database guarantees. Concurrent writers can produce partial or conflicting results, readers can see a half-written dataset, there is no schema enforcement so bad data silently lands, and listing millions of files for query planning is slow and expensive. Teams ended up copying data into a separate warehouse for reliable SQL, creating duplication and drift.

The mental model

A lakehouse keeps the cheap open-format files but adds a transaction layer on top, turning a directory of files into a real table. Delta Lake uses a JSON and checkpoint transaction log; Apache Iceberg uses a tree of metadata and manifest files. This layer is what gives the lake database-like behavior.

How it works

Every write produces a new atomic commit in the metadata, so readers always see a consistent snapshot and writers get ACID transactions and optimistic concurrency. Schema enforcement and evolution prevent and manage column changes. The metadata tracks which files belong to a table version, enabling time travel to past snapshots, fast query planning without expensive listings, and efficient updates, deletes, and merges that raw lakes cannot do well.

When it matters

It matters when you want one copy of data serving both batch analytics and warehouse-style SQL with correctness guarantees, when you need GDPR-style row deletes, reproducible reports via snapshots, or reliable streaming plus batch on the same tables, without standing up a separate proprietary warehouse.

A concrete example

A nightly job and a streaming job both write to a sales table. On a raw Parquet lake a reader might catch a half-finished write and see duplicate or missing rows. On an Iceberg or Delta table each job commits atomically, readers always see a clean snapshot, and an analyst can query yesterday's snapshot to reproduce a report exactly.

Interview question

What capability do Delta Lake and Apache Iceberg add to files sitting in object storage that a plain Parquet-on-S3 data lake lacks?

  • a.Atomic, ACID-compliant commits via a transaction log over the filesCorrect
  • b.Automatic conversion of object storage into block storage
  • c.A faster columnar encoding that compresses better than Parquet
  • d.Built-in GPU acceleration for query execution
Why?

The defining addition is a transaction/metadata layer giving ACID commits, snapshots, and schema enforcement on top of open files. They reuse Parquet rather than replacing its encoding, and they do not change storage hardware.

Just read this? Test yourself on what you have been reading.

Put your scrolling time to good use

Learn one idea, try a quiz and save useful cards for revision. Tezvyn makes it easy to learn and stay current in your tech field, a few minutes at a time.

The iPhone app is on the way

We are building it. Until it lands, nothing here is held back from you: every interview card, your saved cards, streaks and the job board all work in Safari, plus hundreds of free practice quizzes of thirty questions each. Sign in and it all carries over to the app the day it arrives.

Want it as an icon? Tap Share at the bottom of Safari, then Add to Home Screen. It opens full screen and the cards you have read stay available offline.

Get it on Google PlayiPhone app coming soon

We are hiring for this. Every open role lists the topics its interview covers, so you can prepare for the real thing rather than guessing.

See open roles