Skip to content

CDC: MongoDB to Snowflake | Real-Time Replication Guide

Real-time Change Data Capture from MongoDB to Snowflake with exactly-once delivery, order-token guards, and tombstone anti-resurrect protection.

Source: MongoDB. Destination: Snowflake.

CDC apply: MERGE DML.

Sample config

yaml
skippr:
  workspace: cdc_mongodb_to_snowflake
pipelines:
  cdc_mongodb_to_snowflake:
    data_source: data_sources.source
    data_sink: data_sinks.warehouse
    cdc:
      default:
        business_key_columns:
          - id
data_sources:
  source:
    Mongodb:
      connection_string: "mongodb://user:${MONGO_PASSWORD}@host:27017/mydb"
      database: mydb
      collection: events
      cdc_mode: snapshot_then_cdc
data_sinks:
  warehouse:
    Snowflake:
      database: ANALYTICS
      schema: RAW
      warehouse: COMPUTE_WH

Environment

bash
export SNOWFLAKE_ACCOUNT="MYORG-MYACCOUNT"
export SNOWFLAKE_USER="skippr_svc"
export SNOWFLAKE_PRIVATE_KEY_PATH="/path/to/snowflake_key.p8"

Source connector: mongodb. Destination connector: snowflake.

See CDC overview.