Skip to main content
XenonStack

Enterprise Data Management

XenonStack Insights Google Cloud Real-Time Analytics: Services Guide

and | Published | Updated

Google Cloud Real-Time Analytics: Services Guide
13:58
Featured image titled Google Cloud real-time analytics, with a stack from Pub/Sub ingestion through Dataflow and Datastream to BigQuery and Looker and decisions

Key takeaway

  • Google Cloud real-time analytics: how Pub/Sub, Dataflow, BigQuery and Datastream fit together, what is renamed or retired, and how to adopt them.

Real-time analytics on Google Cloud usually means Pub/Sub to ingest events, Dataflow to process them, and BigQuery to store and query the results, with Datastream for database changes and Looker to explore the output. According to its docs, Pub/Sub delivers messages with latencies "typically on the order of 100 milliseconds", and rows written to BigQuery through the default stream of the Storage Write API are available for query immediately.

Several names and statuses have changed. Pub/Sub Lite is being turned down, Dataproc is now Managed Service for Apache Spark, and Vertex AI Workbench is now Gemini Enterprise Agent Platform Workbench. This guide explains what each service does, how to choose between them, what to check on cost and governance, and how to adopt them in order. For the vendor-neutral layers behind any stack, read our real-time analytics architecture guide.

Which Google Cloud services are used for real-time analytics?

Each service has one job in the pipeline. The table below lists the role, when it fits and what the Google Cloud docs say about its current status.

ServiceWhat it doesWhen it fitsCurrent status
Pub/SubIngests and distributes events between producers and consumersMany producers and consumers need to be decoupled; subscribers may pull, receive pushes or export straight to BigQuery or Cloud StorageCurrent. Pub/Sub Lite is separate and is being turned down (see below)
DataflowProcesses streams and batches with one programming model, built on Apache BeamYou need windowing, enrichment or aggregation across messages before storageCurrent. Exactly-once processing is the default; an at-least-once mode is available
BigQueryStores and queries streamed data; the Storage Write API (gRPC) is the recommended way to stream inSQL analysis on fresh data at scaleCurrent. The legacy tabledata.insertAll method is now documented as the Storage Write API (REST)
DatastreamServerless change data capture and replication from databases into BigQuery or Cloud StorageYou need operational data in BigQuery without writing replication codeCurrent. Salesforce is generally available; four other application sources are in Preview
Managed Service for Apache KafkaRuns open source Apache Kafka clustersYou already run Kafka and want to keep your client codeCurrent. The schema registry is labelled Preview
Managed Service for Apache Spark (formerly Dataproc on Compute Engine)Runs Spark and other open source tools on clustersYou have existing Spark jobs to move or keepRenamed. Check the docs for the name used in your console
Cloud Data FusionBuilds batch and real-time pipelines in a web interfaceAnalysts and engineers want a low-code pipeline builderCurrent. Runs pipelines on Managed Service for Apache Spark
LookerExplores, shares and visualises data; LookML describes your SQL dataBusiness users need governed dashboards on BigQueryCurrent. Looker (original) and Looker (Google Cloud core) both exist
Gemini Enterprise Agent Platform Workbench (formerly Vertex AI Workbench)Jupyter notebook environments for data science workYou develop anomaly detection or prediction models on the streamed dataRenamed. Google lists the change on its Vertex AI name changes page

Sources: Pub/Sub overview, Dataflow overview, BigQuery streaming, Datastream overview, Managed Service for Apache Kafka, Dataproc overview, Data Fusion overview, Looker intro and Vertex AI name changes. Read in November 2026; confirm on each page before you build.

How does data move from an event to a dashboard?

A typical path has four steps. Producers publish events to a Pub/Sub topic. A subscription either exports them directly to BigQuery or hands them to a Dataflow pipeline that transforms them. BigQuery holds the result and answers SQL queries. Looker or another tool reads from BigQuery. Datastream joins at the side: it replicates changes from databases such as MySQL, PostgreSQL, Oracle and SQL Server into BigQuery, so operational data and event data can be queried together.

