All Sources & Targets
Inbound Snowflake Integration

Seven ways to land changes in Snowflake

Every inbound Snowflake pattern in Aestus CDC is a dedicated, containerized integrate agent. Because Avro is already Aestus's standard data traffic format on the broker, stage- and stream-based agents pass blocks straight through without transcoding, while direct-write and Iceberg agents decode and apply them at the edge. Pick the agent that matches your latency, coupling and Snowflake credit goals.

Avro Native on the Wire At-Least-Once & Idempotent Version Guards & Tombstones Controllable Credit Cost

Integration Agents at a Glance

Order-of-magnitude Snowflake ingestion latency, throughput ceiling, required compute, credit cost profile and coupling across the seven inbound agents.

Integrate Agent Snowflake Ingest Latency Throughput Snowflake Compute Cost Profile Coupling
Virtual Warehouse via database/sql
integrate-sf-sql
~1–5 s per blockLow–medium (statement-bound)Virtual Warehouse, whenever data flows💲💲💲 for trickle workloadsTight (driver, warehouse)
Snowflake SQL REST API
integrate-sf-sql-api
~1–5 s per blockLow–medium (statement-bound)Virtual Warehouse, whenever data flows💲💲💲 for trickle workloadsTight (HTTPS only)
Internal Stage (PUT) + COPY INTO / Snowpipe
integrate-sf-stage
Minutes (schedule)Medium–highWarehouse only during COPY INTO (or serverless Snowpipe)💲 Low (batchable)Medium (Internal Stage)
Object Storage + External Stage + Snowpipe /
Dynamic Tables (AWS, Azure, GCP)
integrate-aws-objectstoreintegrate-az-objectstoreintegrate-gcp-objectstore
Seconds–minutesVery high (GB/s–TB/day)Serverless Snowpipe + Dynamic Table or Task; scheduled or continuous💲–💲💲 Lowest per GBLoose (bucket only)
Kafka / Event Hubs + Snowflake Connector for Kafka
integrate-sf-kafka
SecondsVery highServerless Snowpipe Streaming (via Kafka Connect) + Dynamic Table / Task💲💲 + broker costLoose (topic only)
Snowpipe Streaming API
integrate-sf-snowpipe-streaming
Seconds (~1–5 s)High (scale with channels)None you manage (serverless Snowpipe Streaming)💲 Usage-basedTight (Snowflake Streaming API)
Apache Iceberg Tables on Object Storage
integrate-sf-iceberg
Seconds–minutesHighNone during write (catalog metadata refresh only)💲 Lowest Snowflake computeLoose (open Iceberg format)

Latency figures measure ingestion on the Snowflake side only; Aestus data transport and transformation latency is not included in these numbers. Cost statements describe what drives the Snowflake bill; check credit rates against your cloud, region, edition and contract.

Which Agent to Choose

Match the integrate agent in your flow YAML to your latency target, existing infrastructure and Snowflake compute budget.

Default Choice integrate-{aws,az,gcp}-objectstore

Decoupled & lowest credit cost per GB

Stage Avro blocks untouched in AWS S3 (integrate-aws-objectstore), Azure ADLS Gen2 / Blob (integrate-az-objectstore), or Google Cloud Storage (integrate-gcp-objectstore) and load with Snowpipe + Dynamic Tables or Tasks. Cheapest per GB, scales furthest, and keeps capture independent of Snowflake availability.

Fastest Path integrate-sf-snowpipe-streaming

Lowest latency, zero warehouse

Push ordered rowsets with offset tokens straight into Snowflake table channels via Snowpipe Streaming when you want second-level latency with no bucket, no broker and no running Virtual Warehouse.

Event Backbone integrate-sf-kafka

Shared stream & fan-out

If Kafka or Event Hubs already exists, publish native Avro messages there so the Snowflake Connector for Kafka (Snowpipe Streaming) and non-Snowflake consumers share the exact same replayable stream.

Account Only integrate-sf-stage

Governed staging, no cloud IAM

Upload raw .avro files via PUT into a Snowflake Internal Stage and run COPY INTO on a schedule. Ideal for moderate volume when you want only a Snowflake login and no external bucket IAM.

Inline Upserts integrate-sf-sql-api

Low volume or immediate MERGE

Use the HTTPS SQL REST API (or integrate-sf-sql) when upserts and corrections must land transactionally right away. Batch large blocks and keep Virtual Warehouse auto-suspend short (60 s).

