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.
| Service | What it does | When it fits | Current status |
|---|---|---|---|
| Pub/Sub | Ingests and distributes events between producers and consumers | Many producers and consumers need to be decoupled; subscribers may pull, receive pushes or export straight to BigQuery or Cloud Storage | Current. Pub/Sub Lite is separate and is being turned down (see below) |
| Dataflow | Processes streams and batches with one programming model, built on Apache Beam | You need windowing, enrichment or aggregation across messages before storage | Current. Exactly-once processing is the default; an at-least-once mode is available |
| BigQuery | Stores and queries streamed data; the Storage Write API (gRPC) is the recommended way to stream in | SQL analysis on fresh data at scale | Current. The legacy tabledata.insertAll method is now documented as the Storage Write API (REST) |
| Datastream | Serverless change data capture and replication from databases into BigQuery or Cloud Storage | You need operational data in BigQuery without writing replication code | Current. Salesforce is generally available; four other application sources are in Preview |
| Managed Service for Apache Kafka | Runs open source Apache Kafka clusters | You already run Kafka and want to keep your client code | Current. The schema registry is labelled Preview |
| Managed Service for Apache Spark (formerly Dataproc on Compute Engine) | Runs Spark and other open source tools on clusters | You have existing Spark jobs to move or keep | Renamed. Check the docs for the name used in your console |
| Cloud Data Fusion | Builds batch and real-time pipelines in a web interface | Analysts and engineers want a low-code pipeline builder | Current. Runs pipelines on Managed Service for Apache Spark |
| Looker | Explores, shares and visualises data; LookML describes your SQL data | Business users need governed dashboards on BigQuery | Current. Looker (original) and Looker (Google Cloud core) both exist |
| Gemini Enterprise Agent Platform Workbench (formerly Vertex AI Workbench) | Jupyter notebook environments for data science work | You develop anomaly detection or prediction models on the streamed data | Renamed. 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.
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.
| Option | Choose it when | Trade-off from the docs |
|---|---|---|
| Pub/Sub BigQuery subscription | Messages need no extra processing and volumes are high | Delivery is at least once, so you may need to remove duplicates downstream. Messages with improperly formatted fields are not written |
| Dataflow pipeline | You need windowing, aggregation across messages or complex transformation | More to run and tune; Google recommends it where complex transformation is required |
| Storage Write API (gRPC) from your own application | You control the producer and want the recommended ingestion path | The 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?
| Item | Current position | Source |
|---|---|---|
| Pub/Sub Lite | Turned down effective 31 January 2027; not available to new customers after 24 September 2024. Google recommends Pub/Sub or Managed Service for Apache Kafka | Pub/Sub Lite deprecation notice |
tabledata.insertAll streaming | Now documented as the Storage Write API (REST). For new projects Google says to use the Storage Write API (gRPC) | BigQuery streaming docs |
| Dataproc | Cluster deployment is now Managed Service for Apache Spark on clusters | Dataproc docs |
| Vertex AI Workbench | Now Gemini Enterprise Agent Platform Workbench | Name changes page |
| BigQuery continuous queries | SQL that runs continuously on incoming data; stateful operations such as joins and windowing are labelled Preview | Continuous 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?
- Define the decision that needs fresh data and the freshness it needs, in seconds or minutes.
- Land events in BigQuery with a Pub/Sub BigQuery subscription or the Storage Write API, and measure before adding more.
- Add Dataflow only where windowing, enrichment or aggregation is needed.
- Add Datastream for operational databases whose changes you need in BigQuery.
- Put Looker or another tool on top for the people who read the results.
- 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.
Explore the XenonStack platform family: ElixirData · ElixirClaw · ElixirHub · NexaStack · MetaSecure · Neural AI · AgentGRC · AgentSRE · AgentAnalyst · AgentInstruct · AgentRAI · AgentScrum · AgentSearch · AgentForce · AI Aviator · SAIF Aviator · CohortIQ · XenonStack AI · XenonStack UAE