Data Engineering for AnalyticsVol. 21 · Analytics
0 / 0

Shelves / Data Engineering for Analytics

DE·10

Data Engineering Projects

The TiffinBox analytics platform as a project in six milestones: a lakehouse with change data capture from PostgreSQL, a dbt project with a star schema and tests, an orchestrated nightly pipeline with idempotent partitions and backfills, quality checks and contracts with circuit breakers, a streaming live kitchen dashboard with event-time windows, and governance and cost controls; each with deliverables, measurable definitions of done, and stretch goals.

9 topics · ~3 min read · 4-question quiz
Updated Suggest a correction

Start here: build the platform, not a demo

Each chapter's lab isolated one idea. The project puts them together into the analytics platform TiffinBox would actually run, built on the capstone application from Volume 19 (or on generated data if you build it on its own).

How deep to go

Volume 17 defines six mastery levels. The project targets L4 across the volume (diagnose and fix real problems) and L5 in your chosen area (design and defend the platform's choices).

Milestone 1: ingestion and storage

Deliverables. CDC from PostgreSQL (Debezium to Kafka, or logical replication) and the orders.v1 events landing as bronze Iceberg tables in object storage (MinIO locally), partitioned by ingestion day; the payment provider's daily settlement file loaded to raw.

Done when. A new order appears in bronze within 5 minutes; a replayed day produces no duplicates (idempotent loads); bronze tables can be queried from DuckDB and Spark.

Milestone 2: models

Deliverables. A dbt project (chapter 04) with staging models, dim_date, dim_customer and dim_kitchen (type 2 via snapshots), fct_orders, fct_order_items, fct_deliveries, fct_subscription_days; a semantic definition of revenue (net of refunds, excluding delivery fees).

Done when. Every model has a declared grain and uniqueness test on it; revenue reconciles with the payment provider within ₹1 per day; the lineage graph documents sources to marts; unit tests cover refunds and time-zone handling.

Milestone 3: orchestration

Deliverables. A nightly pipeline (Dagster or Airflow) with sensors on sources, per-day partitions, idempotent writes, retries, freshness SLAs and alerts; a documented backfill procedure.

Done when. A 90-day backfill runs twice with identical results; a source arriving 3 hours late delays the pipeline instead of producing wrong data; a missed SLA pages the owner.

Milestone 4: quality and contracts

Deliverables. Checks for freshness, volume (seasonality-aware), nulls, uniqueness, distributions and schema at ingestion and before publishing (chapter 08); a written data contract for orders.v1 enforced in the producer's CI; a circuit breaker that keeps the last good partition.

Done when. Each of chapter 08's five injected failures is caught in a staging replay with no false alarms over 60 days of history; a breaking schema change fails the producer's build.

Milestone 5: streaming

Deliverables. A Flink (or Kafka Streams) job computing per-kitchen, per-minute order flow with event time, a 5 s watermark, 15 minutes of allowed lateness with upserts, and a live dashboard marking provisional minutes.

Done when. During a simulated 3-minute mobile network outage, final per-minute counts match the nightly batch exactly; the job survives a restart with no lost or duplicated counts.

Milestone 6: governance and cost

Deliverables. Roles from identity groups; row-level security for kitchen staff; masking of personal data; keyed pseudonyms; retention jobs; an erasure procedure that removes a customer from every table and from lakehouse history; cost attribution by team and a monthly report.

Done when. An erasure request is fulfilled end to end and verified (including time travel); kitchen staff can't see other kitchens or customers' contact details; the top 10 queries by cost have been reviewed and the worst fixed.

Stretch goals

  • ML features: daily features (orders per customer, skip rate, delivery reliability) for a churn model, served to the assistant.
  • Reverse ETL: push customer segments to the notification service.
  • Self-service: a semantic layer so product managers build their own charts safely.
  • Multi-engine: the same Iceberg tables queried by a cloud warehouse and DuckDB.