Skip to main content
Intermediatehow it works

Explain the medallion architecture.

Source: Databricks: what is Delta Lake

Quick answer

A design pattern that improves data quality layer by layer. Bronze holds raw data as received, append-only, with ingestion metadata, so you can always replay.

A design pattern that improves data quality layer by layer. Bronze holds raw data as received, append-only, with ingestion metadata, so you can always replay. Silver is validated, deduplicated and conformed: the enterprise view. Gold is business-level aggregates and models for reports. Each layer is a Delta table, which gives lineage and lets you rebuild a downstream layer from the one before.

Animated explanation
  1. Bronzeraw as received, append-only, replayable
  2. Silvervalidated, deduplicated, conformed
  3. Goldbusiness aggregates and models
Each layer can be rebuilt from the one before it.
See the concept: Spark shufflegroupBy moves every record to the partition that owns its key
Spark shuffle: groupBy(key)
key A key B key C

Input partition 0

ACBA

Input partition 1

BBCA

Input partition 2

CABC

Stage 1: narrow transformations run in place

Before: each input partition holds a mix of keys. After the shuffle, all records with the same key live in one partition. That data movement over the network is what makes wide transformations expensive.

Key points

  • bronze raw
  • silver validated
  • gold business
  • replay and rebuild

References

Discussion