Concurrency and conflicts
Optimistic concurrency, the conflicts that fail a commit, and how to design writers around them.
Step 3 · Data lake & lakehouse · Gold · Gold write patterns, lesson 3 of 4
On this page
Read first: The Delta transaction log · Iceberg metadata tree (skip if you know them)
In plain words first
Two people edit the same shared document offline. When they sync, the edits merge if they touched different paragraphs; if both rewrote the same sentence, one of them is told "conflict, please redo".
That is optimistic concurrency: assume writers will not clash, and check at commitcommit: One atomic change to a table: a new version that lists which files were added and removed. Learn more → time.
Unlock the full lesson
You have read the free part. The rest of this advanced lesson:
- Optimistic concurrency
- What conflicts
- Delta conflict errors
- Isolation levels
- Designing around conflicts
- Try it yourself
- Common mistakes
- Key takeaways
- Interview prep with 3 follow-up questions
- Check yourself: 3 questions
Unlock it with the Complete pass (every advanced problem and lesson) or on its own.
Practise this
Interview problems on lakehouse, graded on hidden tests
Keep going
Up next · Gold write patterns · lesson 4 of 4 · 7 min readBranches, tags and write-audit-publish
Stage a write on an Iceberg branch, check it, then publish atomically, and the Delta equivalents.
Related lessons
The Delta transaction logData lake & lakehouse · 7 min read
MERGE INTO and upsertsData lake & lakehouse · 7 min read
ACID on object storage
Previous: Liquid clustering
Primary sources: Delta: concurrency control · Iceberg: reliability