Open Lakehouse integrate-sf-iceberg

Multi-engine Apache Iceberg tables

Use integrate-sf-iceberg when the same table in S3, ADLS Gen2 or GCS must be read in place by Snowflake, Spark, Trino and DuckDB without paying Snowflake credits to ingest and rewrite data.

Inbound Integrate Agents

Each agent runs in its own container, consumes ordered Avro batches from the flow's partition queues, and advances its checkpoint only after the target acknowledges the write.

01. Virtual Warehouse via database/sql
integrate-sf-sql

Holds a connection to a Snowflake Virtual Warehouse through gosnowflake (database/sql) with key-pair JWT or OAuth authentication and executes one idempotent MERGE per Avro block, binding the batch as a single JSON array parameter expanded server-side with PARSE_JSON and LATERAL FLATTEN.

Architecture diagram: Aestus CDC integrate-sf-sql agent crossing into a Snowflake Virtual Warehouse via gosnowflake to MERGE into a Snowflake Table

Pros: Familiar transactional semantics per statement, immediate read-your-writes, and straightforward upserts, deletes and version guards (_ae_version) via MERGE with no extra infrastructure beyond the Virtual Warehouse.

Trade-offs: Each block is a DML transaction that writes new micro-partitions: small, frequent blocks fragment clustering, and concurrent MERGEs on the same table contend for locks. Avro must be transcoded, and if the warehouse is suspended or resizing, the agent waits on it.

Performance & cost: ~0.3–2 s statement overhead on a warm warehouse (500–10,000 rows per MERGE; keep under 1 commit/s per table). Virtual Warehouse credits are billed per second (with a 60 s minimum on resume)—a steady trickle prevents auto-suspend and keeps the warehouse burning credits 24/7.

Ownership: You operate integrate-sf-sql · Snowflake operates Virtual Warehouse.

database/sqlgosnowflakeMERGELATERAL FLATTENTranscode JSON
02. Snowflake SQL REST API
integrate-sf-sql-api

Submits multi-row MERGE statements over plain HTTPS (POST /api/v2/statements) using RSA key-pair JWTs or OAuth tokens, waiting synchronously or polling statement handles asynchronously.

Architecture diagram: Aestus CDC integrate-sf-sql-api agent sending HTTPS POST /api/v2/statements requests to Snowflake SQL REST API, Virtual Warehouse, and Snowflake Table

Pros: Pure standard-library HTTPS and JSON with no gosnowflake driver and no long-lived sessions. Works cleanly in minimal containers or restricted environments using key-pair JWTs or OAuth service principals.

Trade-offs: Shares the statement-per-block, micro-partition fragmentation, warehouse-in-critical-path and Avro-transcoding trade-offs of the SQL driver. Request payloads and bind variables have size limits, and endpoint rate limits apply at high submission frequency.

Performance & cost: Similar latency and throughput to database/sql without session setup overhead. Identical credit cost profile: the SQL REST API endpoint is free, and the Virtual Warehouse drives the bill.

Ownership: You operate integrate-sf-sql-api · Snowflake operates Virtual Warehouse.

SQL REST APIHTTPSKey-Pair JWTMERGE
03. Internal Stage (PUT) + COPY INTO / Snowpipe
integrate-sf-stage

Uploads each Avro block unchanged as a deterministic .avro file into a Snowflake Internal Named or Table Stage (@<schema>.<stage>) via presigned stage PUT, then triggers a periodic COPY INTO (or leaves loading to a scheduled Task or Snowpipe).

Architecture diagram: Aestus CDC integrate-sf-stage agent uploading native .avro files to a Snowflake Internal Stage, loaded by COPY INTO or Snowpipe into a Snowflake Table

Pros: Zero transcoding: native Avro is stored and parsed directly (TYPE = AVRO with MATCH_BY_COLUMN_NAME or VARIANT). Uploads need no running warehouse so files accumulate safely while compute is suspended, using only a Snowflake login—no customer cloud IAM setup required.

Trade-offs: End-to-end latency equals the COPY INTO or Task schedule (typically minutes). Small unbuffered blocks create small staged files, and files reside inside Snowflake-managed stage storage rather than your own open cloud bucket.

Performance & cost: Loads thousands of staged Avro files in seconds to minutes. Low credit cost because the warehouse or Task runs only for the duration of each scheduled COPY INTO.

