Instruction session · Thursday, October 22, 2026
The module moves from the information viewpoint to the computational one. The concepts are studied before class, a thirty-minute exposition consolidates the layers of the medallion architecture, the quality checks, the UML component diagram and the scalability tactics, and the rest of the session is the graded Architecture Activity.
Project ritual
Each group reports the progress of its deliverables, the work planned for this session and the blockers that require a decision.
By the end of the session, students should be able to justify the content and the treatment of each layer of a medallion architecture, choose architectural tactics by stating their gains and costs, and represent a data pipeline as a UML component diagram in the graded Architecture Activity.
The exposition lasts thirty minutes because the study happens before class. Each student arrives with the vocabulary of the layers and the components, and with a first idea of the architecture of the group project.
Sections 2 to 9, on the computational viewpoint, the three layers, the quality checks, the component diagram and the scalability tactics.
The e-commerce medallion case, the guide to component diagrams and the article on data quality by layer, about 90 minutes in total.
A first sketch of the sources, layers and consumers of the group project, by hand or in PlantUML. It shortens the start of the graded activity.
Lessons 1 and 2 described which information the partner needs and checked it against the data. This lesson describes the functions that move and transform that information, which is the concern of the computational viewpoint of the RM-ODP.
Objectives, KPIs, grain and invariants, recorded in the Data Model Canvas and verified in the exploratory analysis.
Components that ingest, conform and model the data, and the interfaces through which each one hands data to the next.
Every invariant of the information viewpoint must be enforced by some component. The architecture shows which one, and in which layer.
The fictitious pharmacy chain of Lesson 1 now needs its indicator in production. The data team must turn three heterogeneous sources into a weekly stock-out rate that the purchasing team reads every Monday, and the exposition uses this example throughout.
POS terminals send JSON files every 15 minutes and resend the whole day after a lost connection. The ERP delivers a nightly extract, and suppliers send CSV files whose columns change without notice.
Duplicated sale lines in 6% of store-days, stock counts arriving up to three days late, and prescription numbers linked to the customer's CPF inside the sale lines.
A team of four, a lake on object storage and a PostgreSQL warehouse, a first version in eight weeks, and 30 new stores planned for next year.
The medallion architecture organises a lakehouse into layers of increasing refinement. Each layer has a contract with the next one, and the contract states what the data guarantees when it leaves the layer.
| Layer | Purpose | Typical content in the case | Guarantee to the next layer |
|---|---|---|---|
| Bronze | Keep what the sources sent, so that any later step can be repeated | POS JSON files, nightly ERP extracts and supplier CSVs, partitioned by source and ingestion date | Completeness and traceability to the original delivery |
| Silver | Offer conformed, deduplicated and typed entities that the whole organisation can trust | One sale line per sale and one stock position per product, store and day, with sensitive fields treated | Declared grain, enforced invariants and stable keys |
| Gold | Deliver data modelled for a specific consumption | The stock-position fact with store, product and date dimensions, and the weekly stock-out rate | Business definitions that match the KPIs of the canvas |
Each layer tests what its contract promises. A check placed in the wrong layer either arrives too late to stop bad data or too early to have the context it needs.
File counts per source and period, expected schema, arrival time against the schedule and volume compared with the same day of the previous week.
Uniqueness of the declared grain, invariants such as stock never negative, referential integrity and the share of rows sent to quarantine.
Reconciliation of totals with Silver, KPI values within plausible ranges and freshness of the data that the Monday dashboard reads.
A component diagram shows the replaceable parts of a system and the interfaces through which they connect. Each component provides an interface that the next one requires, which makes the contracts between layers explicit.
A modular part with a defined responsibility that can be replaced without changing its neighbours.
Drawn as a ball and a socket. They state what one component offers and what the next one needs.
Dashed arrows show dependencies, and artefacts such as Parquet files or tables show what is deployed.
A pipeline scales when the work of each run grows with the new data, independently of the size of the history. In the example, thirty new stores will increase the POS volume by about a third. Each tactic below absorbs that growth at a cost that the architecture must state.
Data is split by date and store, so each run touches only the slices that changed. Many small files require compaction.
A watermark records what was processed. Late data needs a lookback window, or it is skipped.
Rerunning a day produces the same result, which makes reprocessing after a failure safe. It requires overwriting partitions rather than appending.
Each layer can be recomputed from the previous one, so a fix in Silver does not require new extractions from the sources.
Seventy minutes of the session are dedicated to the graded activity, a data architecture proposal. Its statement and checklist are on Adalove, and the professor is available in the room during the work.
Seventy minutes of work in class, from about 11:45 to 12:55. Submission on Adalove until 16:00 on Thursday, October 22.
The medallion layers, the quality checks of each layer and the scalability tactics of the exposition are the raw material of the proposal. State the cost of each choice.
The reading attached to the activity on Adalove, on patterns for modern data pipelines.
Three readings assigned on Adalove for this session, about 90 minutes in total, with no grade weight. Read them before the class, because the exposition is short and the graded activity assumes the vocabulary they introduce.
An e-commerce company that organises clickstream, transaction and report data with the medallion architecture.
Purpose, notation and drawing steps of UML component diagrams.
Data quality challenges specific to each layer of a medallion lakehouse.
Architectural Tactics for Data Flow and Transformations · 22/10/2026 · Prof. Afonso
By the end of the session, students should be able to justify the content and the treatment of each layer of a medallion architecture, choose architectural tactics by stating their gains and costs, and represent a data pipeline as a UML component diagram in the graded Architecture Activity.
Flipped session. Students study the reading material and the three self-studies before class and bring a first sketch of the pipeline of their project. A thirty-minute exposition consolidates, on the running example of the pharmacy chain, the contracts of the Bronze, Silver and Gold layers, the data quality checks of each layer, the UML component diagram and the scalability tactics. The remaining seventy minutes are dedicated to the graded Architecture Activity in class, with the professor available in the room and submission on Adalove by 16:00.