Pub/Sub

Cloud Pub/Sub brings the scalability, flexibility, and reliability of enterprise message-oriented middleware to the cloud. By providing many-to-many, asynchronous messaging that decouples senders and receivers, it allows for secure and highly available communication between independently written applications. Cloud Pub/Sub delivers low-latency, durable messaging that helps developers quickly integrate systems hosted on the Google Cloud Platform and externally. Source: Google

Command

rhub add:action <group.eventId> <filterId> GCP PUB_SUB

Param

Description

eventId

The event that will receive te action.

Example: payment.payment-fulfilled

filterId

The filter/trigger in the event that will process the action.

Example: on-event

Prompt Questions

Topic

Define the topic to publish the message.

YAML

-
id: my-action-id
async: false
type: GCP
action: PUB_SUB
operation: null
serviceAccountId: google-cloud-reactivehub
template:
topic: my-topic-name
message:
keyName: '{keyName}'

YAML PARAMS

Params

Description

id, async, type, action, operation, serviceAccountId

The action default parameters, see more.

topic

Topic name to publish the message.

payload

The message content, (Key / Value object)

Key = The table column name

Value = The value to insert into the column