Pub/Sub :: Berlioz Documentation

Pub/Sub

Definition

kind: queue
cluster: <cluster-name>
name: <queue-name>
class: queue
subClass: pubsub

Consuming

PubSub queues can be consumed by can be consumed by services or lambdas.

consumes:
  - queue: <queue-name>
    actions:
      - publish
      - subscribe

Lambda Trigger

If Lambda consumes a Pub/Sub using subscribe action, it automatically sets up a trigger to call the function whenever a message us published to Pub/Sub.