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
Job Worker Bundle

Job Worker Bundle Laravel Package

abc/job-worker-bundle

Symfony bundle for processing jobs from AbcJobServerBundle via php-enqueue. Define ProcessorInterface handlers tagged per job name and provide job routes (queue/replyTo) via RouteProviderInterface. Experimental; includes demo and basic config options.

View on GitHub
Deep Wiki
Context7

A Symfony to process jobs from AbcJobServerBundle

Frequently asked questions about Job Worker Bundle
Can I use this bundle directly in Laravel without Symfony?
No, this bundle is Symfony-centric and requires AbcJobServerBundle. For Laravel, you’d need to either expose AbcJobServerBundle as an API or use a shared transport (like Redis with php-enqueue) to bridge both frameworks. Direct integration isn’t plug-and-play due to Symfony’s dependency injection and tag-based service registration.
How do I configure job queues and reply destinations in Laravel?
Since this bundle is Symfony-only, you’d configure routes via a `RouteProviderInterface` in Symfony, not Laravel. For Laravel, you’d need a custom queue driver (e.g., `AbcJobDriver`) to serialize jobs and send them to Symfony’s worker via HTTP or a shared queue. The `replyTo` queue would then need to be monitored by Laravel’s queue listener.
What Laravel versions does this bundle support?
This bundle doesn’t natively support Laravel—it’s for Symfony. However, you could integrate it with Laravel by using a shared transport (e.g., Redis with php-enqueue) or a microservice approach. Laravel’s queue system (8.x+) would need adapters to interact with Symfony’s job processors, but no official version support exists.
How do I handle job retries or dead-letter queues in this setup?
Retry logic and dead-letter queues are managed by AbcJobServerBundle and php-enqueue. In Laravel, you’d need to configure these in your Symfony worker’s transport settings (e.g., Redis/AMQP). For example, Redis queues in Laravel can mirror Symfony’s retry policies if using the same transport, but cross-framework synchronization requires custom logic.
Is there a Laravel-native alternative to this bundle?
Yes. For Laravel, consider `spatie/queueable-side-effects` for job chaining, `laravel-horizon` for queue monitoring, or `bullmq/laravel` for Redis-based queues. If you need distributed job processing, `temporalio/sdk` or `pusher/laravel-queue-worker` (with Pusher Channels) are more Laravel-idiomatic than this Symfony bundle.
How do I test job processing across Laravel and Symfony?
Test by dispatching a Laravel job to a shared queue (e.g., Redis) and verifying Symfony’s worker processes it via `php-enqueue`. Use Laravel’s `Queue::fake()` to mock dispatches and Symfony’s `EnqueueTest` utilities to validate processing. Serialization/deserialization (e.g., JSON) must be tested for cross-framework compatibility.
What transport layers (Redis, AMQP, etc.) does this bundle support?
This bundle uses `php-enqueue`, which supports Redis, RabbitMQ, Amazon SQS, and more. For Laravel integration, ensure both frameworks use the same transport (e.g., Redis) and configure `php-enqueue/laravel-ext` for Laravel’s queue system. Symfony’s `abc_job_worker` config must match the transport settings.
How do I register a job processor in Laravel if this bundle is Symfony-only?
You can’t use the `abc.job.processor` tag in Laravel. Instead, create a Laravel job class (e.g., `ShouldQueue`) that serializes data to JSON, dispatches it to a shared queue, and let Symfony’s processor handle it. Alternatively, implement a Laravel queue driver that proxies jobs to Symfony via HTTP.
Are there performance bottlenecks when using this bundle with Laravel?
Potential bottlenecks include serialization overhead (Laravel → Symfony), network latency (if using HTTP proxies), and transport-specific delays (e.g., Redis vs. AMQP). Benchmark with your chosen transport (e.g., Redis pub/sub) and monitor queue backlogs. Laravel’s built-in queues may outperform this hybrid setup for simple jobs.
What’s the maintenance status of this bundle? Should I use it in production?
This bundle is experimental, with no active maintenance or dependents. Its MIT license allows use, but the lack of updates and Symfony-centric design make it risky for production. Consider forking or building a Laravel-specific adapter. Alternatives like `spatie/laravel-queue-scheduler` or `bullmq` are more stable for Laravel.
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.
codeflextech/permission-manager
karnoweb/livewire-datepicker
sayedenam/sayed-dashboard
milito/query-filter
apiboxsym/user-bundle
apiboxsym/health-check-bundle
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver