This bundle provides a simple implementation of Google Pub/Sub transport for Symfony Messenger.
The bundle requires only symfony/messenger
, google/cloud-pubsub
and symfony/options-resolver
packages.
In contrast with Enqueue GPS transport,
it doesn't require Enqueue
and some bridge.
It supports ordering messages with OrderingKeyStamp
and it's not outdated.
From within container execute the following command to download the latest version of the bundle:
$ composer require petitpress/gps-messenger-bundle --no-scripts
# config/packages/messenger.yaml
framework:
messenger:
transports:
gps_messages:
dsn: 'gps://'
options:
topic_name: 'topic_name'
subscription_name: 'subscription_name'
key_file_path: 'path/to/key.json'
project_id: 'project_id'
max_messages_pull: 10
OrderingKeyStamp
: use for keeping messages of the same context in order. For more information, read an official documentation.