← Back to GCP Cloud SQL to Iceberg Lakehouse Product Page

GCP Cloud SQL to Iceberg Lakehouse vs. Google Cloud Datastream: Architectural & Cost Comparison

Published: June 16, 2026Author: Avocado Datalake TeamCategory: Apache Iceberg / GCP Architecture

When building a modern lakehouse on Google Cloud, selecting the right ingestion tool is a critical architectural decision. Google Cloud Datastream is GCP's native serverless Change Data Capture (CDC) service, designed for continuous streaming. On the other side is our JDBC-to-Iceberg Spark pipeline, an orchestrator-driven, highly configurable, and cost-efficient alternative. This post compares their architecture, features, and pricing structures to help you choose the best fit for your organizational needs.

1. Architectural Comparison Matrix

Below is a side-by-side comparison of the core features and parameters of our custom Spark pipeline vs. Google Cloud Datastream:

Feature CategoryGoogle Cloud DatastreamJDBC-to-Iceberg Spark Pipeline
Compute ModelContinuous Serverless CDC replication streams. Runs 24/7.Ephemeral Compute (runs on Dataproc Serverless or GKE only during ingestion window).
Ingestion MechanismLog-based Change Data Capture (reading binlogs / transaction logs).Query-based incremental reads using configured bookmarks (extract.incremental-field) and query parallelism.
Read ParallelismDetermined automatically by Datastream scaling limits.Highly Configurable via extract.jdbc.num-partitions and boundary detection.
Target Storage FormatsGCS (JSON/Avro) or BigQuery. External tooling required to merge into Lakehouse formats.Native Apache Iceberg, Hudi, or Delta Lake tables with direct MERGE INTO upserts.
Transformation PipelineLightweight inline transforms (e.g., column renaming, type casting).Fully Configurable Spark FStage transformation DSL for complex projections, hashing, and masking.
Orchestration & DeployManaged GCP console service with built-in scheduling and continuous streams.Fully orchestrator-agnostic (run on Airflow, Prefect, or Dagster) via YAML profiles and Livy operator.
Query Safety ControlN/A (continuous read stream has minimal OLTP locks).Configurable extract.jdbc.query-timeout to abort runaway queries on production databases.

Google Cloud Datastream Pricing Explained

Understanding Google Cloud Datastream pricing requires examining how Google charges for continuous Change Data Capture (CDC). Unlike traditional database replication solutions that bill by VM or core capacity, Datastream follows a usage-based consumption model.

Datastream Pricing ComponentStandard RateBilling Model & Details
CDC Data Replication (Streaming)$2.00 / GBBilled per gigabyte of change data captured from MySQL, PostgreSQL, Oracle, or SQL Server.
Historical Backfill Ingestion$0.40 – $0.50 / GBDiscounted initial snapshot load volume when bootstrapping historical database tables into GCS/BigQuery.
Network Egress & ConnectivityStandard GCP EgressInter-region or internet data transfer charges apply if source database and target lakehouse reside in different zones.
Destination Storage & MergingGCS ($0.020/GB) + BigQuery ($0.020/GB)Intermediate raw change event files stored before downstream merge into Lakehouse tables.

2. Pricing & Ingestion Cost Analysis

GCP Datastream charging is based on the volume of data processed ($2.00 per GB for CDC writes) and connection profile billing. This continuous compute consumption creates high baselines, even when data updates are small or intermittent.

Our Spark pipeline operates on ephemeral, scheduled intervals. Combined with database checkpointing (extract.incremental-field, extract.max-batch-interval, and extract.keep-checkpoints), the pipeline will pick up exactly where it left off, avoiding duplicate processing and reducing active Spark workloads.

Datastream Cost Example (100 GB/month)

Consider a typical production database streaming ~3.3 GB of changes daily (100 GB total monthly CDC replication volume):