Two-column diagram mapping pipeline stages (ingest, capture changes, transform, store and explore) to Pub/Sub, Datastream, Dataflow, and BigQuery with Looker

Teams that already run Apache Kafka can keep it through Google Cloud's Managed Service for Apache Kafka, which has built-in Kafka Connect connectors for BigQuery, Cloud Storage and Pub/Sub. Our guide to real-time streaming with Apache Spark and Kafka covers that pattern in more depth.

Should you use a BigQuery subscription, Dataflow or the Storage Write API?

All three can land streaming data in BigQuery. The choice depends on how much processing the data needs and what delivery guarantee you require.

OptionChoose it whenTrade-off from the docs
Pub/Sub BigQuery subscriptionMessages need no extra processing and volumes are highDelivery is at least once, so you may need to remove duplicates downstream. Messages with improperly formatted fields are not written
Dataflow pipelineYou need windowing, aggregation across messages or complex transformationMore to run and tune; Google recommends it where complex transformation is required
Storage Write API (gRPC) from your own applicationYou control the producer and want the recommended ingestion pathThe default stream is at-least-once. Exactly-once needs a committed-type stream with client-provided offsets

Pub/Sub also offers exactly-once delivery, but only on pull subscriptions, only when subscribers connect in the same region, and publish-side duplicates can still reach a subscription. Treat it as one control among several, not a reason to skip deduplication design. Sources: BigQuery subscriptions, exactly-once delivery and Storage Write API.

What has changed or been retired?

ItemCurrent positionSource
Pub/Sub LiteTurned down effective 31 January 2027; not available to new customers after 24 September 2024. Google recommends Pub/Sub or Managed Service for Apache KafkaPub/Sub Lite deprecation notice
tabledata.insertAll streamingNow documented as the Storage Write API (REST). For new projects Google says to use the Storage Write API (gRPC)BigQuery streaming docs
DataprocCluster deployment is now Managed Service for Apache Spark on clustersDataproc docs
Vertex AI WorkbenchNow Gemini Enterprise Agent Platform WorkbenchName changes page
BigQuery continuous queriesSQL that runs continuously on incoming data; stateful operations such as joins and windowing are labelled PreviewContinuous queries docs

What does a real deployment look like?

Google Cloud published a case study on Renault on 26 August 2021. Renault launched its Industry Data Management 4.0 programme to bring existing industrial data initiatives into one platform, using data from up to 40 sites. According to that article, an earlier design built on Apache Spark on Dataproc and Spanner was redesigned around Dataflow (Apache Beam) and BigQuery. As of Q1 2021 the platform connected more than 4,900 industrial appliances and received more than 1 billion messages per day.

One lesson applies widely. The article describes a Spark cluster polling the filesystem every few tens of milliseconds, which did not suit hourly or daily batch flows; changing a polling setting cut Cloud Storage calls. Match the processing style to the freshness the business needs. Source: Google Cloud blog, Renault and BigQuery. The figures are from 2021 and are not a current benchmark.

What should you check on cost, security and governance?

  • Cost. Dataflow's docs say its at-least-once mode can reduce cost and improve latency for pipelines that tolerate duplicates. The Storage Write API docs say the gRPC version has lower ingestion pricing than the REST version. Check current prices on the Google Cloud pricing pages.
  • Throughput and quotas. The Storage Write API docs say a single connection generally supports at least 1 MBps, and application-created streams allow one active connection. Plan connections and check quotas before launch.
  • Failure handling. Attach a dead-letter topic to subscriptions so messages that keep failing can be inspected rather than lost.
  • Decisions on live data. When people or AI agents act on streaming results, record which data, policy and approval led to each action. ElixirData keeps governed context, versioned policy and decision traces in one decision layer above AI agents.
  • Asking questions in plain language. AgentAnalyst lets teams ask questions of enterprise data in plain language and get real-time insights.

BigQuery continuous queries can also trigger downstream applications through Pub/Sub and start agentic pipelines on live events, according to the Google Cloud docs. That makes the policy and audit questions above practical, not theoretical.

