PubSub
Overview
The Airbyte Google PubSub destination allows you to send/stream data into PubSub. Pub/Sub is an asynchronous messaging service provided by Google Cloud Provider.
Prerequisites
- For Airbyte Open Source users using the Postgres source connector, upgrade your Airbyte platform to version
v0.40.0-alpha
or newer and upgrade your PubSub connector to version0.1.6
or newer
Sync overview
Output schema
Each stream will be output a PubSubMessage with attributes. The message attributes will be
_stream
: the name of stream where the data is coming from_namespace
: namespace if available from the stream
The data will be a serialized JSON, containing the following fields
_airbyte_ab_id
: a uuid string assigned by Airbyte to each event that is processed._airbyte_emitted_at
: a long timestamp(ms) representing when the event was pulled from the data source._airbyte_data
: a json string representing source data.
Features
Feature | Supported?(Yes/No) | Notes |
---|---|---|
Full Refresh Sync | Yes | |
Incremental - Append Sync | Yes | |
Incremental - Append + Deduped | No | |
Namespaces | Yes |
Getting started
Requirements
To use the PubSub destination, you'll need:
- A Google Cloud Project with PubSub enabled
- A PubSub Topic to which Airbyte can stream/sync your data
- A Google Cloud Service Account with the
Pub/Sub Editor
role in your GCP project - A Service Account Key to authenticate into your Service Account
See the setup guide for more information about how to create the required resources.
Setup guide
Google cloud project
If you have a Google Cloud Project with PubSub enabled, skip to the "Create a Topic" section.
First, follow along the Google Cloud instructions to Create a Project. PubSub is enabled automatically in new projects. If this is not the case for your project, find it in Marketplace and enable.
PubSub topic for Airbyte syncs
Airbyte needs a topic in PubSub to write the data being streamed/synced from your data sources. If you already have a Topic into which Airbyte should stream/sync data, skip this section. Otherwise, follow the Google Cloud guide for Creating a PubSub Topic to achieve this.