DataEng study
Offline — showing the cached copy.
Home / Data Engineering System Desi / 1. The data lifecycle

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.
LIFECYCLE INGEST CDC Events Files APIs STORE Raw zone (immut… Object storage TRANSFORM Batch Streaming SQL models SERVE Warehouse BI APIs Features OPERATE Quality Lineage Cost Access
Lifecycle

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?