Design a Resilient Multi-Table ETL Pipeline
Build an event-driven ETL pipeline for large tables with different update cadences, auditable backfills, and bounded reconciliation.
Problem statement
For this exercise, assume that a data consumer receives a complete derived record after its contributing tables update at different times, even during backfills and retries. Capture table changes with source identity, version, and event time.
Join the latest compatible source versions into deterministic derived records. Backfill a bounded source or time range without corrupting newer live results. Measure completeness and repair missing, late, or divergent records.
Assume eight source tables totaling 500 million rows with update cadences from seconds to days. Sustain 100,000 change events per second and make live-derived records visible within five minutes at p99. A replay or backfill may overlap live traffic; every output exposes lineage and survives worker or zone failure.
Preserve this invariant: a derived record declares the exact source versions it represents, and a backfill cannot replace an output built from newer versions. Keep unrelated product features and company-specific infrastructure outside the first version.
What to build
- Capture table changes with source identity, version, and event time.
- Join the latest compatible source versions into deterministic derived records.
- Backfill a bounded source or time range without corrupting newer live results.
- Measure completeness and repair missing, late, or divergent records.
At scale
- For this exercise, assume eight source tables totaling 500 million rows with update cadences from seconds to days.
- For this exercise, sustain 100,000 change events per second and make live-derived records visible within five minutes at p99.
- For this exercise, a replay or backfill may overlap live traffic; every output exposes lineage and survives worker or zone failure.