# 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. Free...

Canonical: https://www.internhack.in/roadmaps/tracks/data-engineer/data-lifecycle
Last updated: 2026-11-28

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](https://www.internhack.in/roadmaps/tracks/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

1. **Generation**: source systems create data (an OLTP database for orders, a mobile app emitting click events, a payment gateway webhook).
2. **Ingestion**: data is copied out, either in **batches** (every hour, every night) or as a **stream** (event by event).
3. **Storage**: landed in object storage (a data lake), a warehouse, or both.
4. **Transformation**: cleaned, deduplicated, joined and modeled.
5. **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](https://github.com/DataTalksClub/data-engineering-zoomcamp) (DataTalksClub)
- [Medallion architecture](https://www.databricks.com/glossary/medallion-architecture) (Databricks)
- [Delta Lake documentation](https://docs.delta.io/) (Delta Lake)

Previous: [The Data Engineer Role](https://www.internhack.in/roadmaps/tracks/data-engineer/role) · Next: [Linux and the Command Line for Data Work](https://www.internhack.in/roadmaps/tracks/data-engineer/linux-cli)

## More in Data Engineering Foundations

- [The Data Engineer Role](https://www.internhack.in/roadmaps/tracks/data-engineer/role)
- [The Data Lifecycle and Pipeline Architecture](https://www.internhack.in/roadmaps/tracks/data-engineer/data-lifecycle)
- [Linux and the Command Line for Data Work](https://www.internhack.in/roadmaps/tracks/data-engineer/linux-cli)
- [Git and Collaborative Workflows](https://www.internhack.in/roadmaps/tracks/data-engineer/git)

## Related

- [Roadmaps](https://www.internhack.in/roadmaps)
- [Data Engineer Roadmap](https://www.internhack.in/roadmaps/tracks/data-engineer)
