stackbook.io
🔍
← Back to Syllabus
Day 6Level 2 — Platforms and Governance

Analytical Platforms: Warehouse, Lake, and Lakehouse

Learn: 40 minMap: 25 minDesign: 55 min

Core Concepts (5)

  • 1.Columnar storage makes analytics scans cheap
  • 2.Warehouses, lakes, and lakehouses differ in structure and governance
  • 3.Layered refinement separates raw from trusted data
  • 4.Load then transform changes who owns the logic
  • 5.Storage and compute cost scale differently

Map to Your Experience

Think of a time an analyst and an engineer got different numbers for the same metric. Where in the pipeline did the logic diverge?

Design Brief: Layered Data Platform for a Retailer

Learn

Analytical workloads behave differently from transactional ones. They scan many rows but read only a few columns, such as the total of an amount field across millions of orders. Columnar storage keeps each column together on disk, which lets queries skip unneeded data and compress it well. This is the main reason analytical engines outperform transactional ones on reports.

A data warehouse stores structured, modelled data with strong governance and fast queries. A data lake stores raw files cheaply, in any shape, with looser rules. A lakehouse tries to combine them by adding table formats, transactions, and schema enforcement on top of lake storage. None is universally best; they sit at different points on the flexibility and control scale.

Layering brings order. A common approach keeps a raw layer that mirrors sources exactly, a cleaned layer that fixes types and removes duplicates, and a curated layer shaped for business questions. Each layer makes a promise. Raw promises completeness, cleaned promises consistency, curated promises meaning. Users should know which promise they are relying on.

The order of loading and transforming matters. Transforming before loading keeps the warehouse tidy but puts logic in a pipeline few people can see. Loading first and transforming inside the platform keeps raw data available and lets analysts own business logic, but it demands discipline about tests and documentation.

Economics shape the design. Storage is cheap and compute is not, and the two can be scaled separately. Tag every job and table with an owner so that cost can be attributed. A platform nobody pays attention to will grow until the bill forces a painful clean up.

Map

Draw the path one important metric takes from source system to dashboard. Mark each place where data is copied, cleaned, or recalculated. Note who owns each step and where two people could define the metric differently. Share the result with a colleague and note where their reading differs from yours.

Design

Design the layered platform for the retailer. Define each layer and the promise it makes. Choose the file or table format and explain the choice. Assign an owning team to every transformation and describe how storage and compute costs are tagged and reported monthly. Keep the output to a single page that a peer could review in ten minutes without your help.

Requirements

  • •Define the layers and what each guarantees
  • •Choose storage format and justify it
  • •Show who owns each transformation

Constraints

  • •Raw data kept for seven years
  • •Cost must be attributable per team

Must Cover

layerscolumnar-formatownershipcost

Trade-off Axis

flexibility vs governance

Competencies Advanced

data state → L3economics evolution → L3

Ready to Design?

Open this day in the Design Studio. The studio follows this track: its days, concepts, patterns and trade-offs are loaded, and you keep one design across the whole track.

Open in Studio →