Google Cloud PubSub Subscriber
Overview
You can use this Snap to subscribe or pull messages from a Google PubSub topic using the subscription name. This Snap uses the asynchronous streaming pull API.

- This is a Read-type Snap.
Works in Ultra Tasks
Limitations
You must create subscriptions for the topic on the Google console.
Behavior change
The output of the Subscriber Snap has been updated. Previously, the message properties were displayed in string format; now, they are represented as key-value pairs under Message Attributes.

If the downstream Snap uses Message Attributes for further processing, then you need to reconfigure your pipeline.
Snap views
| Type | Description | Examples of upstream and downstream Snaps |
|---|---|---|
| Input |
Document
|
Each document contains data in the form of JSON.
|
| Output |
Document
|
Each document contains a corresponding JSON response.
|
| Learn more about Error handling. | ||
Snap settings
| Field/Field set | Description |
|---|---|
| Label*
|
Specify a unique name for the Snap. Modify this to be more appropriate, especially if more than one of the same Snaps is in the pipeline. Default value: PubSub Subscriber Example: PubSub Subscriber |
| Subscription name*
|
Specify the subscription name from which messages are to be pulled. The property is suggestable and retrieves available subscription names based on the Project ID from the service account. Default value: N/A Example: my-topic-subscription |
| Messages in buffer*
|
Specify the maximum number of messages in the buffer at a given time until they are acknowledged. The default batch size for each pull request is 1000. If the requested messages in the buffer are less than 1000, the batch size will be set to the message count before subscribing to the messages. Default value: 1000 Example: 500 |
| Auto Acknowledge
|
Select this checkbox to auto-acknowledge the received messages. If selected, the Snap acknowledges the receipt of a message when the message listener returns successfully. If you deselect this checkbox, the same data can be pulled, which means duplicate data is displayed in the output. Default value: Deselected |
| Subscriber timeout
|
Specify the maximum time in seconds the Snap receives messages. A zero wait timeout means that fetching is performed without waiting. Default value: 30 Example: 50 |
| Snap Execution
|
Choose one of the three modes in
which the Snap executes. Available options are:
Default value: Validate & Execute |