Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cedricziel/symfony-messenger-pubsub-bridge
A bridge library to allow consuming and publishing to Google Cloud Pub/Sub with the Symfony Messenger
https://github.com/cedricziel/symfony-messenger-pubsub-bridge
Last synced: 11 days ago
JSON representation
A bridge library to allow consuming and publishing to Google Cloud Pub/Sub with the Symfony Messenger
- Host: GitHub
- URL: https://github.com/cedricziel/symfony-messenger-pubsub-bridge
- Owner: cedricziel
- Created: 2020-10-13T15:02:02.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-05-22T15:17:13.000Z (over 3 years ago)
- Last Synced: 2024-10-11T20:09:15.071Z (25 days ago)
- Language: PHP
- Size: 37.1 KB
- Stars: 1
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Symfony Messenger Bridge for Google Cloud Pub/Sub
Bridge [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) with the Symfony messenger component.
**Note:** Use [cedricziel/symfony-messenger-pubsub-bundle](https://github.com/cedricziel/symfony-messenger-pubsub-bundle) for automatic wiring in your Symfony Framework application.
## Installation
```shell
composer require cedricziel/messenger-pubsub
```## Usage
To use the `pubsub` transport, you would register the `PubSubTransportFactory` through the following configuration:
```yaml
# config/services.yaml
services:
CedricZiel\Symfony\Messenger\Bridge\GcpPubSub\Transport\PubSubTransportFactory:
tags: [messenger.transport_factory]
```Create a concrete transport:
```yaml
# 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