> For the complete documentation index, see [llms.txt](https://docs.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/device-management/your-data-flow/connectors/streaming/google-cloud-pub-sub.md).

# Google Cloud Pub/Sub

Process data in the Google ecosystem

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.

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](/tutorials/create-enterprise-solutions/how-to-send-data-to-the-google-cloud-pub-sub.md).

![Google Cloud Pub/Sub template](https://2165942204-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MMKXTFIN5ZlLOjBlfC4%2Fuploads%2FskfDpOF74tb8Ylk5WdWY%2Fscreely-1685092542714.png?alt=media\&token=0b2dc517-c3a7-4bb5-85b6-c750645c43a6)

### 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.akenza.io/device-management/your-data-flow/connectors/streaming/google-cloud-pub-sub.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