In what order should you adopt these services?

  1. Define the decision that needs fresh data and the freshness it needs, in seconds or minutes.
  2. Land events in BigQuery with a Pub/Sub BigQuery subscription or the Storage Write API, and measure before adding more.
  3. Add Dataflow only where windowing, enrichment or aggregation is needed.
  4. Add Datastream for operational databases whose changes you need in BigQuery.
  5. Put Looker or another tool on top for the people who read the results.
  6. Add models and agents last, with logging of the data, policy and approval behind each action.

When is real-time analytics not the right answer?

If decisions are made daily or hourly, a scheduled batch load is simpler and cheaper to run. Streaming adds operating cost, duplicate handling and monitoring. Choose it where a delay changes the outcome, such as fraud checks, equipment alerts or inventory positions. For examples by industry, see our real-time analytics use cases, and for wider context what real-time intelligence is and time-series databases for real-time analytics.

Our real-time analytics services page describes how XenonStack helps teams design and run these pipelines.

To map one real-time decision your agents should make, and the context and policy it depends on, book a Context Workshop. See what happens in the workshop.

Frequently asked questions

What is the difference between Pub/Sub and Dataflow?

Pub/Sub is a messaging service that decouples the services producing messages from those processing them. Dataflow is a managed service for unified stream and batch processing, built on Apache Beam. Pub/Sub moves events; Dataflow transforms them.

Do I need Dataflow to get Pub/Sub data into BigQuery?

Not always. A Pub/Sub BigQuery subscription writes messages to a table without a separate subscriber, and Google's docs say the overhead of a Dataflow job is not necessary when messages need no extra processing. Dataflow is recommended for more complex transformation, such as windowing or aggregating across messages.

Is Pub/Sub Lite still available?

Pub/Sub Lite is being turned down effective 31 January 2027 and has not been available to new customers since 24 September 2024. Google recommends migrating to Pub/Sub or Managed Service for Apache Kafka.

Does Pub/Sub guarantee exactly-once delivery?

Only on pull subscriptions, and only when subscribers connect in the same region. Push and export subscriptions do not support it, and a BigQuery subscription supports at-least-once delivery only, so plan for deduplication.

What is the recommended way to stream rows into BigQuery?

For new projects, Google's docs say to use the BigQuery Storage Write API (gRPC). Its default stream makes rows available for query immediately with at-least-once semantics; exactly-once needs a committed-type stream with client-provided offsets.

Ready to put AI agents to work? See an ElixirClaw demo: the agentic OS to build, orchestrate and govern AI agents across your enterprise systems.

Table of Contents

navdeep-singh-gill

Navdeep Singh Gill

Global CEO and Founder of XenonStack

LinkedIn profile

Navdeep Singh Gill is serving as Chief Executive Officer and Product Architect at XenonStack. He holds expertise in building SaaS Platform for Decentralised Big Data management and Governance, AI Marketplace for Operationalising and Scaling. His incredible experience in AI Technologies and Big Data Engineering thrills him to write about different use cases and its approach to solutions.

Get the latest articles in your inbox

Subscribe Now

Interested in solving your challenges with the XenonStack team?
Get Started

Tell us about you and your priorities so we can prepare the right conversation. It takes about 2 minutes.

Please Select your Industry
Banking
Fintech
Payment Providers
Wealth Management
Discrete Manufacturing
Semiconductor
Machinery Manufacturing / Automation
Appliances / Electrical / Electronics
Elevator Manufacturing
Defense & Space Manufacturing
Computers & Electronics / Industrial Machinery
Motor Vehicle Manufacturing
Food and Beverages
Distillery & Wines
Beverages
Shipping
Logistics
Mobility (EV / Public Transport)
Energy & Utilities
Hospitality
Digital Gaming Platforms
SportsTech with AI
Public Safety - Explosives
Public Safety - Firefighting
Public Safety - Surveillance
Public Safety - Others
Media Platforms
City Operations
Airlines & Aviation
Defense Warfare & Drones
Robotics Engineering
Drones Manufacturing
AI Labs for Colleges
AI MSP / Quantum / AGI Institutes
Retail Apparel and Fashion

Continue