1. The data lifecycle
One-liner. Every pipeline is the same five stages with different latency budgets.
Memorize
- Ingest (CDC, events, files, APIs) → store raw (immutable) → transform → serve → observe.
- Raw zone is append-only and replayable; everything downstream is derivable.
- Latency classes: batch (hours), micro-batch (minutes), streaming (seconds), real-time (<1 s).
- Contracts at the boundary: schema, freshness, ownership, semantics.
- Data has lineage, cost and access — treat it like production code.
- Reprocessing must be possible without asking producers to resend.
Trap. Transforming during ingestion — you lose the ability to replay with fixed logic. Do this. Keep raw forever (cheap), rebuild derived layers from it.
Check
A transformation bug corrupted last month's aggregates. What design makes recovery cheap?
Why
If raw is the source of truth and replayable, every downstream table is reproducible; backups alone don't fix logic.