The Data Lifecycle and Pipeline Architecture
Learn the stages data passes through, batch versus streaming, and the common architectures (warehouse, lake, lakehouse, medallion) you will meet at work.
Beginner · about 3 hours · difficulty 2/5
Learn first: The Data Engineer Role
Before learning tools, learn the shape of the problem. Every data platform, from a two-person startup to a bank, follows roughly the same lifecycle.
The stages
- Generation: source systems create data (an OLTP database for orders, a mobile app emitting click events, a payment gateway webhook).
- Ingestion: data is copied out, either in batches (every hour, every night) or as a stream (event by event).
- Storage: landed in object storage (a data lake), a warehouse, or both.
- Transformation: cleaned, deduplicated, joined and modeled.
- Serving: exposed to dashboards, notebooks, reverse ETL, ML features or APIs.
Cutting across all stages are orchestration, data quality, security, governance and cost.
Batch vs streaming
Batch is simpler, cheaper and good enough for most reporting ("yesterday's sales"). Streaming is for low-latency needs such as fraud checks on UPI transactions or live delivery tracking. Start with batch unless a real business need demands seconds of latency.
Common architectures
- Data warehouse: structured, modeled tables in a SQL engine (Snowflake, BigQuery, Redshift).
- Data lake: cheap object storage (S3, GCS) holding raw files of any format.
- Lakehouse: lake storage plus table formats (Delta Lake, Iceberg) that add transactions and schema, queried by Spark or SQL engines.
- Medallion layers: bronze (raw), silver (cleaned), gold (business-ready). A naming convention, not a product.
Pitfalls
- Building streaming because it sounds impressive when a nightly job would do.
- Skipping a raw layer. Keep an untouched copy of source data so you can rebuild when logic changes.
You are ready to move on when you can sketch a pipeline for an e-commerce site on paper, labelling each lifecycle stage, and justify whether each part should be batch or streaming.
Key concepts
- Generation, ingestion, storage, transformation, serving
- Batch vs streaming
- Data warehouse vs data lake
- Lakehouse
- Medallion architecture: Bronze, silver, gold layers
- Lambda and Kappa architectures
- Reverse ETL
Mini project
Draw an architecture diagram for a food delivery app's analytics platform: sources, ingestion method, storage layers, transformations, and three consumers. Write one paragraph per box explaining the choice.
Check yourself
A team wants dashboards that refresh every five minutes. Is that a streaming problem? What questions would you ask before deciding?
Free resources
- Data Engineering Zoomcamp (DataTalksClub)
- Medallion architecture (Databricks)
- Delta Lake documentation (Delta Lake)