Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Messenger Pubsub Laravel Package

cedricziel/messenger-pubsub

Symfony Messenger transport bridge for Google Cloud Pub/Sub. Adds a pubsub:// transport via PubSubTransportFactory for publishing and consuming messages from Pub/Sub. Note: Pub/Sub doesn’t support delayed delivery, so DelayStamp is ignored.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Event-Driven Architecture (EDA) Expansion: Enables asynchronous messaging between microservices or distributed systems using Google Cloud Pub/Sub as a backbone, reducing coupling and improving scalability.
  • Hybrid Cloud/On-Prem Integration: Facilitates seamless communication between Symfony-based applications and Google Cloud services, supporting multi-cloud or hybrid architectures.
  • Decoupled Workflows: Allows offloading long-running or background tasks (e.g., notifications, analytics, or batch processing) to Pub/Sub for better performance and reliability.
  • Build vs. Buy: Avoids reinventing a Pub/Sub transport layer for Symfony Messenger, reducing development time and maintenance overhead.
  • Roadmap for Cloud-Native Features: Paves the way for future integrations with other Google Cloud services (e.g., Cloud Functions, Workflows) via Pub/Sub as a messaging hub.

When to Consider This Package

  • Avoid if:
    • Your team lacks experience with Google Cloud Pub/Sub or Symfony Messenger, as setup and debugging may require additional expertise.
    • You need message delay functionality (Pub/Sub does not support DelayStamp).
    • Your use case requires high-throughput, low-latency messaging with strict ordering guarantees (Pub/Sub is eventually consistent).
    • You’re already committed to a different message broker (e.g., RabbitMQ, Kafka, AWS SQS) with mature Symfony support.
    • Your application is not cloud-agnostic and relies heavily on on-premises infrastructure without Pub/Sub access.
  • Consider alternatives:
    • For local development/testing: Use symfony/messenger with in-memory or Doctrine transports.
    • For enterprise-grade Pub/Sub: Evaluate Google’s official Cloud Pub/Sub PHP client with custom Messenger integration.
    • For delayed messages: Combine this with a local queue (e.g., Redis) to handle delays before publishing to Pub/Sub.

How to Pitch It (Stakeholders)

For Executives: "This package lets us leverage Google Cloud Pub/Sub as a scalable, serverless messaging backbone for our Symfony applications—reducing operational overhead while enabling seamless integration with other Google Cloud services. It’s a lightweight, cost-effective way to adopt event-driven architecture without building custom infrastructure. Ideal for offloading background tasks, decoupling services, or supporting hybrid cloud workflows."

For Engineering/Architecture Teams: *"The cedricziel/messenger-pubsub bridge simplifies Pub/Sub integration with Symfony Messenger, cutting weeks of development time. Key benefits:

  • Plug-and-play: Minimal configuration required (just 2 YAML snippets).
  • Cloud-native: Aligns with Google’s serverless ecosystem (e.g., Cloud Functions triggers).
  • Scalability: Pub/Sub handles millions of messages with automatic sharding.
  • Future-proof: Easy to extend for additional Google Cloud integrations.

Trade-offs:

  • No native message delays (workaround: pre-process delays locally).
  • Requires Pub/Sub setup (but Google offers generous free tiers for testing).

Recommendation: Pilot this for non-critical async workflows (e.g., notifications, analytics) before expanding to core systems."*

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium
sandermuller/package-boost-laravel
sandermuller/boost-skills
redaxo/core
yusufgenc/filament-api-forge
l3aro/rating-star-for-filament
leek/filament-subtenant-scope