snowflake-architect
Architect-level Snowflake design — virtual warehouse sizing and auto-suspend, storage versus compute separation, micro-partitioning and clustering, time travel and fail-safe, secure data sharing with consumers, and the cost model that punishes idle warehouses. Use when the warehouse is Snowflake.
- License 许可
- MIT
- 最近更新
- 2026-11-13
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- snowflake-architect
- license
- MIT
- metadata
- { "crusor-path": "data-engineering-architect/storage-architect/snowflake-architect", "crusor-domain": "data-engineering-architect", "crusor-origin": "original", "crusor-sources": "docs.snowflake.com/en/user-guide/warehouses-overview; docs.snowflake.com/en/user-guide/tables-clustering-micropartitions; docs.snowflake.com/en/user-guide/data-sharing-intro", "crusor-triggers": "snowflake, virtual warehouse, micro partition, clustering key, time travel, data sharing, snowflake cost, warehouse size", "crusor-verified-on": "2026-10-30" }
- description
- Architect-level Snowflake design — virtual warehouse sizing and auto-suspend, storage versus compute separation, micro-partitioning and clustering, time travel and fail-safe, secure data sharing with consumers, and the cost model that punishes idle warehouses. Use when the warehouse is Snowflake.
- compatibility
- Snowflake
03 SKILL.md 正文
Snowflake Architect
Snowflake bills compute by the second and storage by the byte. Most designs fail on warehouse sizing and idle credits, not on SQL.
When to use
- The analytical platform is Snowflake.
- Warehouse cost or query latency needs a structural fix.
- Sharing data with external consumers.
When NOT to use
- Another warehouse is already in place — this is not a migration argument.
- OLTP workload — Snowflake is not that.
Decision 1 — Warehouses
| Workload | Design |
|---|---|
| BI dashboards | XS/S with auto-suspend 60 s, one per team |
| ELT transforms | M/L, scheduled, separate from BI |
| ad-hoc analysts | S with a query timeout |
| heavy ML feature builds | dedicated XL, off hours |
- Separate warehouses per workload class: contention becomes a queue, and cost is attributable.
- Auto-suspend 60 s and auto-resume; an always-on warehouse is a subscription you did not intend.
- Multi-cluster warehouses for concurrency spikes, not for faster single queries.
Decision 2 — Storage and clustering
- Micro-partitions make most filters fast without indexes; do not port an index-heavy schema.
- Clustering keys only on very large tables with a stable, selective filter — they cost credits on write.
cluster bythe column your queries filter on; verify with the clustering depth and pruning stats in the query profile.- Time travel (1–90 days) and fail-safe (7 days) are storage costs; set retention per table deliberately.
Decision 3 — Transformation placement
- ELT into Snowflake, transform with dbt/SQL (
dbt-architect) rather than external compute where the data volume is moderate. - Dynamic tables / streams + tasks for incremental, instead of full rebuilds.
- Avoid
SELECT *in models that feed dashboards — column pruning is a cost lever. - Materialise what is read repeatedly; views over large joins are a credit sink.
Decision 4 — Cost
- Credits per warehouse per day is the primary metric; alert on anomalies, not totals.
- Worst offenders: idle warehouses, full-refresh jobs, unpartitioned scans, and BI tools issuing queries per dashboard tile.
- Resource monitors with hard suspension for non-production accounts.
ACCOUNT_USAGEviews are the truth; build the report before the first bill review.
Decision 5 — Sharing and governance
- Secure data sharing for consumers — no data copies, revocable, audited.
- Roles: functional roles for access, access roles for objects, one role per consumer class.
- Column-level masking and row access policies for PII, applied at the table.
- Object tagging for cost and classification; retention policies keyed off tags.
Failure modes at scale
- Every dashboard has its own XL warehouse; concurrency is fine, the bill is not.
- Clustering key added to a table written constantly; write credits triple.
- Time travel at 90 days on 200 TB "in case someone asks".
- BI tool querying raw tables; every refresh scans the full history.
- Warehouse never suspends because a health-check query runs every 30 seconds.
Verification receipts
- Warehouse inventory: size, workload, auto-suspend, credits/day.
- Query profile showing partition pruning for a representative query.
- Storage report by table, with time-travel and fail-safe broken out.
- Resource monitors configured for non-production.
- Sharing setup tested with a consumer account and a revocation.
04 同仓库更多 Skills
interaction-patterns-architect
Architect-level interaction design in code — choosing established patterns over invented ones, feedback and latency behaviour, destructive-action safeguards, navigation and overlay conventions, and the state model behind every interactive surface. Use when a screen has to behave, not just look.
design-system-ops-architect
Architect-level operation of a design system in code — token pipelines and versioning, component API and variant policy, the catalogue as the contract, adoption metrics, and the governance that stops a system from forking into three. Use when a component library must survive several teams.
design-handoff-architect
Architect-level design handoff — what must be specified before implementation starts, tokens over raw values, responsive and content-limit contracts, state matrices, and the review loop that catches drift between design and code. Use when a design is about to become code.
content-microcopy-architect
Architect-level UI content — where strings live, voice and terminology consistency, error and empty-state copy as part of the interface, translation-ready authoring, and the content model a product needs before it multiplies screens. Use when the words in the interface matter as much as the pixels.
ui-ux-implementation-architect
Architect-level direction for turning a design into working UI — the handoff contract, component ownership versus screen-level layout, interaction and state conventions, design QA gates, and the review habits that keep an implementation faithful without frozen pixels. Use before any specific UI implementation skill.
test-strategy-architect
Architect-level test strategy — allocating assertions across unit, integration, contract and end-to-end layers, designing for testability through dependency boundaries, fixture and data strategy, and the flake and coverage policies that keep a suite trustworthy. Use when defining how a codebase is tested.