§ 1.11section 24 of 25·~5 min
Putting it together: one order's journey
Follow one order through everything in this chapter.
- Generation. Asha taps Pay in a shopping app. The app's PostgreSQL database (OLTP, normalized) inserts a row in
ordersand two rows inorder_items. The app also emits apayment_successevent. - Ingestion. CDC picks up the inserts within seconds. Every night an incremental batch job also pulls the payment gateway's settlement file through its API.
- Storage. Everything lands untouched in the raw layer of the lake, as partitioned Parquet.
- Transformation. An idempotent job cleans types, removes duplicate events, quarantines bad rows and builds
fct_order_lines(grain: one row per product per order) plusdim_customer,dim_productanddim_date: a star schema. - Serving. The sales dashboard (OLAP) shows yesterday's revenue by city. The data science team pulls a feature table for a repeat-purchase model.
- Undercurrents. An orchestrator runs the steps in order with retries. Tests check row counts and that
amount_paiseis never negative. Asha's phone number is masked for everyone except the support team. Lineage shows which dashboards depend onfct_order_lines.
The app team is upstream of you. The dashboard and the model are downstream. The contract on orders tells you when its schema will change.
What's next in this course
The rest of the course teaches the tools for each step:
| Chapter | Where it fits in the lifecycle |
|---|---|
| Python Fundamentals | Writing the code for ingestion and transformation |
| SQL for Data Engineers | Querying and transforming in the warehouse |
| Data Modeling & Warehousing | Normalization, star schemas and slowly changing dimensions in depth |
| Building ETL/ELT Pipelines | Ingestion and transformation end to end |
| Big Data with PySpark | Transformation when data outgrows one machine |