cedricziel/messenger-pubsub

Bridging Symfony Messenger with Google Cloud Pub/Sub

Fund package maintenance!
cedricziel

Installs: 184

Dependents: 1

Suggesters: 0

Security: 0

Stars: 1

Watchers: 3

Forks: 3

Open Issues: 0

Type:symfony-bridge

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

This package is auto-updated.

Last update: 2024-11-22 23:30:22 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