Skip to main content
XenonStack

Big Data Engineering

XenonStack Blog Snowflake Architecture: Layers, Warehouses, Cost

| Published | Updated

Snowflake Architecture: Layers, Warehouses, Cost
7:31

Key takeaway

  • Snowflake architecture explained: storage, compute and cloud services layers, micro-partitions, virtual warehouses, Time Travel and ways to control cost.

Snowflake is a self-managed cloud data platform that separates storage, compute and coordination into three layers, so each can scale on its own. It runs on public cloud infrastructure, and Snowflake handles maintenance, upgrades and tuning for you.

This guide is for data engineers, architects and analytics leads who are assessing Snowflake or tuning an existing account. It explains the architecture, micro-partitions, virtual warehouses, Time Travel and cost control, and compares Snowflake with traditional designs. For the wider concept, start with what a data warehouse is.

What is Snowflake architecture?

The Snowflake documentation, in its key concepts and architecture page, describes a hybrid of shared-disk and shared-nothing designs. As in shared-disk systems, all compute nodes reach one central repository for persisted data. As in shared-nothing systems, queries run on massively parallel processing (MPP) clusters in which each node stores a portion of the data locally. The page says this gives the data management simplicity of shared-disk with the performance and scale-out benefits of shared-nothing. Snowflake cannot be run locally or on private cloud infrastructure.

DesignHow storage and compute relateTypical trade-off
Shared-diskMany compute nodes read one central storeSimple data management, but the store can become a bottleneck
Shared-nothingEach node owns its own slice of the dataScales out well, but resizing means moving data
Snowflake hybridOne central repository, with MPP compute clusters that cache data locallyIndependent compute clusters over shared data

What are the three layers of Snowflake?

According to the same page, the layers are:

  • Database storage. Snowflake tables are reorganised into a compressed, columnar format in cloud storage and divided into micro-partitions. Snowflake manages all aspects of how this data is stored.
  • Compute. Virtual warehouses are clusters of compute resources that process SQL and run Snowpark code. Each warehouse is an independent compute cluster that does not share compute resources with others, so one warehouse does not affect another.
  • Cloud services. This layer coordinates the platform, from sign-in to query dispatch. It covers security, authentication and access control, metadata management, query parsing and optimisation, and infrastructure management.

What are micro-partitions and why do they matter?

Per the micro-partitions documentation, micro-partitioning is performed automatically on all Snowflake tables, and each micro-partition holds between 50 MB and 500 MB of uncompressed data. Rows are grouped into micro-partitions and each column is stored separately, so a query scans only the columns it references. Per-partition metadata lets a query skip partitions that cannot match a filter, which is called pruning.

Two-column diagram. Layers: database storage, compute, cloud services, Time Travel. What each does: pruning, isolation, per-second billing, Fail-safe.

Clustering metadata is recorded as data is loaded. The documentation describes clustering depth as a measure of how much partitions overlap in value ranges, where a lower average depth means better clustering. In practice this means that filters on well-clustered columns read less data. Larger warehouses do not fix a table whose data is poorly organised.

How do virtual warehouses work and how are they billed?

The virtual warehouse overview says warehouses range from X-Small to 6X-Large, and that size sets the compute resources per cluster. Auto-suspend and auto-resume are both enabled by default: an inactive warehouse is suspended, and a statement that needs a warehouse resumes it. Multi-cluster warehouses are an Enterprise Edition feature. Billing is per second, with a 60-second minimum each time the warehouse starts.

Some guides still name 4X-Large as the largest size. The documentation now lists sizes up to 6X-Large, so check current sizes before you plan capacity.

What is Time Travel in Snowflake?

Per the Time Travel documentation, Time Travel lets you query data that has since been updated or deleted, clone tables, schemas and databases at a point in the past, and restore dropped objects. The standard retention period is one day and is enabled for all accounts. On Enterprise Edition and higher, permanent databases, schemas and tables can be set to any value from 0 up to 90 days; Standard Edition can be set to 0 or left at the one-day default. After the period ends, data moves into Fail-safe and can no longer be queried, cloned or restored through Time Travel.

EditionTime Travel retention for permanent tables
Standard0 or the 1-day default
Enterprise and higherAny value from 0 up to 90 days

