Google PubSub Publisher
In this article
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 Read type Snap.
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*
Default value: Google PubSub Publisher | 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*
Default value: N/A | String/Expression/Suggestion | Specify the topic to publish to. The property is suggestable and will retrieve available topic names based on the project ID. The snap will create the topic if the topic name is not found in the PubSub. |
Create Topic
| Checkbox | Select this checkbox to create a topic if one doesn’t exist. |
Message
Default value: N/A | String/Expression | Specify the text to publish to the Google PubSsub system for the selected topic name.
|
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
Default value: 1 | Integer/Expression | The number of documents the Snap will batch before publishing. The default is 1.
|
Snap Execution
Default Value: Execute only | Dropdown list | Select one of the three modes in which the Snap executes. Available options are:
|
Snap Pack History
Have feedback? Email documentation@snaplogic.com | Ask a question in the SnapLogic Community
© 2017-2025 SnapLogic, Inc.