# Google PubSub

## Introduction to Google PubSub with Couchdrop

Couchdrop supports streaming data directly into Google PubSub through file actions and automations, making it effortless to bridge file-based workflows with event-driven architectures. Instead of writing custom code or maintaining integration middleware, Couchdrop can take files or payloads from virtually any source - cloud storage, SFTP/FTP, APIs, or inbound webhooks - and automatically publish them as messages to your Google PubSub.

Using Couchdrop’s automations with Google PubSub, you can transform traditional file transfers into real-time, event-driven pipelines. &#x20;

<div align="left"><figure><img src="https://391958821-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpokYqd27yrOUxIBhyvbF%2Fuploads%2Fzlf71VgYjTp1vFu6aB4c%2FScreenshot-from-2022-03-03-15-32-26-1024x467.webp?alt=media&#x26;token=4a1918ae-c2f4-42cf-aa0d-c78ee903c8eb" alt=""><figcaption></figcaption></figure></div>

## How Google PubSub works with Couchdrop

Google PubSub are configured in Couchdrop as a platform integration. This type of integration does not appear directly as a [virtual folder](https://docs.couchdrop.io/connections/virtual-folders) as Couchdrop, rather Google PubSub is configured as a connection that you can use in a file action inside an [transfer-automations](https://docs.couchdrop.io/features/transfer-automations "mention") or [file-actions](https://docs.couchdrop.io/features/file-actions "mention").&#x20;

Connecting Couchdrop to a Google PubSub queue is straight-forward

## Requirements

To connect to Google PubSub queue in Couchdrop you will need:

* A Google PubSub account, with a topic created that you want to upload data into
* Information about your table in PubSub topic, such as your project ID and your topic name
* Service credentials JSON file
  * You can create this within the APIs & Services -> Credentials section in Google Admin Console
  * Create a service account, and then create a key for that account, and download the JSON file associated to use within Couchdrop

## Configuration Steps

1. Log in to Couchdrop and add a new system integration
2. Select Google PubSub from the list of available integrations
3. Provide the details above
4. Click **Add System Integration**
