DataEng study
Offline — showing the cached copy.
Home / Data Engineering System Desi / 20. Snowflake — separating storage from compute

20. Snowflake — separating storage from compute

One-liner. One copy of data, many warehouses, each sized and billed independently.

Context. Analytics concurrency: ETL, BI dashboards and data science competing for the same cluster.

Public architecture (documentation/papers).

  • Storage is a centralized, compressed, columnar store; compute is independent virtual warehouses.
  • Data is stored in micro-partitions (~50–500 MB compressed) with per-column min/max metadata used for pruning.
  • Warehouses can be resized or suspended without moving data; concurrency is handled by multi-cluster warehouses.
  • Time travel and zero-copy clone rely on immutable micro-partitions plus metadata.
  • Caching has layers: result cache, local disk cache, metadata cache.

Design lesson. Elastic compute over shared immutable storage decouples cost from concurrency. You scale readers without copying data.

SNOWFLAKE SHAPE CLIENTS BI SQL ETL COMPUTE virtual warehou… CACHE result + local … STORAGE micro-partitions columnar immutable SERVICES metadata transactions security
Snowflake shape

Trade-off. Idle warehouses still cost if not auto-suspended; cross-warehouse contention shifts to storage scan costs.

Trap. One giant warehouse for all workloads — ETL starves dashboards and you pay for peak. Do this. Separate warehouses by workload class with auto-suspend.

Check

What is the main benefit of micro-partitions with per-column min/max metadata?