> For the complete documentation index, see [llms.txt](https://docs.akenza.io/akenza.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.akenza.io/akenza.io/get-started/your-data-flow/connectors/streaming/google-cloud-pub-sub.md).

# Google Cloud Pub/Sub

The **Google Cloud Pub/Sub connector** can be used to forward data to [Google Cloud Pub/Sub](https://cloud.google.com/pubsub/docs/overview). It can be applied to process device data with Google Cloud Pub/Sub and use it further in the Google ecosystem. The Google Cloud Pub/Sub connector is available on both **Data Flow** and **Rule Engine**.

Cloud Pub/Sub is a fully managed, real-time messaging service that allows to asynchronously send and receive messages between independent applications.&#x20;

In order to send data to Google Cloud Pub/Sub, you first need to setup a Pub/Sub Topic and assign the Pub/Sub Publisher role to the akenza service account `akenza-publisher@akenza-connectors.iam.gserviceaccount.com`.

{% hint style="info" %}
Optionally: The custom payload can be selected for making use of templated payload in the desired structure. If the custom payload is not selected, the whole data sample will be forwarded.
{% endhint %}

A tutorial on "How to send data to Google Cloud Pub/Sub" can be found [here](/akenza.io/tutorials/create-enterprise-solutions/how-to-send-data-to-the-google-cloud-pub-sub.md).&#x20;

![Google Cloud Pub/Sub template](/files/yj1NdjAaVWlvimfDarfR)

### Additional Resources

* Forward data to Big Query by [using a Big Query subscription](https://docs.cloud.google.com/pubsub/docs/bigquery)
* Forward data to Big Query by [using a GCP DataFlow](https://docs.cloud.google.com/dataflow/docs/tutorials/dataflow-stream-to-bigquery)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.akenza.io/akenza.io/get-started/your-data-flow/connectors/streaming/google-cloud-pub-sub.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
