Design Continuous File Ingestion Like Snowpipe From Cloud Storage
Last updated: November 29, 2026
Quick Overview
Design a service that loads files into tables within a minute of their landing in a customer's S3, GCS or Azure bucket, driven by storage event notifications, loading each file exactly once even when events are duplicated or lost.
Snowflake
November 29, 20260
0
0 solved
Design a service that loads files into tables within a minute of their landing in a customer's S3, GCS or Azure bucket, driven by storage event notifications, loading each file exactly once even when events are duplicated or lost.
Continuous ingestion is a core Snowflake product, so this is a natural system design round prompt for platform engineers. The interviewer wants exactly-once file loading, serverless compute that is billed per account, and a clear answer for missed or duplicated storage events.
What the Interviewer Expects
- Uses storage notifications as hints and a per-pipe load history as the source of truth for deduplication
- Separates a notification intake queue from a pool of serverless loader workers
- Commits file data and its load-history record atomically
- Provides a reconciliation listing to catch missed events
- Addresses multi-tenant fairness and per-account billing
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- How would you support a REST endpoint where customers push file lists instead of events?
- How do you handle a file that is overwritten with new contents under the same name?
- How would you batch thousands of tiny files to avoid creating tiny micro-partitions?
- What metrics would tell you ingestion latency is degrading for one tenant?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
Functional: create a pipe binding a stage path to a target table and a COPY definition; load new files automatically; expose load history and errors. Non-functional: p50 under 1 minute from file landi...
High-Level Design
Cloud events (S3 to SQS, GCS Pub/Sub, Azure Event Grid) flow into an intake service that maps the bucket path to pipe ids and writes work items into a per-pipe queue partition. A scheduler hands batch...