cedricziel/messenger-pubsub

Bridging Symfony Messenger with Google Cloud Pub/Sub

dev-master / 1.0.x-dev 2021-05-22 15:17 UTC

This package is auto-updated.

Last update: 2024-04-22 22:12:25 UTC


README

Bridge Google Cloud Pub/Sub with the Symfony messenger component.

Note: Use cedricziel/symfony-messenger-pubsub-bundle for automatic wiring in your Symfony Framework application.

Installation

composer require cedricziel/messenger-pubsub

Usage

To use the pubsub transport, you would register the PubSubTransportFactory through the following configuration:

# config/services.yaml
services:
    CedricZiel\Symfony\Messenger\Bridge\GcpPubSub\Transport\PubSubTransportFactory:
        tags: [messenger.transport_factory]

Create a concrete transport:

# config/packages/messenger.yaml
framework:
    messenger:
        transports:
            my-pubsub: 'pubsub://...'

Notable

Google Cloud Pub/Sub does not support delaying messages, so a DelayStamp will have no effect.

License

MIT