Cloud · Airflow · MongoDB · Batch record

MongoDB migration from AWS to GCP

An end-to-end Airflow pipeline moved MongoDB data from AWS to GCP for analytical use, driven by config and an audit table.

MongoDB AWS → GCP · config-driven ACCEPTED

Challenge faced by client

The challenge

MongoDB data sat on AWS while the analytics environment was on GCP. Analysts needed the data in GCP, through a repeatable process rather than one-off copies.

What I built

How it works

An end-to-end Airflow pipeline extracts each MongoDB collection on AWS and moves it into MongoDB on GCP. The pipeline is config-driven with an audit table, so each collection is onboarded by a config row, not new code.

  • MongoDB
  • AWS
  • GCP
  • Apache Airflow

Pipeline

Follow the batch

  1. Extract from AWSCollections are read from MongoDB on AWS, as set in the config.
  2. Orchestrate in AirflowEach collection runs as a tracked, repeatable task.
  3. Move to GCPData is written into MongoDB on GCP.
  4. Audit each runEvery run is recorded in the audit table.

Stages describe the process. Sample data only.

Impact

Outcome & effort reduced

80%less pipeline build time with metadata-driven ingestion (benchmark: 36 hours down to 8)
85%faster onboarding of new sources (benchmark: 30–45 days down to 4–7)
1 rowin the config table per collection, with no code change

MongoDB data reaches GCP through one repeatable pipeline, and every run leaves a record in the audit table.

Benchmark sources

Benchmarks are vendor-reported results for similar pipelines, not measured results from this engagement.