Ownership: You operate integrate-sf-stage, COPY INTO / Task schedule · Snowflake operates Internal Stage, Virtual Warehouse / Snowpipe.

Avro Pass-ThroughInternal StagePUTCOPY INTO
04. Object Storage + External Stage + Snowpipe / Dynamic Tables (AWS, Azure, GCP)
integrate-aws-objectstoreintegrate-az-objectstoreintegrate-gcp-objectstore

Dedicated single-cloud objectstore agents—integrate-aws-objectstore for AWS S3 & S3-compatible stores (s3://), integrate-az-objectstore for Azure Blob Storage & ADLS Gen2 (abfss://, wasbs://, az://), and integrate-gcp-objectstore for Google Cloud Storage (gs://), plus integrate-fs-objectstore for local staging (file:///)—write Hive-partitioned (dt=YYYY-MM-DD/hour=HH/) Avro OCF (.avro), Parquet (.parquet), JSON (.json), XML (.xml), or CSV (.csv) batches. A Snowflake External Stage + Snowpipe (AUTO_INGEST = TRUE) or scheduled COPY INTO loads new files, and a Dynamic Table or Stream + Task applies _ae_version upserts and deletes.

Architecture diagram: Aestus CDC integrate-{aws,az,gcp}-objectstore agent writing native .avro files to Cloud Object Storage (S3, ADLS Gen2, GCS), ingested by Snowflake External Stage, Snowpipe and Dynamic Tables

Pros: Most decoupled and lightweight: each variant is compiled for a single cloud SDK, needs only bucket/container credentials, and never talks to Snowflake—so account maintenance or warehouse suspension never slows the flow. Zero transcoding keeps raw Avro in your bucket as a permanent, replayable bronze layer.

Trade-offs: More moving parts to provision once (bucket, Snowflake Storage Integration & External Stage, S3/Event Grid/PubSub notifications for AUTO_INGEST, and a Dynamic Table or Stream + Task for upserts/deletes). Small blocks should be buffered into tens of MB to minimize per-file Snowpipe overhead.

Performance & cost: Highest throughput ceiling (GB/s to TB/day) and lowest credit cost per GB. Latency vs. cost is a configuration knob: run scheduled COPY INTO + Tasks on an X-Small warehouse, or run Snowpipe + Dynamic Tables with a 1-minute target lag.

Ownership: You operate integrate-aws-objectstore | integrate-az-objectstore | integrate-gcp-objectstore, bucket, IAM · Snowflake operates External Stage, Snowpipe, Dynamic Tables / Streams & Tasks.

Recommended DefaultAvro Pass-ThroughAWS S3 (s3://)Azure ADLS Gen2 (abfss://)GCP GCS (gs://)SnowpipeDynamic Tables
05. Kafka / Event Hubs + Snowflake Connector for Kafka
integrate-sf-kafka

Publishes each change as a keyed Avro binary message (ordered by group key) to Kafka, Confluent, MSK, Redpanda, Azure Event Hubs or GCP Managed Kafka. The Snowflake Connector for Kafka (using Snowpipe Streaming and schematization) reads the topic, decodes Avro via Schema Registry, and streams rows into Snowflake.

Architecture diagram: Aestus CDC integrate-sf-kafka agent publishing keyed Avro messages to Kafka or Azure Event Hubs, consumed by Snowflake Connector for Kafka via Snowpipe Streaming

Pros: Seconds of latency and very high throughput with topic retention, back-pressure and replay. Enables fan-out so non-Snowflake consumers read the same stream, integrates with Confluent Schema Registry, and decouples the Aestus agent from Snowflake availability.

Trade-offs: Requires operating or paying for an external Kafka / Event Hubs broker plus Kafka Connect workers running the Snowflake connector. Lands change records append-only, so a Dynamic Table or Stream + Task is needed to deduplicate and apply _ae_version upserts and deletes.

Performance & cost: Scales to millions of messages/s across partitions with second-level latency. Low serverless Snowpipe Streaming credit cost inside Snowflake, plus external broker and Kafka Connect infrastructure cost.

Ownership: You operate integrate-sf-kafka, Kafka / Event Hubs broker, Kafka Connect · Snowflake operates Snowpipe Streaming ingest & Dynamic Table / Task.

Native AvroKafka / Event HubsSchema RegistryFan-OutSnowpipe Streaming
06. Snowpipe Streaming API
integrate-sf-snowpipe-streaming

Streams ordered row batches directly into Snowflake table channels over the Snowpipe Streaming API with client-managed offset tokens—with no Virtual Warehouse, internal/external stage, bucket or message broker in between.

Architecture diagram: Aestus CDC integrate-sf-snowpipe-streaming agent pushing ordered rowsets with offset tokens directly into Snowflake serverless Snowpipe Streaming channels and tables

Pros: Simplest topology and lowest latency among warehouse-free options: rows are queryable in Snowflake within seconds (~1 s flush cadence). Ordered channels with durable offset tokens map 1:1 to Aestus broker checkpoints for exact recovery, with usage-based serverless credit billing (idle flows cost nothing).

Trade-offs: Snowflake-proprietary streaming protocol with no local server emulator. Does not accept raw Avro files (transcodes batches into rowset buffers) and writes append-only (pair with a Dynamic Table or Task for _ae_version merges).

Performance & cost: Tens of MB/s per channel (scale out across partitions and agent replicas) with sub-5-second latency. Low, usage-based serverless credit cost tied to active channels and ingested volume rather than running warehouses.

Ownership: You operate integrate-sf-snowpipe-streaming · Snowflake operates Snowpipe Streaming serverless ingest service.

Lowest LatencyZero WarehouseChannel Offset TokensServerless Ingest
07. Apache Iceberg Tables on Object Storage
integrate-sf-iceberg

Decodes each Avro batch in Go, writes Parquet data files and equality-delete files with Apache Iceberg manifests to your cloud bucket (s3://, abfss://, gs://), and commits table snapshots via an Iceberg REST Catalog (Snowflake Open Catalog / Polaris) or External Volume metadata refresh.

Architecture diagram: Aestus CDC integrate-sf-iceberg agent writing Parquet data and delete files to Cloud Object Storage and committing snapshots to Open Catalog / Polaris, queried by Snowflake as an Iceberg Table

Pros: Zero vendor lock-in and zero Snowflake compute spent on ingestion or file parsing: Snowflake queries the open Apache Iceberg table directly in place alongside Spark, Trino, DuckDB or Databricks. Preserves full schema evolution and snapshot time travel in your own bucket.

Trade-offs: Requires managing an Iceberg catalog (Open Catalog / Polaris, AWS Glue, or object-storage metadata) plus background compaction of small Parquet and equality-delete files so read queries stay fast. Avro blocks are transcoded to Parquet in the agent.

Performance & cost: High batch throughput with minimal Snowflake credit burn—Snowflake only refreshes catalog metadata on commit and uses warehouse credits when queries actually read the table.

Ownership: You operate integrate-sf-iceberg, bucket, Iceberg catalog & compaction · Snowflake operates External Volume, Catalog Integration & query engine.

Apache IcebergOpen Catalog / PolarisParquetZero Ingest Compute

How It Stays Correct & Cost-Effective

Cross-cutting guarantees shared by every Snowflake integrate agent in Aestus CDC.

Avro Native on the Wire

Aestus already carries change batches as self-describing, compressed Avro (timestamp-micros, exact decimals, embedded writer schema). The stage and objectstore agents forward those bytes unchanged as .avro files; kafka emits binary Avro per message; direct and Iceberg writers decode the typed contract at the edge.

Batching & Micro-Partition Control

Small, frequent DML statements fragment Snowflake micro-partitions and prevent Virtual Warehouse auto-suspend. Aestus buffers blocks by row count, byte size or time window before writing files or committing MERGE statements, keeping direct writers well under one commit per second per table.

Idempotent Writes & Version Guards

Every agent advances its broker checkpoint only after target acknowledgement. SQL agents guard rows with _ae_version and _ae_tombstones; file agents use deterministic tx-<firstSeq>-<lastSeq>.avro names with COPY INTO file tracking; Snowpipe Streaming binds channel offset tokens to broker sequences.

Least-Privilege Secrets & Recapture

Each agent runs in its own container with credentials injected from runtime secrets (Podman, Docker, or Kubernetes Secrets): RSA key-pair JWTs or OAuth service principals for Snowflake endpoints, or bucket/broker-only keys for objectstore and kafka that never touch the Snowflake account. Failed rows trigger automatic source recapture.

Explore All Sources & Targets

Want to benchmark these agents against your Snowflake workload? Write to [email protected].