Google Cloud · Data Analytics

Dataflow

Managed Apache Beam for batch and streaming data pipelines, with autoscaling workers and exactly-once processing.

On the Google Cloud Associate Cloud Engineer exam listStream processingAutomation

What it is and what problem it solves

Dataflow runs Apache Beam pipelines, written in Java, Python or Go or started from Google-provided templates, for both batch and streaming data. It provisions and autoscales worker VMs, handles windowing, late data and exactly-once processing in streaming jobs, and integrates with Pub/Sub, Cloud Storage, BigQuery and Bigtable.

When to use it

  • Streaming pipelines from Pub/Sub into BigQuery or Bigtable.
  • Large batch transformations and ETL.
  • Pipelines that must run unchanged in batch and streaming.

When to avoid it

  • Simple SQL transformations inside the warehouse: BigQuery scheduled queries or Dataform.
  • Existing Spark or Hadoop jobs: Dataproc.

Cost model

What you pay for

  • Worker vCPU, memory and disk per second.
  • Streaming Engine and Dataflow Shuffle usage.

Where it is cost-efficient

Autoscaled pipelines and FlexRS (cheaper, delayed batch) for non-urgent jobs.

Where costs grow

Streaming jobs left running idle, oversized workers, inefficient transforms.

Cost controls and common surprises

Monitor job metrics, use autoscaling and right-sized machine types, and stop unused streaming jobs.

Prices differ by Region and change over time; see the pricing page linked under Sources.

Security

Controls the service provides

Workers run as a worker service account; private IP workers; CMEK for pipeline state.

What you configure

Use a dedicated worker service account with minimal roles and run workers without public IPs.

Exam cues and common confusions

  • Unified batch and streaming pipelines written with Apache Beam: Dataflow.
  • Stream from Pub/Sub into BigQuery with transformations: Dataflow (often from a Google-provided template).
  • Existing Spark or Hadoop jobs to move as they are: Dataproc.
  • Check a pipeline's progress or errors: review the job status in the Dataflow monitoring interface.

Related

Services, comparisons and patterns

Sources

Independent study material, not affiliated with or endorsed by Google. Google Cloud and service names are trademarks of Google LLC.

Last reviewed · By the ByteCamel team · How we write content

Was this page helpful?

Report a mistake