Cost ComponentGoogle Cloud DatastreamJDBC-to-Iceberg Spark Pipeline
Data Processing Cost$2.00 / GB x 100 GB = $200.00 / monthFree (data volume processing is not billed directly)
Compute Execution CostIncluded in volume pricingDataproc Serverless execution (4 DCUs x 3 mins x 24 hourly runs = ~4.8 DCU-hrs/day)
4.8 x $0.06 x 30 days = $8.64 / month
Additional Storage MergingRequires secondary Dataflow/Spark merge jobs to convert raw Avro/JSON to Iceberg format ($80+ / month)Included natively in the Spark pipeline load phase (no secondary merge needed)
Total Monthly Cost$280.00+$8.64 97% Savings

* Note: Datastream prices are estimated based on standard GCP retail pricing. Spark pipeline compute is calculated based on Dataproc Serverless hourly rates.

Dataplex Premium Processing Pricing

When operating an enterprise lakehouse on GCP, teams frequently evaluate Dataplex premium processing for data governance, metadata enrichment, automated data profiling, and data quality scans.

Dataplex FeaturePricing StructureCost Optimization Alternative
Dataplex Premium Processing$0.08 per GB scanned for data quality & profilingRun open-source Great Expectations or Deequ checks directly within the Dataproc Serverless Spark stage at zero license cost.
Data Lineage APIStandard API calls ($10 per 100k calls after free tier)Native OpenLineage integration supported directly in Spark Iceberg catalog listeners.

3. Deciding Between the Two Pipelines

Depending on your organization's latency demands and analytics capabilities, each approach offers distinct advantages:

Spark JDBC-to-Iceberg Pipeline

  • Extreme Cost Savings: Ephemeral scheduling prevents idle-compute billing.
  • Native Lakehouse Format: Writes directly to Apache Iceberg with native MERGE/upsert logic, bypassing intermediate conversion jobs.
  • Fully Configurable ETL: Inject arbitrary Spark transformations (masking, schema conversion, column additions) using our composition DSL.
  • Secure Credentials: Uses GCP Secret Manager to handle secure connections.
  • Ingestion Latency: Restricted to batch or micro-batch schedules (e.g. hourly, daily) rather than continuous sub-second streaming.

Google Cloud Datastream

  • Near-Real-Time Latency: Continuous database replication to GCS or BigQuery with sub-second latency.
  • Zero Ingestion Locks: Log-based CDC eliminates query loads on the source database.
  • Automated Schema Drift: Replicates new source table columns automatically without updates.
  • Significant Processing Costs: High volumetric processing pricing ($2.00/GB) builds up high monthly bills.
  • Format Limits: Writes raw files, meaning you must write and orchestrate secondary merge jobs to sync data into Iceberg/Lakehouse tables.

Frequently Asked Questions (FAQ)

How much does Google Cloud Datastream cost?

Google Cloud Datastream charges $2.00 per GB for CDC writes. Historical backfills are billed at approximately $0.40–$0.50/GB. For a database with 100 GB of monthly change data, Datastream processing costs around $200/month plus downstream storage.

Is Google Cloud Datastream free?

No, Datastream has no permanent free tier. Charges begin as soon as change data capture streams replicate events. You can use standard Google Cloud trial credits ($300 for new accounts) toward initial testing.

What is Dataplex premium processing pricing?

Dataplex Premium Processing costs $0.08 per GB scanned for data quality checks, profiling, and metadata harvesting. Using open-source data quality tools like Great Expectations on Spark avoids these recurring scan fees.

When should I use Iceberg Lakehouse instead of Google Cloud Datastream?

Use our custom JDBC-to-Iceberg Spark pipeline when your analytics teams need scheduled batch or micro-batch updates (e.g. hourly or daily), direct ACID table format writing, and dramatic cost savings (up to 98% less than Datastream).

Summary

If your AI/ML, BI, and analytical teams require low-latency ingestion, but do not need sub-second streaming, scheduling our JDBC-to-Iceberg Spark pipeline hourly or daily is the ideal design. It eliminates the overhead and cost of continuous replication engines, integrates natively with Apache Iceberg formatting, and can be orchestrated seamlessly under any workflow coordinator like Apache Airflow.

Also compare storage formats and querying options in our detailed guide: Apache Iceberg vs BigQuery: GCS Files to Iceberg vs BigQuery Managed Iceberg.

Learn more about GCP Cloud SQL to Iceberg Lakehouse Pipeline configurations