The idea to keep with you
When traffic spikes expose hidden coupling, fix both write-side micro-batch cadence (30s -> 5m) and read-side maintenance (data files + manifests + snapshot expiry) with bounded concurrency.
TL;DR30-second simplified summary▾
30-second commits across 40 partitions generated 200K small files and 50K manifests, causing 45s planning stalls and S3 503s. Remediate by shifting to 5-minute hash-distributed writes, draining the backlog partition-by-partition with partial-progress=true, running rewrite_manifests + expire_snapshots, and enabling object-storage hash prefixes.
Before you begin · Building blocksAlready know these? Jump to Stage 01 ↓
Lakehouse File Compaction, Z-Ordering & Data Skipping
Lakehouse engines achieve warehouse-grade scan speeds on S3/GCS by compacting tiny streaming files into 256–512 MB Parquet files and co-locating multi-column query predicates via Z-ordering so min/max stats prune irrelevant files.
Lakehouse Table Formats (Iceberg, Delta, Hudi)
Open table formats (Delta Lake, Apache Iceberg, Apache Hudi) add an ACID transaction log and metadata layer on top of cloud object storage (S3/GCS/ADLS) and Parquet files, enabling time travel, schema evolution, concurrent writes, and Medallion (Bronze/Silver/...
Spark Shuffle, Partitioning & AQE
Spark shuffles redistribute records across executors over the network whenever wide transformations (join, groupBy, repartition) cross partition boundaries. Mastering partitioning, Broadcast Hash Joins, executor memory sizing, and Adaptive Query Execution (AQE...
Full walkthrough · 7 stages
01
L4 · FUNDAMENTALS
.
02
L4 · FUNDAMENTALS
.
03
L5 · APPLIED DESIGN
.
04
L5 · APPLIED DESIGN
.
05
L6 · SCALE & TRADE-OFFS
.
06
L6 · SCALE & TRADE-OFFS
.
07
L7 · STAFF / PRINCIPAL
.
Practice · Explain the consequences
Practice: Make the trade-off yourself.
Question 1 of 3
Score: 0/3What does setting `write.distribution-mode = hash` on the Iceberg table accomplish for the streaming sink?
Recommended Learning Flow