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

Deferred Event Bundle Laravel Package

fervo/deferred-event-bundle

DeferredEventBundle for Symfony queues domain events during a request or transaction and dispatches them at a controlled later point, so listeners and side effects run after persistence completes and stay consistent with committed data.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Feature decision: should event side-effects run inside the request? This package is a working reference pattern for deferring non-critical event listeners (analytics, audit logs, webhook fan-out, notification dispatch, cache warming) to a separate PHP process over FastCGI so the user-facing response is not blocked. Use it to frame the question "which listeners are on the critical path?" for any feature that emits domain events.
  • Roadmap sequencing for async processing. It gives engineering a minimal, low-infrastructure baseline (no broker, no worker daemon — just a second FastCGI request) to compare against heavier options like Redis/SQS/RabbitMQ queues. That comparison is a roadmap input: "do we ship async events this quarter with what we already run, or budget for queue infrastructure?"
  • Build vs. buy vs. borrow. Verdict for this package specifically: borrow the pattern, don't adopt the code. At 43 stars, zero dependents, no release since January 2016, and an opportunity score of ~2.1, it is a design reference, not a dependency. The decision it supports is whether your team writes ~150 lines of deferral logic in-house or adopts a maintained framework-native queue.
  • Use-case triage. The approach is only defensible for fire-and-forget, low-value, loss-tolerant events (page views, activity feeds, "someone viewed your profile"). It is not the right vehicle for payments, transactional email guarantees, or anything requiring retries — that distinction is itself a product decision about reliability tiers per event type.
  • Platform-fit check. Important for the record: this is a Symfony bundle, not a Laravel package. If the product is Laravel, this is not adoptable at all; its value is purely conceptual. That is a material finding to feed back into any package-evaluation scorecard, and it suggests the scoring model should weight framework fit and maintenance recency more heavily.

When to Consider This Package

Consider it (as a reference implementation only) when:

  • You are on a legacy Symfony 2.x/3.x codebase where a FastCGI endpoint (php-fpm) already exists and no queue infrastructure is available or funded.
  • You have a small, bounded set of listeners that are genuinely safe to lose on failure, and request latency is a measured, user-visible problem.
  • You need a zero-new-infrastructure proof of concept to demonstrate the latency win before requesting budget for a real queue.
  • You want a compact example of decoupling the event dispatcher from listener execution for internal design review.

Look elsewhere — decisively — when:

  • The stack is Laravel: use Queue/dispatch(), Horizon, or defer(); none of this bundle's code applies.
  • You need durability, retries, backoff, dead-letter handling, ordering, idempotency, or delivery observability — FastCGI gives you none of these, and the failure mode is a silent dropped event.
  • You are on PHP 7.4+ / 8.x or Symfony 4+: the package predates all of it, its dependency constraints will not resolve, and there is no maintainer to fix it (last release 2016, zero dependents — assume unpatched CVEs and no support).
  • Throughput matters: each deferred event is an HTTP round-trip; this does not scale to bursty fan-out.
  • You require vendor due diligence: a 10-year-stale, single-maintainer, MIT-licensed repo with no dependents is an audit finding, not a dependency.

Practical rule for the team: green-light the pattern, red-light the package. Timebox any prototype to a day, and pair it with a concrete migration path to a real queue.

How to Pitch It (Stakeholders)

To executives: We evaluated a lightweight package for moving background work out of the customer's request. Recommendation is not to adopt it — it is a decade old, unmaintained, built for a different framework, and has no user base, so it carries support and security risk with no offsetting benefit. What it does give us is a cheap, proven design pattern plus a benchmark we can use to justify (or defer) queue infrastructure spend. Expected outcome: a faster path to a decision on async processing without adding an unsupported dependency.

To engineering: This is a Symfony bundle that defers event listeners to a separate FastCGI process — a useful illustration of decoupling dispatch from execution, and a cautionary example of the failure modes (no retries, no durability, silent loss). If we want async events, we implement it natively in our framework's queue system; this repo informs the design and nothing more. Please do not vendor it.

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.
uni-method/symfony-lib
tacticmedia/scim-server-bundle
neika-ai/symfony-bundle
mattleads/agent-publishing-bundle
glavweb/framework-bundle
glavweb/extra-bundle
glavweb/api-bundle
glavweb/admin-bundle
adachsoft/api-version-bundle
elsayed85/laravel-api-exceptions
ouhssini/laravel-demo-mode
daworks/ncloud-outbound-mailer-driver
gp247/cms
ignibyte/aic-gates
nexa-merchant/blog
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
shitoudev/permissionmanager