How do you keep Snowflake performance and cost under control?

  • Match warehouse size to the workload, and separate workloads onto separate warehouses so they do not compete.
  • Keep auto-suspend on, because compute is billed per second once a warehouse runs.
  • Filter on columns that the table is clustered on so pruning skips partitions.
  • Review long-running queries in the Query Profile and simplify the heavy joins and aggregations.
  • Use roles to control who can query which databases, schemas and tables.
  • Lower the Time Travel retention for tables where long history is not needed.

For deeper cost practice see the module below on FinOps for Snowflake, and compare approaches in our guide to Google BigQuery. Warehouse changes deserve checks too: our guide to database testing types and tools covers how.

How do AI agents change the way you use Snowflake?

When AI agents query a warehouse, the questions are asked at machine speed and the answers drive actions. That raises the importance of role design, query limits and a record of which data an agent used. XenonStack's Context OS, ElixirData, is built for the governed data and decision layer above sources such as Snowflake. If you want help designing the platform itself, you can talk to data warehouse design specialists or explore cloud application development solutions.

What should you do first?

  1. List the warehouses in your account and the workloads on each.
  2. Check auto-suspend settings and the retention period on your largest tables.
  3. Find the slowest queries and see which filters could use clustered columns.
  4. Review roles so that agents and users see only the data they need.
  5. Record the data each automated process reads, before adding more agents.

Next Steps with Snowflake Cloud Data Warehouse Architecture

Talk to our experts about implementing Snowflake Cloud Data Warehouse Architecture and how industries and different departments leverage scalable, cloud-native data management to drive data-driven decision-making. Discover how Snowflake’s architecture enhances data sharing, performance, and security, optimizing analytics and operations for improved efficiency and responsiveness.

To map one decision your agents make, and the data and policy it depends on, book a Context Workshop. See what happens in the workshop.

Frequently asked questions

What is Snowflake?

Snowflake is a self-managed data platform that runs on public cloud infrastructure, with Snowflake handling maintenance, upgrades and tuning.

What are the three layers of Snowflake architecture?

Database storage, compute (virtual warehouses) and cloud services.

How big is a Snowflake micro-partition?

Each micro-partition holds between 50 MB and 500 MB of uncompressed data, and micro-partitioning is automatic on all Snowflake tables.

How long does Time Travel keep data?

The standard retention period is one day. Enterprise Edition and higher can set permanent tables to any value from 0 up to 90 days.

How does Snowflake bill compute?

Warehouses are billed per second, with a 60-second minimum each time a warehouse starts.

Follow XenonStack on LinkedIn: XenonStack on LinkedIn for new guides on agentic AI, data and platform engineering.

Ready to put AI agents to work? Explore ElixirClaw, the agentic OS platform to build, orchestrate and govern AI agents.

Table of Contents

navdeep-singh-gill

Navdeep Singh Gill

Global CEO and Founder of XenonStack

LinkedIn profile

Navdeep Singh Gill is serving as Chief Executive Officer and Product Architect at XenonStack. He holds expertise in building SaaS Platform for Decentralised Big Data management and Governance, AI Marketplace for Operationalising and Scaling. His incredible experience in AI Technologies and Big Data Engineering thrills him to write about different use cases and its approach to solutions.

Get the latest articles in your inbox

Subscribe Now

Interested in solving your challenges with the XenonStack team?
Get Started

Tell us about you and your priorities so we can prepare the right conversation. It takes about 2 minutes.

Please Select your Industry
Banking
Fintech
Payment Providers
Wealth Management
Discrete Manufacturing
Semiconductor
Machinery Manufacturing / Automation
Appliances / Electrical / Electronics
Elevator Manufacturing
Defense & Space Manufacturing
Computers & Electronics / Industrial Machinery
Motor Vehicle Manufacturing
Food and Beverages
Distillery & Wines
Beverages
Shipping
Logistics
Mobility (EV / Public Transport)
Energy & Utilities
Hospitality
Digital Gaming Platforms
SportsTech with AI
Public Safety - Explosives
Public Safety - Firefighting
Public Safety - Surveillance
Public Safety - Others
Media Platforms
City Operations
Airlines & Aviation
Defense Warfare & Drones
Robotics Engineering
Drones Manufacturing
AI Labs for Colleges
AI MSP / Quantum / AGI Institutes
Retail Apparel and Fashion

Continue