Google Cloud PubSub Acknowledge

Google Cloud PubSub Acknowledge

In this article

Overview

You can use this Snap to acknowledge the messages by reading the message ID from the upstream Subscriber Snap.

pbsub-acknowledge-overview.png

 

Snap Type

Acknowledge Snap is a Write-type Snap.

Snap Views

Type

Format

Number of Views

Examples of Upstream and Downstream Snaps

Description

Type

Format

Number of Views

Examples of Upstream and Downstream Snaps

Description

Input 

Document

 

  • Min: 0

  • Max: 1

  • Mapper

  • JSON Generator

  • CSV Parser

Each document contains data in the form of JSON.

Output

Document

  • Min: 0

  • Max: 1

  • JSON Generator

Each document contains a 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:

  • Stop Pipeline Execution: Stops the current Pipeline execution when the Snap encounters an error.

  • Discard Error Data and Continue: Ignores the error, discards that record, and continues with the remaining records.

  • Route Error Data to Error View: Routes the error data to an error view without stopping the Snap execution.

Learn more about Error handling in Pipelines.

Snap Settings

  • Asterisk (*): Indicates a mandatory field.

  • Suggestion icon (): Indicates a list that is dynamically populated based on the configuration.

  • Expression icon (): Indicates whether the value is an expression (if enabled) or a static value (if disabled). Learn more about Using Expressions in SnapLogic.

  • Add icon (): Indicates that you can add fields in the field set.

  • Remove icon (): Indicates that you can remove fields from the field set.

Field Name

Field Type

Description

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.


Default Value: PubSub Acknowledge
Example: Acknowledge messages

Message ID*

 

String/Expression

Specify the ID of the message to be acknowledged.


Default Value: N/A
Example: 1995734534087794

Acknowledgement type*

 

 

Dropdown list

Choose the acknowledgement action type for the received message. Available options are:

  • Acknowledge: Acknowledges the messages within the default deadline.

  • Negative acknowledge: In Google Cloud Pub/Sub, a negative acknowledge is a way for a subscriber to explicitly indicate that it was unable to successfully process a message, and that the message should be re-delivered sooner than the acknowledgment deadline allows. When a subscriber nacks messages that are invalid or when it cannot process the messages, the subscriber helps ensure that these messages are not lost and that they are eventually processed successfully.


Default name: Acknowledge
Example: Negative acknowledge

Snap Execution

 

 

Dropdown list

Select one of the three modes in which the Snap executes. Available options are:

  • Validate & Execute: Performs limited execution of the Snap, and generates a data preview during Pipeline validation. Subsequently, performs full execution of the Snap (unlimited records) during Pipeline runtime.

  • Execute only: Performs full execution of the Snap during Pipeline execution without generating preview data.

  • Disabled: Disables the Snap and all Snaps that are downstream from it.


Default Value: Execute only
Example: Validate & Execute

Snap Pack History