Weave 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

Query Bus Laravel Package

averor/query-bus

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Decoupling Read/Write Operations: Enables strict separation of CQRS (Command Query Responsibility Segregation) by handling queries asynchronously via a message bus, improving scalability and maintainability.
  • Event-Driven Architecture: Facilitates building reactive systems where query responses are treated as events, reducing tight coupling between services.
  • Performance Optimization: Offloads query processing to a dedicated bus, reducing latency in high-traffic applications by parallelizing query handling.
  • Roadmap for Microservices: Supports gradual migration to microservices by isolating query logic into independent services without rewriting existing codebases.
  • Build vs. Buy: Avoids reinventing a query bus from scratch, leveraging a lightweight, PHP-native solution tailored for Laravel ecosystems.
  • Use Cases:
    • Analytics dashboards requiring complex, non-blocking queries.
    • Real-time data synchronization across distributed systems.
    • Legacy system modernization where queries must remain decoupled from business logic.

When to Consider This Package

  • Adopt if:

    • Your application follows or plans to adopt CQRS or event-driven architecture.
    • You need asynchronous query processing to avoid blocking UI/CLI responses.
    • Your Laravel app handles high query volumes that could benefit from parallelization.
    • You’re integrating with external services that require query decoupling (e.g., APIs, caches, or databases).
    • Your team prioritizes maintainability over custom solutions for query routing.
  • Look Elsewhere if:

    • Your queries are simple and synchronous (e.g., CRUD operations with no async needs).
    • You’re using a non-Laravel PHP framework (this package is Laravel-specific).
    • Your stack already includes a mature message bus (e.g., RabbitMQ, Kafka) with query support.
    • You lack developer bandwidth to integrate a new abstraction layer.
    • Your use case requires real-time bidirectional communication (consider WebSockets or GraphQL subscriptions instead).

How to Pitch It (Stakeholders)

For Executives: "This package lets us handle data queries asynchronously, reducing system bottlenecks and improving scalability—especially for analytics or high-traffic features. By decoupling queries from business logic, we can modernize our architecture without rewriting core systems. It’s a lightweight, PHP-native solution that aligns with our Laravel stack, cutting dev time while future-proofing for microservices."

For Engineering: *"Query Bus solves a critical gap in Laravel/CQRS workflows: how to process queries without blocking requests. It’s a drop-in extension for Laravel’s message bus, so you can:

  • Offload heavy queries to background workers (e.g., via Laravel Queues).
  • Route queries dynamically to different services (e.g., cache, DB, or external APIs).
  • Integrate seamlessly with existing event systems (e.g., Laravel Events or Symfony Messenger). No reinventing the wheel—just plug it into your app/Providers/EventServiceProvider and start routing queries as messages. Ideal for teams already using CQRS or looking to adopt it incrementally."*
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.
xiloryx/log-collector
a21ns1g4ts/filament-stripe
la-php/laravel-admin
artisan-build/community-prompts
vleroy/smart
ayles-software/laravel-australian-public-holidays
cboxdk/laravel-id-spatie
cboxdk/laravel-id-billing
cboxdk/laravel-id-billing-bridge
simple-as-fuck/php-performance-log
hsluv/hsluv
seampact/codegen
seampact/hooks
seampact/ir
mehedimi/laravel-amp-mail
happones/laravel-vue-i18n-generator
jwerd/inertia-table
siberfx/flysystem-wasabi
hollyit/token-replace
ippanelcom/laravel-sdk