Data Engineering: Build data
people trust
Move data from apps to dashboards and models, with pipelines that stay correct, fresh and affordable.
- Lessons
- 214
- Modules
- 19
- Parts
- 7
- Free to read
- 9
Foundations
5 modules · 55 lessons
01Data engineering fundamentals11 lessons
- Introduction to data engineeringFree
- The data lifecycle: from source to decisionFree
- Data engineering roles: what the job involves
- Data sources: databases, events, files and APIs
- Operational vs analytical data: two different jobsFree
- Batch vs streaming: how fresh data needs to beFree
- The modern data stack: a map of the toolsFree
- Working with analysts, data scientists and ML teams
- Estimating data volume and growth
- Cloud basics: accounts, access and networks
- Design: a first analytics pipeline for an online store
02SQL for data engineering12 lessons
- Join pitfalls: duplicated and missing rows
- NULLs and messy values in SQL
- Window functions: running totals and rankings
- Sessionization: grouping events into visits with SQL
- Pivoting and unpivoting data in SQL
- Dates, times and time zones in SQL
- Semi-structured data: querying JSON in SQL
- Recursive queries: hierarchies and graphs in SQL
- Deduplication: keeping one row per entity
- MERGE and upserts: updating tables in place
- Writing fast analytical queries
- SQL style, reviews and tests for pipelines
03Python for data engineering10 lessons
- The Python data toolkit: libraries that matter
- Reading and writing CSV, JSON and Parquet in Python
- DataFrames: pandas and Polars
- Pulling data from APIs: pagination and rate limits
- Reading and writing databases from Python
- Processing data larger than memory
- Errors, retries and logging in pipeline code
- Testing data code with pytest
- Packaging pipelines: config, dependencies and Docker
- Design: a script that loads daily sales files
04Data formats and file storage10 lessons
- Row and columnar storage: why layout mattersFree
- CSV and JSON: simple but costly at scale
- Parquet: columnar files for analytics
- Avro and Protobuf: schemas for events
- Compression and encoding: smaller, faster files
- Partitioning files by date and key
- The small files problem
- Schema evolution: changing data without breaking jobs
- Object storage for data: buckets, prefixes and costs
- Choosing a file format for your workload
05Data modeling for analytics12 lessons
- Why data modeling matters for analytics
- Normalized vs denormalized tables
- Dimensional modeling: facts and dimensions
- Star and snowflake schemas
- Grain: deciding what one row means
- Slowly changing dimensions: types 1, 2 and 3
- Wide tables: when one big table works
- Data vault: modeling for constant change
- Modeling events and clickstreams
- Metrics and semantic layers: one definition each
- Modeling data for machine learning features
- Design: a data model for an online store
Pipelines
3 modules · 34 lessons
06Data pipelines: ETL and ELT11 lessons
- Data pipelines: moving data reliably
- ETL vs ELT: where the transformation happensFree
- Ingestion patterns: full, incremental and append-only
- Idempotent pipelines: safe to run twice
- Incremental loads with watermarks
- Late and out-of-order records in batch pipelines
- Reverse ETL: sending data back to business tools
- Managed ingestion tools vs custom code
- Pipeline failures: detection and recovery
- Data pipelines for AI: documents, embeddings and LLMs
- Design: ingesting orders from five sources
07Change data capture and replication9 lessons
- Change data capture: reading the database’s change log
- Debezium and CDC connectors in practice
- Case: Shopify’s CDC from a sharded monolith
- Initial snapshots: loading history before changes
- Deletes, updates and schema changes in CDC
- Ordering and duplicates in CDC pipelines
- Landing CDC data in a warehouse or lakehouse
- Application events or CDC: choosing a source
- Design: syncing a production database to analytics
08Batch processing with Spark14 lessons
- Distributed batch processing: beyond one machine
- MapReduce: the idea behind big data
- Spark architecture: driver, executors and tasks
- Spark DataFrames and Spark SQL
- Lazy evaluation and Spark query plans
- Shuffles: the most expensive step in Spark
- Case: LinkedIn’s push-based shuffle for Spark
- Partitions and parallelism in Spark
- Joins at scale: broadcast and sort-merge
- Data skew: when one task does all the work
- Caching and memory in Spark
- Writing efficient Spark jobs
- Reading the Spark UI to debug jobs
- Design: a nightly job over a billion orders
Streaming
2 modules · 27 lessons
09Event streaming with Kafka14 lessons
- Event streaming: data as a continuous flow
- Kafka in practice: topics, partitions and offsets
- Kafka producers: keys, batching and acknowledgements
- Kafka consumers: groups, commits and rebalancing
- Delivery guarantees in Kafka pipelines
- Share groups: using Kafka as a queue
- Event schemas and the schema registry
- Kafka Connect: moving data in and out
- Retention, compaction and replaying events
- Partition keys and ordering guarantees
- Operating Kafka: lag, scaling and broker failures
- Case: PhonePe’s Kafka at 100 billion events a day
- Managed streaming services or self-hosted Kafka
- Design: a clickstream pipeline for an online store
10Stream processing with Flink13 lessons
- Stream processing: computing on data in motion
- Event time vs processing time
- Windows: tumbling, sliding and session
- Watermarks: deciding when late events stop counting
- Stateful stream processing and state backends
- Checkpoints: recovering without losing results
- Flink architecture: jobs, tasks and slots
- Flink SQL: streaming with SQL
- Stream joins and enrichment
- Flink, Spark Streaming or Kafka Streams
- Scaling and operating streaming jobs
- Case: Razorpay’s fraud checks in 200 ms with Flink
- Design: real-time fraud signals for payments
Storage and analytics
3 modules · 33 lessons
11Data warehouses11 lessons
- Data warehouses: built for analytical queriesFree
- How cloud warehouses separate storage and compute
- Columnar execution and massively parallel processing
- Partitioning, clustering and pruning
- Materialized views and aggregate tables
- Loading data into a warehouse
- Warehouse costs: what you actually pay for
- Snowflake, BigQuery, Redshift and others compared
- Warehouse access control and data sharing
- Tuning slow warehouse queries
- Design: a reporting warehouse for an online store
12Data lakes and lakehouses12 lessons
- Data lakes: cheap storage and how they go wrong
- Table formats: Iceberg, Delta Lake and Hudi
- Case: Grab’s data lake move to Iceberg
- Inside a table format: snapshots and transactions
- Time travel and rollback for tables
- Medallion architecture: bronze, silver and gold layers
- Catalogs: sharing tables across engines
- Compaction and table maintenance
- Streaming into Iceberg and Delta tables
- Case: Uber’s data lake from batch to streaming
- Lakehouse and warehouse: choosing, or using both
- Design: turning a data lake into a lakehouse
13OLAP and real-time analytics10 lessons
- OLAP engines: answering analytical questions fast
- Real-time OLAP: ClickHouse, Druid and Pinot
- Case: Zerodha’s back office on ClickHouse
- DuckDB: fast analytics from laptop to server
- Pre-aggregation and rollups
- Serving analytics in products: dashboards and APIs
- Approximate queries for speed at scale
- BI tools and how they query data
- Choosing an analytics engine
- Design: a live sales dashboard for a festival sale
Orchestration and transformation
2 modules · 22 lessons
14Orchestration with Airflow10 lessons
- Orchestration: DAGs, tasks and dependencies
- Airflow architecture: scheduler, workers and metadata
- Writing Airflow DAGs: operators and sensors
- Schedules, catchup and data intervals
- Backfills: rerunning history safely
- Retries, timeouts and deadline alerts in Airflow
- Passing data between tasks
- Assets and event-driven scheduling in Airflow
- Dagster, Prefect and managed orchestrators
- Design: orchestrating a daily reporting pipeline
15Transformations with dbt12 lessons
- dbt: transformations as version-controlled codeFree
- dbt models, sources and references
- Materializations: views, tables and incremental models
- Testing data with dbt
- dbt contracts, versions and microbatch models
- Documentation and lineage in dbt
- Incremental models and late-arriving data
- dbt snapshots for slowly changing data
- Macros and packages in dbt
- Structuring a dbt project and running it in CI
- Case: Monzo’s 12,000 dbt models across 100 teams
- Design: a dbt project for sales reporting
Reliability and governance
2 modules · 22 lessons
16Data quality and observability12 lessons
- Data quality: what goes wrong and why
- Validation checks: schema, nulls, ranges and freshness
- Data contracts: agreements with data producers
- Data testing frameworks: Great Expectations and others
- Data observability: monitoring data, not just jobs
- Anomaly detection on volumes and values
- Data lineage: tracing where numbers come from
- Freshness and quality targets for data
- Data incidents: finding and fixing bad data
- Case: Uber’s data quality platform
- Data catalogs and discovery
- Design: a quality system for finance reports
17Governance, privacy and security10 lessons
- Data governance: ownership and accountability
- Access control: roles, rows and columns
- AI agents as data users: safe warehouse access
- Personal data: masking and anonymization
- Privacy law for data teams: GDPR and India’s DPDP Act
- Retention and deletion requests across a data platform
- Case: Spotify’s deletion by deleting encryption keys
- Encryption and secrets in data pipelines
- Auditing and compliance reporting
- Design: a deletion request across every system
Scale and interviews
2 modules · 21 lessons
18Scale, performance and cost13 lessons
- Finding bottlenecks in data pipelines
- Partitioning strategy at large scale
- Data platform costs: storage, compute and transfer
- Cutting warehouse and lakehouse spend
- Case: Razorpay’s 21% cut to its Spark bill
- Autoscaling and spot capacity for data jobs
- Disaster recovery for data platforms
- Batch and streaming together: Lambda and Kappa
- CI/CD for data: environments, reviews and deploys
- Infrastructure as code: Terraform for data platforms
- Platform teams and data mesh: who owns what
- Case: Flipkart’s data platform move to Google Cloud
- Design: halving a data platform’s monthly bill
19Data engineering interviews8 lessons
- Data engineering interviews: what companies test
- SQL interview problems: patterns that repeat
- Data modeling interviews
- Pipeline design interviews: a framework
- Spark and streaming interview questions
- Common mistakes in data engineering interviews
- Mock interview: designing a clickstream platform
- Mock interview: modeling an e-commerce warehouse