Warehouse architectures compared

Snowflake (separated compute/storage, micro-partitions), BigQuery (serverless slots, on-demand vs capacity pricing), Redshift (dist/sort keys). Pricing models drive different optimizations.

About 24 min read3-question knowledge check

The mental model

A cloud data warehouse is a kitchen where the pantry and the cooks are rented separately — and understanding *how* they are separated is the key to understanding why Snowflake, BigQuery, and Redshift behave, price, and get optimised so differently. The old world (classic Redshift, on-prem Teradata) was one building: storage disks and CPU welded together on the same nodes, so to get more compute you had to buy more storage, and two teams querying at once fought over the same machines. The modern architecture decouples storage from compute: your data sits in cheap object storage (S3/GCS), and you spin up independent compute clusters that read it — so ten teams can each have their own cluster hitting the same data, and you pay for storage and compute on separate meters.

The analogy that sticks: three restaurants, same idea, different management style. Snowflake rents you named kitchens (virtual warehouses) that you size (XS to 6XL), turn on, and turn off — you decide how many cooks and when. BigQuery is a food court with a shared pool of thousands of cooks (slots); you submit an order and the system assigns cooks on demand, and you either pay per dish (bytes scanned) or reserve a block of cooks. Redshift (the RA3/serverless generation) finally separated the pantry too, but its DNA still rewards you for arranging the pantry shelves just so — distribution and sort keys — because it moves less food between cooks when you do.

The WHY that drives every optimization: **the pricing model tells you what to optimise.** Snowflake bills compute *per second the warehouse runs* (with a 60-second minimum each time it starts or resumes), so you optimise for auto-suspend and short queries. BigQuery on-demand bills *per byte scanned*, so you optimise to scan fewer bytes (partition, cluster, never select *). Redshift provisioned clusters bill per node-hour (Serverless bills per RPU-hour used), so you optimise cluster utilisation and data layout. Same query, three different "what makes this cheaper" answers — and knowing which lever applies to which platform is exactly what separates an engineer from someone who "used a warehouse."

The full lesson continues with 15 more sections
  • Deep dive
  • Internal architecture
  • Real-world use cases
  • Best practices
  • Common mistakes
  • Performance
  • Security
  • Production troubleshooting
  • Advantages & disadvantages
  • Alternatives
  • Interview expectations
  • Interview questions
  • Facts to remember
  • Cheat sheet
  • Quick revision