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
- Bronzeraw as received, append-only, replayable
- Silvervalidated, deduplicated, conformed
- Goldbusiness aggregates and models
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
Key points
- bronze raw
- silver validated
- gold business
- replay and rebuild
References
- Databricks: what is Delta Lake
- Databricks: ACID guarantees and optimistic concurrency
- Databricks: isolation levels and write conflicts
- Delta Lake transaction log protocol
- Databricks: table history and time travel
- Databricks: VACUUM
- Databricks: OPTIMIZE
- Databricks: liquid clustering
- Databricks: predictive optimization
- Databricks: MERGE (upsert)
- Databricks: update table schema
- Databricks: change data feed
- Databricks: deletion vectors
- Databricks: Auto Loader
- Databricks: Lakeflow pipelines
- Databricks: pipeline expectations
- Databricks: Unity Catalog
- Databricks: high-level architecture
- Databricks: compute
- Databricks: Photon
- Databricks: medallion architecture