Terpli: Redshift to BigQuery Migration

AWS-to-GCP analytics migration that reused proven orchestration and preserved trusted reporting history under tight delivery constraints.

Terpli: Redshift to BigQuery Migration

Time-constrained cloud migration · reuse over rewrite

Context

Terpli needed to move analytics from Redshift to BigQuery with limited engineering capacity.

Reusing the Node.js orchestrator avoided a rewrite. Migrating trusted historical tables preserved continuity with reports already delivered to clients.

Challenge

Replaying raw history risked changing previous reporting results and adding weeks of reconciliation. A full pipeline rewrite exceeded the available capacity.

The migration needed to preserve historical results while processing new data natively on GCP.

Approach

The existing Node.js control flow moved from AWS ECS to Cloud Run Jobs. Redshift SQL was adapted to BigQuery syntax and behavior.

A trusted-table snapshot became the historical baseline. A unified reporting layer combines it with newly processed BigQuery data.

Workflow

  1. 01

    Reuse the orchestrator

    Preserve the existing Node.js pipeline control flow instead of rebuilding it.

  2. 02

    Move the runtime

    Adapt execution from AWS ECS to Cloud Run Jobs on GCP.

  3. 03

    Port the SQL

    Translate Redshift syntax and behavior into BigQuery-compatible scripts.

  4. 04

    Transfer trusted history

    Move the already-processed trusted snapshot rather than replaying raw history.

  5. 05

    Merge old and new

    Expose legacy history and newly processed BigQuery data through one transparent layer.

Terpli Redshift to BigQuery migration strategy showing Node.js orchestrator reuse, ECS to Cloud Run adaptation, trusted snapshot transfer, and merged historical/new data
The migration reused the Node.js orchestrator, ported its runtime and SQL, transferred the trusted historical snapshot, and merged it with newly processed BigQuery data.

Capabilities

  • Reuse of the existing Node.js pipeline orchestrator rather than a time-consuming rewrite.

  • Runtime adaptation from AWS ECS containers to GCP Cloud Run Jobs.

  • Redshift-to-BigQuery SQL dialect and behavior translation while preserving transformation logic.

  • One-time transfer of consolidated trusted history instead of raw-data migration and replay.

  • Unified merged layer combining the legacy trusted snapshot with newly processed BigQuery data.

Results

  • The migration preserved the existing Node.js orchestration codebase and concentrated engineering effort on cloud-runtime/SQL compatibility.

  • Previously reported history was carried forward from the already-processed trusted layer, preserving the baseline that clients had consumed from Redshift.

  • Choosing the trusted snapshot avoided a raw-data replay and a reconciliation effort expected to take several weeks.

  • Downstream dashboards and systems could query legacy history and new GCP-processed data through one BigQuery-facing structure.

Decisions & trade-offs

Trade-offs

  • Rewriting the orchestrator for GCP could produce a cleaner cloud-native design.

    However, would exceed the available time and team capacity.

    Reusing the Node.js control flow traded some legacy constraints for delivery speed and lower migration risk.

  • Reprocessing raw history in BigQuery would rebuild every transformation from source.

    However, could diverge from previously reported results and trigger weeks of reconciliation.

    Transferring the trusted snapshot favored continuity over historical replay.

  • Keeping legacy/new data distinct behind a merged layer added transitional modeling.

    However, preserved provenance and made the complete history transparent to downstream consumers.

Problems solved

  • Moved the pipeline from AWS ECS to Cloud Run without rebuilding its proven orchestration logic.

  • Adapted Redshift-specific SQL into BigQuery-compatible transformations while preserving business rules.

  • Preserved the exact historical reporting baseline without migrating and reprocessing the raw Redshift estate.

  • Exposed legacy history and newly processed data together so new GCP systems retained complete analytical continuity.

Technology

Node.jsAWS ECS/FargateBigQueryCloud Run JobsTerraformGitHub Actions

Let's build something amazing?

We are ready to understand your technical challenge and propose the best architecture. Contact us for an initial consultation without commitment.

OnTimeStack

© 2026 OnTimeStack. All rights reserved.

Let's talk?Privacy Policy
Designed by Sarah Ninsi