Skip to content

CDC: MongoDB to BigQuery | Real-Time Replication Guide

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

Source: MongoDB. Destination: BigQuery.

CDC apply: MERGE DML.

Sample config

yaml
skippr:
  workspace: cdc_mongodb_to_bigquery
pipelines:
  cdc_mongodb_to_bigquery:
    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:
    Bigquery:
      project: my-gcp-project
      dataset: raw_data
      location: US

Environment

bash
export GOOGLE_APPLICATION_CREDENTIALS="/path/to/service-account.json"

Source connector: mongodb. Destination connector: bigquery.

See CDC overview.