Skip to content

A bridge library to allow consuming and publishing to Google Cloud Pub/Sub with the Symfony Messenger

Notifications You must be signed in to change notification settings

qofclubs/symfony-messenger-pubsub-bridge

 
 

Repository files navigation

Symfony Messenger Bridge for Google Cloud Pub/Sub

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

About

A bridge library to allow consuming and publishing to Google Cloud Pub/Sub with the Symfony Messenger

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%