Google Cloud PubSub Publisher
In this article
- 1 Overview
- 1.1 Snap Type
- 1.2 Limitations
- 1.3 Snap Views
- 2 Snap Settings
- 3 Snap Pack History
Overview
You can use this Snap to publish messages from the input into the Google PubSub for the given topic name. This Snap is supported for both publishing a single message or bulk messages based on the batch size.
Snap Type
The Google PubSub Publisher Snap is a Write type Snap.
Limitations
Publisher creates a default topic, but if you want to create a topic with advanced properties, you must configure that on the Google console.
Snap Views
Type | Format | Number of Views | Examples of Upstream and Downstream Snaps | Description |
|---|---|---|---|---|
Input | Document
|
|
| Each document contains data in the form of json. |
Output | Document |
|
| Each document contains corresponding response in the form of json. |
Error | Error handling is a generic way to handle errors without losing data or failing the Snap execution. You can handle the errors that the Snap might encounter when running the Pipeline by choosing one of the following options from the When errors occur list under the Views tab. The available options are:
Learn more about Error handling in Pipelines. | |||
Snap Settings
Field Name | Field type | Description |
|---|---|---|
Label*
| String | Specify the name for the Snap. You can modify this to be more specific, especially if you have more than one of the same Snap in your pipeline.
|
Topic name*
| String/Expression/Suggestion | Specify the topic to publish to. The property is suggestable and will retrieve available topic names based on the project ID. If the topic name is not found in the PubSub, the snap will create it.
|
Message*
| String/Expression | Specify the text to publish to the Google PubSub system for the selected topic name. Default value: N/A |
Message Properties | Use this field set to configure the keys and value properties for the messages to be published. | |
Key
| String/Expression | Specify the key of the message attribute.
|
Value
| String/Expression | Specify the value for the above-mentioned key attribute.
|
Batch size
| Integer/Expression | Specify the number of documents the Snap will batch before publishing.
|
Snap Execution
| Dropdown list | Select one of the three modes in which the Snap executes. Available options are:
Default Value: Execute only |
Snap Pack History
Related Content