Follow a query through storage, compute and cloud services
Snowflake separates persistent storage, query compute and coordination into three layers.
Understand the idea
Architecture means the main parts of a system and how those parts work together. Snowflake’s architecture separates three responsibilities: keeping data, processing data and coordinating the work.
| Concept | What it means |
|---|---|
| Storage | Keeps the table data even when no query is running. |
| Compute | Processing power that reads data and performs calculations. A virtual warehouse supplies it for supported work. |
| Cloud Services | Coordinates requests, checks access and manages information needed to plan work. |
A concrete example
FINANCE_WH and ENGINEERING_WH query SALES using separate compute. Suspending either warehouse keeps the table data available.
Remember: Compute separation reduces warehouse resource competition; other dependencies and transaction behavior still apply.
Explain it step by step · full theory
First, understand the meaning
Architecture means the main parts of a system and how those parts work together. Snowflake’s architecture separates three responsibilities: keeping data, processing data and coordinating the work.
The storage layer keeps standard table data. Virtual warehouses provide compute for query processing. Cloud services coordinate responsibilities such as identity, access, metadata and planning. “Three layers” does not mean three servers that you must install.
Picture it in everyday life
Think of a restaurant. Ingredients are stored in a pantry. Cooks prepare meals. The front desk receives requests and organizes the work. The pantry does not cook, and a cook going home does not remove the ingredients. The same distinction helps separate stored data from running compute.
Why do we need this?
Without separation, it is easy to assume that stopping a warehouse deletes its tables or that every reporting team needs its own permanent copy of the data. Both assumptions confuse processing with storage.
Northstar wants loading and reporting to use different processing resources while referring to the same authorized sales data. This is the architectural idea we will follow.
Let us follow it step by step
Trace one finance request through the layers.
- The finance user requests total sales from a table.
- Cloud services coordinate checks and query planning.
- The reporting warehouse performs the required execution work.
- The warehouse reads the needed stored values and calculates the answer.
- The result is returned; the source data remains stored for future work.
The three layers side by side
| Layer | Question it answers | Northstar example |
|---|---|---|
| Storage | Where do the records remain? | The stored sales table |
| Compute | What processes the query? | REPORTING_WH calculates totals |
| Cloud services | How is the request checked and coordinated? | Access checks, object information and query plan |
Shared data, independent workers
Snowflake combines shared persistent storage with distributed query execution. Distributed execution means suitable work is divided among processing resources and the results are combined. You may hear the term massively parallel processing, or MPP.
Two warehouses have independent compute resources. This reduces direct competition for the same workers, but it does not make their business processes independent: both may still depend on the same data load or object definition. More compute also does not guarantee proportional speed.
Before you move on
Remember the three jobs: keep, process and coordinate. When explaining an architecture diagram, say what each part does and what happens if its compute stops.
Shared data and independent compute
Imagine FINANCE_WH and ENGINEERING_WH reading the same SALES table in one account. The table is stored once in the managed storage layer. Each warehouse supplies its own compute resources for its assigned queries. Granting a team a warehouse does not automatically grant access to SALES.
This architecture lets a finance team run reports while engineers process data with another warehouse. The teams avoid competing for the same warehouse compute, although database consistency, access controls and other system dependencies still apply. A change committed to shared data can affect subsequent reports according to transaction visibility.
The term shared-data architecture describes this separation inside the platform. Secure Data Sharing across accounts is a separate capability with provider and consumer permissions. Later curriculum levels teach that workflow.
Trace our sales question through all three layers
The user submits a query for January sales. Cloud services handle responsibilities such as authentication, authorization, metadata and optimization. If warehouse execution is needed, compute scans relevant stored data and performs filters, joins or aggregation. The client receives the result.
The storage layer keeps persistent records while compute can be resized or suspended independently. Cloud services coordinate the work. Eligible persisted-result reuse can change which execution work is required, so this walkthrough describes the ordinary execution path rather than every possible request.
Words used in this lesson
- Architecture
- The parts of a system and how their responsibilities connect.
- Compute
- Processing resources used to perform work.
- MPP
- Dividing suitable processing work among multiple resources.
- Persistent data
- Data that remains independently of one running query or warehouse.
See how it works
Choose a step to explore the idea at your own pace.
Open the interactive explanation
Follow a query through storage, compute and cloud services
Keep
Stored sales records remain independently of reporting compute.
Automatic playback is off for reduced motion. Select any step or use Previous and Next. Illustrations explain behavior; they are not live measurements.
Read the complete diagram explanation
- Keep
Stored sales records remain independently of reporting compute.
- Coordinate
The request is checked and planned before required work is dispatched.
- Process
The reporting warehouse performs the calculation. Another warehouse can process authorized data independently.
Try the SQL or command
Read → predict → run in your learning environment → compare. You can also learn by reading without an account.
New to SQL? Where to run it and how to read it
A query is a question written in SQL. Snowflake runs it and returns a result table. This website shows examples; it does not connect to your account.
- No account yet? Read and predict the output first. Follow the account and Snowsight lesson when you are ready.
- For SQL practice, use a learning account in Snowsight and select an authorized role and warehouse. A role determines permissions; a warehouse supplies processing power. Follow the example’s database/schema setup when it refers to stored objects.
- Read the entire example, including comments beginning with
--. Run the selected statement or labeled block in the stated order. Examples labeled Python, shell or HTTP belong in that client, not in a SQL editor. - Compare values and row counts with the explained result. If an example deliberately causes an error, follow its rollback and cleanup steps before continuing.
- SELECT / FROM
- Choose the values to return / identify their input.
- VALUES / COLUMN1
- VALUES supplies tiny example rows. COLUMN1 means their first column, COLUMN2 their second.
- AS / WITH
- AS gives a result a readable name. WITH names a temporary query step within one statement.
- NULL / ::
- NULL means missing or unknown. The :: notation converts a value to a named data type.
- Session
- One connection and its settings. Keep related transaction steps in the same session.
- Database.schema.table
- A full address for stored data. It is separate from the warehouse that processes queries.
Help with common practice errors
- No active warehouse: select a warehouse your role can use. Do not assume you need to create a new one.
- Object missing or not authorized: check the full name, required setup and active role. Ask the account owner for access if needed.
- Object already exists: setup may already have run. Read the current state or choose a fresh lab name consistently; do not add OR REPLACE blindly.
- Different result: check whether an earlier INSERT or UPDATE changed the data. VALUES examples provide their own fresh input for each statement.
Separate data context from compute
SELECT CURRENT_DATABASE() AS DATABASE_NAME, CURRENT_SCHEMA() AS SCHEMA_NAME, CURRENT_WAREHOUSE() AS WAREHOUSE_NAME;What to expect and why
These are separate context settings. A NULL value means that context has not been selected; it does not mean stored data has been deleted.
Check your understanding
Choose an answer, then check your reasoning. This is practice, not a scored test.
Try it yourself
Draw two teams querying the same sales table. Identify what is shared and what is separate.
Compare your reasoning
The persistent sales data is shared. Each team can have separate warehouse compute. Cloud services coordinate requests, and each team still needs appropriate permissions.